update for jerryr template
79
addressbook/templates/jerryr/index.tpl
Normal file
@ -0,0 +1,79 @@
|
||||
<!-- BEGIN addressbook_header -->
|
||||
<script>
|
||||
function check_all(which)
|
||||
{
|
||||
for (i=0; i<document.addr_index.elements.length; i++)
|
||||
{
|
||||
if (document.addr_index.elements[i].type == "checkbox" && document.addr_index.elements[i].name.substring(0,which.length) == which)
|
||||
{
|
||||
if (document.addr_index.elements[i].checked)
|
||||
{
|
||||
document.addr_index.elements[i].checked = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.addr_index.elements[i].checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div align="center">
|
||||
{lang_showing}
|
||||
<br>{searchreturn}
|
||||
{search_filter}
|
||||
<table class="calDayViewSideBoxes" width="100%" >
|
||||
<tr><td>{alphalinks}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table height=5><tr><td></td></tr></table>
|
||||
<table class="calDayViewShadowBox" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" class="calDayViewSideBoxes">
|
||||
<form name="addr_index" action="{action_url}" method="POST">
|
||||
<tr bgcolor="{th_bg}">{cols}
|
||||
<td class="body">{lang_actions}
|
||||
<a href="javascript:check_all('select')"><img src="{check}" border="0" height="16" width="21" alt="{select_all}"></a></td>
|
||||
</tr>
|
||||
<!-- END addressbook_header -->
|
||||
|
||||
<!-- BEGIN column -->
|
||||
<td class="body" valign="top">{col_data} </td>
|
||||
<!-- END column -->
|
||||
|
||||
<!-- BEGIN row -->
|
||||
<tr bgcolor="{row_tr_color}">{columns}
|
||||
<td valign="top" nowrap>{actions}</td>
|
||||
</tr>
|
||||
<!-- END row -->
|
||||
|
||||
<!-- BEGIN delete_block -->
|
||||
<tr bgcolor="{row_tr_color}"><td colspan="{column_count}"> </td>
|
||||
<td align="right"><input type="submit" name="Delete" value="{lang_delete}"></td>
|
||||
</tr>
|
||||
<!-- END delete_block -->
|
||||
|
||||
<!-- BEGIN addressbook_footer -->{delete_button}
|
||||
</form>
|
||||
</table>
|
||||
</td></tr></table>
|
||||
<table border="0" cellspacing="0" cellpadding="2">
|
||||
<tr bgcolor="{th_bg}">
|
||||
<form action="{add_url}" method="post"><td><input type="submit" name="Add" value="{lang_add}" /></td></form>
|
||||
<form action="{vcard_url}" method="post"><td><input type="submit" name="AddVcard" value="{lang_addvcard}" /></td></form>
|
||||
<form action="{import_url}" method="post"><td><input type="submit" name="Import" value="{lang_import}" /></td></form>
|
||||
</tr>
|
||||
</table>
|
||||
<table border="0" cellspacing="0" cellpadding="2">
|
||||
<tr bgcolor="{th_bg}">
|
||||
|
||||
<form action="{import_alt_url}" method="post"><td><input type="submit" name="Import" value="{lang_import_alt}" /></td></form>
|
||||
<form action="{export_url}" method="post"><td><input type="submit" name="Export" value="{lang_export}" /></td></form>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- END addressbook_footer -->
|
||||
|
||||
<!-- BEGIN addressbook_alpha --><td bgcolor="{charbgcolor}" align="center"><a href="{charlink}"><font color="{charcolor}">{char}</a></font></td>
|
||||
<!-- END addressbook_alpha -->
|
54
addressbook/templates/jerryr/view.tpl
Normal file
@ -0,0 +1,54 @@
|
||||
<!-- BEGIN view_header -->
|
||||
<br>
|
||||
<table class="calDayViewShadowBox" width="100%" align="center">
|
||||
<tr>
|
||||
<td>
|
||||
<table class="calDayViewSideBoxes" width="100%" align="left">
|
||||
<!-- END view_header -->
|
||||
<!-- BEGIN view_row -->
|
||||
<tr bgcolor="{th_bg}">
|
||||
<td align="right" width="30%"><b>{display_col}</b>:</td><td width="70%">{ref_data}</td>
|
||||
</tr>
|
||||
<!-- END view_row -->
|
||||
{cols}
|
||||
<!-- BEGIN view_footer -->
|
||||
</table>
|
||||
</td>
|
||||
<td valign="top" nowrap>
|
||||
|
||||
<table class="calDayViewSideBoxes" width="100%"><tr><td>
|
||||
<table width="100%" cellpadding=0 cellspacing=0>
|
||||
<tr>
|
||||
<td align="center" class="calDayView">Month Calendar</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">Feature Not Yet Available</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
</td>
|
||||
</tr></table>
|
||||
<!-- END view_footer -->
|
||||
<!-- BEGIN view_buttons -->
|
||||
<center>
|
||||
<table border="0" cellpadding="1" cellspacing="1">
|
||||
<tr>
|
||||
<td>
|
||||
{edit_button}
|
||||
</td>
|
||||
<td>
|
||||
{copy_button}
|
||||
</td>
|
||||
<td>
|
||||
{vcard_button}
|
||||
</td>
|
||||
<td>
|
||||
{done_button}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<!-- END view_buttons -->
|
50
calendar/templates/jerryr/day.tpl
Normal file
@ -0,0 +1,50 @@
|
||||
<!-- $Id$ -->
|
||||
<!-- BEGIN day -->
|
||||
{printer_friendly}
|
||||
<table border="0" width="100%" class="calDayViewShadowBox">
|
||||
<tr>
|
||||
<td valign="top" width="70%" class="calDayViewSideBoxes">
|
||||
<table border="0" width=100%>
|
||||
<tr>
|
||||
<td class="calDayView">{date} {username} </td>
|
||||
</tr>{day_events}
|
||||
</table>
|
||||
<p align="center">{print}</p>
|
||||
</td>
|
||||
<td width=5></td>
|
||||
<td align="center" valign="top" >
|
||||
<table class="calDayViewSideBoxes" width="100%"><tr><td>
|
||||
<table width="100%" cellpadding=0 cellspacing=0>
|
||||
<tr>
|
||||
<td align="center" class="calDayView">{date}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">{small_calendar}</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td></tr></table>
|
||||
<table height="5"><tr><td></td></tr></table>
|
||||
|
||||
<table class="calDayViewSideBoxes" width=100%><tr><td>
|
||||
<table width="100%" cellpadding=0 cellspacing=0>
|
||||
<tr>
|
||||
<td align="center" class="calDayView">{lang_todos}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{todos}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- END day -->
|
||||
<!-- BEGIN day_event -->
|
||||
<tr>
|
||||
<td>
|
||||
{daily_events}
|
||||
</td>
|
||||
</tr>
|
||||
<!-- END day_event -->
|
||||
|
49
calendar/templates/jerryr/edit.tpl
Normal file
@ -0,0 +1,49 @@
|
||||
<!-- $Id$ -->
|
||||
<!-- BEGIN edit_entry -->
|
||||
<script language="JavaScript">
|
||||
self.name="first_Window";
|
||||
function accounts_popup()
|
||||
{
|
||||
Window1=window.open('{accounts_link}',"Search","width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes");
|
||||
}
|
||||
</script>
|
||||
<center>
|
||||
<font color="#000000" face="{font}">
|
||||
|
||||
<form action="{action_url}" method="post" name="app_form">
|
||||
{common_hidden}
|
||||
<table class="calDayViewShadowBox" width="100%"><tr><td>
|
||||
<table class="calDayViewSideBoxes" width="100%">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<center><font size="+1"><b>{errormsg}</b></font></center>
|
||||
</td>
|
||||
</tr>
|
||||
{row}
|
||||
<tr>
|
||||
<td>
|
||||
<table><tr valign="top">
|
||||
<td><input type="submit" value="{submit_button}"> </form></td>
|
||||
<td>{cancel_button}</td>
|
||||
</tr></table>
|
||||
</td>
|
||||
<td align="right">{delete_button}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr></table>
|
||||
</font>
|
||||
</center>
|
||||
<!-- END edit_entry -->
|
||||
<!-- BEGIN list -->
|
||||
<tr bgcolor="{tr_color}">
|
||||
<td valign="top" width="35%"> <b>{field}:</b></td>
|
||||
<td valign="top" width="65%">{data}</td>
|
||||
</tr>
|
||||
<!-- END list -->
|
||||
<!-- BEGIN hr -->
|
||||
<tr bgcolor="{tr_color}">
|
||||
<td colspan="2">
|
||||
{hr_text}
|
||||
</td>
|
||||
</tr>
|
||||
<!-- END hr -->
|
13
calendar/templates/jerryr/head.tpl
Normal file
@ -0,0 +1,13 @@
|
||||
<!-- $Id$ -->
|
||||
<!-- BEGIN head -->
|
||||
{row}
|
||||
<!-- END head -->
|
||||
<!-- BEGIN head_table -->
|
||||
<table border="0" width="100%" cols="{cols}" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
{header_column} </tr>
|
||||
</table>
|
||||
<!-- END head_table -->
|
||||
<!-- BEGIN head_col -->
|
||||
{str}
|
||||
<!-- END head_col -->
|
25
calendar/templates/jerryr/mini_cal.tpl
Normal file
@ -0,0 +1,25 @@
|
||||
<!-- $Id$ -->
|
||||
<!-- BEGIN mini_cal -->
|
||||
<table border="0" cellspacing="0" cellpadding="0" valign="top" width=100% cols="7">
|
||||
<tr valign="middle">
|
||||
<td align="center" colspan=4><font size="-2"> <b>{month}</b></font></td>
|
||||
<td align="right" colspan=3>{prevmonth} {nextmonth}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan=7><img src="{cal_img_root}" width="90%" height="5"></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td colspan="7">
|
||||
<table border="0" width="100%" cellspacing="7" cellpadding="0" valign="top" cols="7">
|
||||
<tr>{daynames} </tr>{display_monthweek} </table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- END mini_cal -->
|
||||
<!-- BEGIN mini_week -->
|
||||
<tr>{monthweek_day}
|
||||
</tr>
|
||||
<!-- END mini_week -->
|
||||
<!-- BEGIN mini_day -->
|
||||
<td align="center"{day_image}><font size="-2">{dayname}</font></td>
|
||||
<!-- END mini_day -->
|
30
calendar/templates/jerryr/week.tpl
Normal file
@ -0,0 +1,30 @@
|
||||
<!-- $Id$ -->
|
||||
{printer_friendly}
|
||||
<table width="100%" cols="5">
|
||||
<tr>
|
||||
<td align="left" valign="top" width="20%">
|
||||
{small_calendar_prev}
|
||||
</td>
|
||||
<td align="center" valign="middle" width="20%">
|
||||
<b>{prev_week_link}</b>
|
||||
</td>
|
||||
<td align="center" valign="top" width="20%">
|
||||
{small_calendar_this}
|
||||
</td>
|
||||
<td align="center" valign="middle" width="20%">
|
||||
<b>{next_week_link}</b>
|
||||
</td>
|
||||
<td align="right" valign="top" width="20%">
|
||||
{small_calendar_next}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="calDayViewSideBoxes" width=100%><tr><td>
|
||||
<table border="0" width="100%">
|
||||
<td align="center" class="calDayView">
|
||||
<b>{week_identifier}</b> {username}
|
||||
</td>
|
||||
</table>
|
||||
|
||||
{week_display}</td></tr></table>
|
||||
{print}
|
@ -218,8 +218,8 @@ a.textSidebox
|
||||
#divLogo
|
||||
{
|
||||
position:absolute;
|
||||
left:2px;
|
||||
top:5px;
|
||||
left:10px;
|
||||
top:10px;
|
||||
z-index:51;
|
||||
}
|
||||
|
||||
@ -229,7 +229,6 @@ a.textSidebox
|
||||
border-top-color:#9c9c9c;
|
||||
border-top-width:1px;
|
||||
border-top-style:solid;
|
||||
|
||||
background-image: url(../images/background-icon-bar.png);
|
||||
background-repeat: repeat-x
|
||||
}
|
||||
@ -264,6 +263,8 @@ a.textSidebox
|
||||
{
|
||||
background-color:white;
|
||||
padding-left:5px;
|
||||
padding-right:5px;
|
||||
padding-bottom:5px;
|
||||
width: 100%;
|
||||
}
|
||||
#divSideboxContainer
|
||||
@ -298,8 +299,11 @@ a.textSidebox
|
||||
border-left-width:1px;
|
||||
border-left-style:solid;
|
||||
border-right-color:#9c9c9c;
|
||||
border-right-width:1px;
|
||||
border-right-width:2px;
|
||||
border-right-style:solid;
|
||||
border-bottom-color:#9c9c9c;
|
||||
border-bottom-width:1px;
|
||||
border-bottom-style:solid;
|
||||
}
|
||||
|
||||
#divAppbox
|
||||
@ -308,13 +312,13 @@ a.textSidebox
|
||||
background-color:#faf8f3;
|
||||
padding:5px;
|
||||
border-bottom-color:#9c9c9c;
|
||||
border-bottom-width:1px;
|
||||
border-bottom-width:2px;
|
||||
border-bottom-style:solid;
|
||||
border-left-color:#9c9c9c;
|
||||
border-left-width:1px;
|
||||
border-left-style:solid;
|
||||
border-right-color:#9c9c9c;
|
||||
border-right-width:1px;
|
||||
border-right-width:2px;
|
||||
border-right-style:solid;
|
||||
}
|
||||
|
||||
@ -394,3 +398,97 @@ a.textSidebox
|
||||
width:99%;
|
||||
}
|
||||
|
||||
.titleBarBackGround
|
||||
{
|
||||
background-image: url(../images/appbox-header-background.png);
|
||||
height:22px;
|
||||
background-repeat: repeat-x;
|
||||
text-align:center;
|
||||
border-top-color:#9c9c9c;
|
||||
border-top-width:1px;
|
||||
border-top-style:solid;
|
||||
border-left-color:#9c9c9c;
|
||||
border-left-width:1px;
|
||||
border-left-style:solid;
|
||||
border-right-color:#9c9c9c;
|
||||
border-right-width:1px;
|
||||
border-right-style:solid;
|
||||
border-bottom-color:#9c9c9c;
|
||||
border-bottom-width:1px;
|
||||
border-bottom-style:solid;
|
||||
}
|
||||
|
||||
.calDayView
|
||||
{
|
||||
background-image: url(../images/appbox-header-background.png);
|
||||
height:22px;
|
||||
background-repeat: repeat-x;
|
||||
text-align:center;
|
||||
padding-bottom:0px;
|
||||
font-size:14px;
|
||||
font-weight:bold;
|
||||
color:#666666;
|
||||
border-top-color:#9c9c9c;
|
||||
border-top-width:1px;
|
||||
border-top-style:solid;
|
||||
border-left-color:#9c9c9c;
|
||||
border-left-width:1px;
|
||||
border-left-style:solid;
|
||||
border-right-color:#9c9c9c;
|
||||
border-right-width:1px;
|
||||
border-right-style:solid;
|
||||
border-bottom-color:#9c9c9c;
|
||||
border-bottom-width:1px;
|
||||
border-bottom-style:solid;
|
||||
}
|
||||
|
||||
.calDayViewSideBoxes
|
||||
{
|
||||
border-top-color:#9c9c9c;
|
||||
border-top-width:1px;
|
||||
border-top-style:solid;
|
||||
border-left-color:#9c9c9c;
|
||||
border-left-width:1px;
|
||||
border-left-style:solid;
|
||||
border-right-color:#9c9c9c;
|
||||
border-right-width:2px;
|
||||
border-right-style:solid;
|
||||
border-bottom-color:#9c9c9c;
|
||||
border-bottom-width:2px;
|
||||
border-bottom-style:solid;
|
||||
background-color:#faf8f3;
|
||||
}
|
||||
|
||||
.calDayViewShadowBox
|
||||
{
|
||||
border-top-color:#9c9c9c;
|
||||
border-top-width:2px;
|
||||
border-top-style:solid;
|
||||
border-left-color:#9c9c9c;
|
||||
border-left-width:2px;
|
||||
border-left-style:solid;
|
||||
border-right-color:#9c9c9c;
|
||||
border-right-width:1px;
|
||||
border-right-style:solid;
|
||||
border-bottom-color:#9c9c9c;
|
||||
border-bottom-width:1px;
|
||||
border-bottom-style:solid;
|
||||
background-color:#ffffff;
|
||||
padding:5px;
|
||||
}
|
||||
|
||||
.addBookAlphaLinks
|
||||
{
|
||||
border-top-color:#9c9c9c;
|
||||
border-top-width:1px;
|
||||
border-top-style:solid;
|
||||
border-left-color:#9c9c9c;
|
||||
border-left-width:1px;
|
||||
border-left-style:solid;
|
||||
border-right-color:#9c9c9c;
|
||||
border-right-width:1px;
|
||||
border-right-style:solid;
|
||||
border-bottom-color:#9c9c9c;
|
||||
border-bottom-width:1px;
|
||||
border-bottom-style:solid;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 751 B After Width: | Height: | Size: 710 B |
Before Width: | Height: | Size: 777 B After Width: | Height: | Size: 692 B |
BIN
phpgwapi/templates/jerryr/images/home.png
Executable file
After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 754 B After Width: | Height: | Size: 707 B |
Before Width: | Height: | Size: 783 B After Width: | Height: | Size: 692 B |
Before Width: | Height: | Size: 469 B After Width: | Height: | Size: 746 B |
Before Width: | Height: | Size: 613 B After Width: | Height: | Size: 683 B |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 6.4 KiB |
BIN
phpgwapi/templates/jerryr/images/logout.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 744 B |
Before Width: | Height: | Size: 488 B After Width: | Height: | Size: 711 B |
@ -43,7 +43,7 @@
|
||||
$show_menu_event = 'onClick';
|
||||
}
|
||||
|
||||
|
||||
|
||||
$applications = '';
|
||||
|
||||
// == 'icons_and_text')
|
||||
@ -56,7 +56,8 @@
|
||||
|
||||
foreach($GLOBALS['phpgw_info']['navbar'] as $app => $app_data)
|
||||
{
|
||||
if($app != 'home' && $app != 'preferences' && $app != 'about' && $app != 'logout')
|
||||
//if($app != 'home' && $app != 'preferences' && $app != 'about' && $app != 'logout')
|
||||
if($app != 'preferences' && $app != 'about')
|
||||
{
|
||||
$title = $GLOBALS['phpgw_info']['apps'][$app]['title'];
|
||||
$icon = '<img src="' . $app_data['icon'] . '" alt="' . $title . '" title="'. $title . '" border="0" />';
|
||||
@ -64,7 +65,7 @@
|
||||
if($i<$max_icons)
|
||||
{
|
||||
$app_icons .= '<td height="40" valign="bottom" align="center"><a href="' . $app_data['url'] . '"';
|
||||
|
||||
|
||||
if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
||||
{
|
||||
$app_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
|
||||
@ -81,257 +82,281 @@
|
||||
|
||||
$app_titles .= '>' . $title . '</a></td>';
|
||||
}
|
||||
else // generate extra icon layer | always shows icons and text
|
||||
// else // generate extra icon layer | always shows icons and text
|
||||
else // generate extra icon layer shows icons and/or text
|
||||
{
|
||||
$app_extra_icons .= '<tr><td><a href="' . $app_data['url'] . '"';
|
||||
// check for small icon version else use default and let the browser resize
|
||||
$icon = '<img src="' . $app_data['icon'] . '" alt="' . $title . '" width="16" title="'. $title . '" border="0" />';
|
||||
|
||||
if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
||||
$app_extra_icons .= '<tr>';
|
||||
|
||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']!='text')
|
||||
{
|
||||
$app_extra_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
|
||||
$app_extra_icons .= '<td class="extraIconsRow"><a href="' . $app_data['url'] . '"';
|
||||
|
||||
if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
||||
{
|
||||
$app_extra_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
|
||||
}
|
||||
|
||||
$app_extra_icons .= ' >' . $icon . '</a></td>';
|
||||
}
|
||||
|
||||
$app_extra_icons .= '>' . $icon . '</a></td>';
|
||||
|
||||
$app_extra_icons .= '<td align="left" class="extraIconsRow"><a href="'.$app_data['url'] . '"';
|
||||
|
||||
if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
||||
{
|
||||
$app_extra_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
|
||||
// $app_extra_icons .= '<tr><td><a href="' . $app_data['url'] . '"';
|
||||
|
||||
// if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
||||
// {
|
||||
// $app_extra_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
|
||||
// }
|
||||
|
||||
// $app_extra_icons .= '>' . $icon . '</a></td>';
|
||||
|
||||
$app_extra_icons .= '<td align="left" class="extraIconsRow" style=""><a href="'.$app_data['url'] . '"';
|
||||
|
||||
if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
||||
{
|
||||
$app_extra_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
|
||||
}
|
||||
|
||||
$app_extra_icons .= '>' . $title . '</a></td></tr>';
|
||||
}
|
||||
|
||||
$app_extra_icons .= '>' . $title . '</a></td></tr>';
|
||||
unset($icon);
|
||||
unset($title);
|
||||
$i++;
|
||||
}
|
||||
|
||||
unset($icon);
|
||||
unset($title);
|
||||
$i++;
|
||||
}
|
||||
|
||||
// $var['app_icons'] = $app_icons;
|
||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']!='text')
|
||||
{
|
||||
$var['app_icons'] = $app_icons;
|
||||
}
|
||||
|
||||
$var['app_icons'] = $app_icons;
|
||||
|
||||
if($i > $max_icons)
|
||||
{
|
||||
$app_extra_icons_div = '
|
||||
<script language="javascript">
|
||||
new ypSlideOutMenu("menu1", "down", 10, 114, 160, 200,\'right\')
|
||||
</script>
|
||||
if($i > $max_icons)
|
||||
{
|
||||
$app_extra_icons_div = '
|
||||
<script language="javascript">
|
||||
new ypSlideOutMenu("menu1", "down", 10, 114, 160, 200,\'right\')
|
||||
</script>
|
||||
<div id="menu1Container">
|
||||
<div id="menu1Content" style="position: relative; left: 0; text-align: left;">
|
||||
|
||||
<div id="extraIcons">
|
||||
<table>
|
||||
<tr><td> </td><td nowrap="nowrap" align="right"><a href="#" '.$show_menu_event.'="ypSlideOutMenu.hide(\'menu1\')" title="'.lang('close').'"><img style="margin:4px;" border="0" src="'.$var['img_root'].'/close.png"/></a></td></tr>
|
||||
'.$app_extra_icons.' </table>
|
||||
|
||||
<div id="extraIcons">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr><td colspan="2" nowrap="nowrap" align="right" style="background-color:#dddddd;padding:1px;"><a href="#" '.$show_menu_event.'="ypSlideOutMenu.hide(\'menu1\')" title="'.lang('close').'"><img style="" border="0" src="'.$var['img_root'].'/close.png"/></a></td></tr>
|
||||
'.$app_extra_icons.' </table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
|
||||
$var['app_extra_icons_div']= $app_extra_icons_div;
|
||||
// $var['app_extra_icons_icon']= '<td width="26" valign="top" align="right" style="padding-right:3px;padding-top:50px;"><a title="'.lang('show_more_apps').'" href="javascript:void(0);" onClick="HideShow(\'extraIcons\');"><img src="'.$var['img_root'].'/extra_icons.png" border="0" /></a></td>';
|
||||
$var['app_extra_icons_icon']= '<td width="26" valign="top" align="right" style="padding-right:3px;padding-top:50px;"><a title="'.lang('show_more_apps').'" href="#" '.$show_menu_event.'="ypSlideOutMenu.showMenu(\'menu1\')"><img src="'.$var['img_root'].'/extra_icons.png" border="0" /></a></td>';
|
||||
}
|
||||
|
||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']!='icons')
|
||||
{
|
||||
$var['app_titles'] = $app_titles;
|
||||
}
|
||||
else
|
||||
{
|
||||
$var['app_titles'] = '<td colspan="'.$max_icons.'"> </td>';
|
||||
}
|
||||
if(isset($GLOBALS['phpgw_info']['flags']['app_header']))
|
||||
{
|
||||
$var['current_app_title'] = $GLOBALS['phpgw_info']['flags']['app_header'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$var['current_app_title']=$GLOBALS['phpgw_info']['navbar'][$GLOBALS['phpgw_info']['flags']['currentapp']]['title'];
|
||||
}
|
||||
|
||||
if(isset($GLOBALS['phpgw_info']['navbar']['admin']) && $GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers'])
|
||||
{
|
||||
$var['current_users'] = '<a href="'
|
||||
. $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions') . '">'
|
||||
. lang('Current users') . ': ' . $GLOBALS['phpgw']->session->total() . '</a>';
|
||||
}
|
||||
$now = time();
|
||||
$var['user_info'] = '<b>'.$GLOBALS['phpgw']->common->display_fullname() .'</b>'. ' - '
|
||||
. lang($GLOBALS['phpgw']->common->show_date($now,'l')) . ' '
|
||||
. $GLOBALS['phpgw']->common->show_date($now,$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
|
||||
|
||||
if($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == 0)
|
||||
{
|
||||
$api_messages = lang('You are required to change your password during your first login')
|
||||
. '<br> Click this image on the navbar: <img src="'
|
||||
. $GLOBALS['phpgw']->common->image('preferences','navbar.gif').'">';
|
||||
}
|
||||
elseif($GLOBALS['phpgw_info']['user']['lastpasswd_change'] < time() - (86400*30))
|
||||
{
|
||||
$api_messages = lang('it has been more then %1 days since you changed your password',30);
|
||||
}
|
||||
|
||||
// This is gonna change
|
||||
if(isset($cd))
|
||||
{
|
||||
$var['messages'] = $api_messages . '<br>' . checkcode($cd);
|
||||
}
|
||||
|
||||
$var['logo_file'] = $GLOBALS['phpgw']->common->image('phpgwapi',$GLOBALS['phpgw_info']['server']['login_logo_file']?$GLOBALS['phpgw_info']['server']['login_logo_file']:'logo');
|
||||
$var['logo_url'] = $GLOBALS['phpgw_info']['server']['login_logo_url']?$GLOBALS['phpgw_info']['server']['login_logo_url']:'http://www.eGroupWare.org';
|
||||
$var['logo_title'] = $GLOBALS['phpgw_info']['server']['login_logo_title']?$GLOBALS['phpgw_info']['server']['login_logo_title']:'www.eGroupWare.org';
|
||||
|
||||
$GLOBALS['jerryr_tpl']->set_var($var);
|
||||
$GLOBALS['jerryr_tpl']->pfp('out','navbar_header');
|
||||
|
||||
/******************************************************\
|
||||
* The sidebox menu's *
|
||||
\******************************************************/
|
||||
|
||||
$menu_title = lang('General Menu');
|
||||
|
||||
$file['Home'] = $GLOBALS['phpgw_info']['navbar']['home']['url'];
|
||||
if($GLOBALS['phpgw_info']['user']['apps']['preferences'])
|
||||
{
|
||||
$file['Preferences'] = $GLOBALS['phpgw_info']['navbar']['preferences']['url'];
|
||||
}
|
||||
$file += array(
|
||||
array(
|
||||
'text' => lang('About %1',$GLOBALS['phpgw_info']['apps'][$GLOBALS['phpgw_info']['flags']['currentapp']]['title']),
|
||||
'no_lang' => True,
|
||||
'link' => $GLOBALS['phpgw_info']['navbar']['about']['url']
|
||||
),
|
||||
'Logout'=>$GLOBALS['phpgw_info']['navbar']['logout']['url']
|
||||
);
|
||||
|
||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['auto_hide_sidebox']==1)
|
||||
{
|
||||
$GLOBALS['jerryr_tpl']->set_var('show_menu_event',$show_menu_event);
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','sidebox_hide_header');
|
||||
|
||||
display_sidebox('',$menu_title,$file);
|
||||
$GLOBALS['phpgw']->hooks->single('sidebox_menu',$GLOBALS['phpgw_info']['flags']['currentapp']);
|
||||
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','sidebox_hide_footer');
|
||||
|
||||
$var['sideboxcolstart']='';
|
||||
|
||||
$GLOBALS['jerryr_tpl']->set_var($var);
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','appbox');
|
||||
$var['remove_padding'] = 'style="padding-left:0px;"';
|
||||
$var['sideboxcolend'] = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$var['menu_link'] = '';
|
||||
$var['sideboxcolstart'] = '<td id="tdSidebox" valign="top">';
|
||||
$var['remove_padding'] = '';
|
||||
$GLOBALS['jerryr_tpl']->set_var($var);
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','appbox');
|
||||
|
||||
display_sidebox('',$menu_title,$file);
|
||||
$GLOBALS['phpgw']->hooks->single('sidebox_menu',$GLOBALS['phpgw_info']['flags']['currentapp']);
|
||||
|
||||
$var['sideboxcolend'] = '</td>';
|
||||
}
|
||||
|
||||
$GLOBALS['jerryr_tpl']->set_var($var);
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','navbar_footer');
|
||||
|
||||
// If the application has a header include, we now include it
|
||||
if(!@$GLOBALS['phpgw_info']['flags']['noappheader'] && @isset($_GET['menuaction']))
|
||||
{
|
||||
list($app,$class,$method) = explode('.',$_GET['menuaction']);
|
||||
if(is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['header'])
|
||||
{
|
||||
$GLOBALS[$class]->header();
|
||||
}
|
||||
}
|
||||
$GLOBALS['phpgw']->hooks->process('after_navbar');
|
||||
return;
|
||||
}
|
||||
|
||||
function display_sidebox($appname,$menu_title,$file)
|
||||
{
|
||||
if(!$appname || ($appname==$GLOBALS['phpgw_info']['flags']['currentapp'] && $file))
|
||||
{
|
||||
$var['lang_title']=$menu_title;//$appname.' '.lang('Menu');
|
||||
$GLOBALS['jerryr_tpl']->set_var($var);
|
||||
$GLOBALS['jerryr_tpl']->pfp('out','extra_blocks_header');
|
||||
|
||||
foreach($file as $text => $url)
|
||||
{
|
||||
sidebox_menu_item($url,$text);
|
||||
$var['app_extra_icons_div']= $app_extra_icons_div;
|
||||
// $var['app_extra_icons_icon']= '<td width="26" valign="top" align="right" style="padding-right:3px;padding-top:50px;"><a title="'.lang('show_more_apps').'" href="javascript:void(0);" onClick="HideShow(\'extraIcons\');"><img src="'.$var['img_root'].'/extra_icons.png" border="0" /></a></td>';
|
||||
$var['app_extra_icons_icon']= '<td width="26" valign="top" align="right" style="padding-right:3px;padding-top:50px;"><a title="'.lang('show_more_apps').'" href="#" '.$show_menu_event.'="ypSlideOutMenu.showMenu(\'menu1\')"><img src="'.$var['img_root'].'/extra_icons.png" border="0" /></a></td>';
|
||||
}
|
||||
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','extra_blocks_footer');
|
||||
}
|
||||
}
|
||||
|
||||
function sidebox_menu_item($item_link='',$item_text='')
|
||||
{
|
||||
if($item_text === '_NewLine_' || $item_link === '_NewLine_')
|
||||
{
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','extra_block_spacer');
|
||||
}
|
||||
else
|
||||
{
|
||||
$var['icon_or_star']='<img src="'.$GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/jerryr/images'.'/menu_icon.png" width="9" height="9" alt="Menu Icon"/>';
|
||||
$var['target'] = '';
|
||||
if(is_array($item_link))
|
||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']!='icons')
|
||||
{
|
||||
if(isset($item_link['icon']))
|
||||
{
|
||||
$app = isset($item_link['app']) ? $item_link['app'] : $GLOBALS['phpgw_info']['flags']['currentapp'];
|
||||
$var['icon_or_star'] = '<img src="'.$GLOBALS['phpgw']->common->image($app,$item_link['icon']).'"/>';
|
||||
}
|
||||
$var['lang_item'] = isset($item_link['no_lang']) && $item_link['no_lang'] ? $item_link['text'] : lang($item_link['text']);
|
||||
$var['item_link'] = $item_link['link'];
|
||||
if ($item_link['target'])
|
||||
{
|
||||
$var['target'] = ' target="' . $item_link['target'] . '"';
|
||||
}
|
||||
$var['app_titles'] = $app_titles;
|
||||
}
|
||||
else
|
||||
{
|
||||
$var['lang_item'] = lang($item_text);
|
||||
$var['item_link'] = $item_link;
|
||||
$var['app_titles'] = '<td colspan="'.$max_icons.'"> </td>';
|
||||
}
|
||||
if(isset($GLOBALS['phpgw_info']['flags']['app_header']))
|
||||
{
|
||||
$var['current_app_title'] = $GLOBALS['phpgw_info']['flags']['app_header'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$var['current_app_title']=$GLOBALS['phpgw_info']['navbar'][$GLOBALS['phpgw_info']['flags']['currentapp']]['title'];
|
||||
}
|
||||
|
||||
if(isset($GLOBALS['phpgw_info']['navbar']['admin']) && $GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers'])
|
||||
{
|
||||
$var['current_users'] = '<a href="'
|
||||
. $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions') . '">'
|
||||
. lang('Current users') . ': ' . $GLOBALS['phpgw']->session->total() . '</a>';
|
||||
}
|
||||
$now = time();
|
||||
$var['user_info'] = '<b>'.$GLOBALS['phpgw']->common->display_fullname() .'</b>'. ' - '
|
||||
. lang($GLOBALS['phpgw']->common->show_date($now,'l')) . ' '
|
||||
. $GLOBALS['phpgw']->common->show_date($now,$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
|
||||
|
||||
if($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == 0)
|
||||
{
|
||||
$api_messages = lang('You are required to change your password during your first login')
|
||||
. '<br> Click this image on the navbar: <img src="'
|
||||
. $GLOBALS['phpgw']->common->image('preferences','navbar.gif').'">';
|
||||
}
|
||||
elseif($GLOBALS['phpgw_info']['user']['lastpasswd_change'] < time() - (86400*30))
|
||||
{
|
||||
$api_messages = lang('it has been more then %1 days since you changed your password',30);
|
||||
}
|
||||
|
||||
// This is gonna change
|
||||
if(isset($cd))
|
||||
{
|
||||
$var['messages'] = $api_messages . '<br>' . checkcode($cd);
|
||||
}
|
||||
|
||||
$var['logo_file'] = $GLOBALS['phpgw']->common->image('phpgwapi',$GLOBALS['phpgw_info']['server']['login_logo_file']?$GLOBALS['phpgw_info']['server']['login_logo_file']:'logo');
|
||||
$var['logo_url'] = $GLOBALS['phpgw_info']['server']['login_logo_url']?$GLOBALS['phpgw_info']['server']['login_logo_url']:'http://www.eGroupWare.org';
|
||||
$var['logo_title'] = $GLOBALS['phpgw_info']['server']['login_logo_title']?$GLOBALS['phpgw_info']['server']['login_logo_title']:'www.eGroupWare.org';
|
||||
|
||||
$GLOBALS['jerryr_tpl']->set_var($var);
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','extra_block_row');
|
||||
$GLOBALS['jerryr_tpl']->pfp('out','navbar_header');
|
||||
|
||||
/******************************************************\
|
||||
* The sidebox menu's *
|
||||
\******************************************************/
|
||||
|
||||
$menu_title = lang('General Menu');
|
||||
|
||||
$file['Home'] = $GLOBALS['phpgw_info']['navbar']['home']['url'];
|
||||
if($GLOBALS['phpgw_info']['user']['apps']['preferences'])
|
||||
{
|
||||
$file['Preferences'] = $GLOBALS['phpgw_info']['navbar']['preferences']['url'];
|
||||
}
|
||||
$file += array(
|
||||
array(
|
||||
'text' => lang('About %1',$GLOBALS['phpgw_info']['apps'][$GLOBALS['phpgw_info']['flags']['currentapp']]['title']),
|
||||
'no_lang' => True,
|
||||
'link' => $GLOBALS['phpgw_info']['navbar']['about']['url']
|
||||
),
|
||||
'Logout'=>$GLOBALS['phpgw_info']['navbar']['logout']['url']
|
||||
);
|
||||
|
||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['auto_hide_sidebox']==1)
|
||||
{
|
||||
$GLOBALS['jerryr_tpl']->set_var('show_menu_event',$show_menu_event);
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','sidebox_hide_header');
|
||||
|
||||
display_sidebox('',$menu_title,$file);
|
||||
$GLOBALS['phpgw']->hooks->single('sidebox_menu',$GLOBALS['phpgw_info']['flags']['currentapp']);
|
||||
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','sidebox_hide_footer');
|
||||
|
||||
$var['sideboxcolstart']='';
|
||||
|
||||
$GLOBALS['jerryr_tpl']->set_var($var);
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','appbox');
|
||||
$var['remove_padding'] = 'style="padding-left:0px;"';
|
||||
$var['sideboxcolend'] = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$var['menu_link'] = '';
|
||||
$var['sideboxcolstart'] = '<td id="tdSidebox" valign="top">';
|
||||
$var['remove_padding'] = '';
|
||||
$GLOBALS['jerryr_tpl']->set_var($var);
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','appbox');
|
||||
|
||||
display_sidebox('',$menu_title,$file);
|
||||
$GLOBALS['phpgw']->hooks->single('sidebox_menu',$GLOBALS['phpgw_info']['flags']['currentapp']);
|
||||
|
||||
$var['sideboxcolend'] = '</td>';
|
||||
}
|
||||
|
||||
$GLOBALS['jerryr_tpl']->set_var($var);
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','navbar_footer');
|
||||
|
||||
// If the application has a header include, we now include it
|
||||
if(!@$GLOBALS['phpgw_info']['flags']['noappheader'] && @isset($_GET['menuaction']))
|
||||
{
|
||||
list($app,$class,$method) = explode('.',$_GET['menuaction']);
|
||||
if(is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['header'])
|
||||
{
|
||||
$GLOBALS[$class]->header();
|
||||
}
|
||||
}
|
||||
$GLOBALS['phpgw']->hooks->process('after_navbar');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function parse_navbar_end()
|
||||
{
|
||||
$GLOBALS['jerryr_tpl'] = createobject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
|
||||
|
||||
$GLOBALS['jerryr_tpl']->set_file(
|
||||
array(
|
||||
'footer' => 'footer.tpl'
|
||||
)
|
||||
);
|
||||
$var = Array(
|
||||
'img_root' => $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/jerryr/images',
|
||||
'table_bg_color' => $GLOBALS['phpgw_info']['theme']['navbar_bg'],
|
||||
'version' => $GLOBALS['phpgw_info']['server']['versions']['phpgwapi']
|
||||
);
|
||||
$GLOBALS['phpgw']->hooks->process('navbar_end');
|
||||
|
||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['show_generation_time'])
|
||||
function display_sidebox($appname,$menu_title,$file)
|
||||
{
|
||||
$mtime = microtime();
|
||||
$mtime = explode(' ',$mtime);
|
||||
$mtime = $mtime[1] + $mtime[0];
|
||||
$tend = $mtime;
|
||||
$totaltime = ($tend - $GLOBALS['page_start_time']);
|
||||
if(!$appname || ($appname==$GLOBALS['phpgw_info']['flags']['currentapp'] && $file))
|
||||
{
|
||||
$var['lang_title']=$menu_title;//$appname.' '.lang('Menu');
|
||||
$GLOBALS['jerryr_tpl']->set_var($var);
|
||||
$GLOBALS['jerryr_tpl']->pfp('out','extra_blocks_header');
|
||||
|
||||
$var['page_generation_time'] = '<div id="divGenTime"><br/><span>'.lang('Page was generated in %1 seconds',$totaltime).'</span></div>';
|
||||
foreach($file as $text => $url)
|
||||
{
|
||||
sidebox_menu_item($url,$text);
|
||||
}
|
||||
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','extra_blocks_footer');
|
||||
}
|
||||
}
|
||||
|
||||
$var['powered_by'] = lang('Powered by phpGroupWare version %1',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
|
||||
$GLOBALS['jerryr_tpl']->set_var($var);
|
||||
$GLOBALS['jerryr_tpl']->pfp('out','footer');
|
||||
}
|
||||
function sidebox_menu_item($item_link='',$item_text='')
|
||||
{
|
||||
if($item_text === '_NewLine_' || $item_link === '_NewLine_')
|
||||
{
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','extra_block_spacer');
|
||||
}
|
||||
else
|
||||
{
|
||||
$var['icon_or_star']='<img src="'.$GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/jerryr/images'.'/orange-ball.png" width="9" height="9" alt="ball"/>';
|
||||
$var['target'] = '';
|
||||
if(is_array($item_link))
|
||||
{
|
||||
if(isset($item_link['icon']))
|
||||
{
|
||||
$app = isset($item_link['app']) ? $item_link['app'] : $GLOBALS['phpgw_info']['flags']['currentapp'];
|
||||
$var['icon_or_star'] = '<img src="'.$GLOBALS['phpgw']->common->image($app,$item_link['icon']).'"/>';
|
||||
}
|
||||
$var['lang_item'] = isset($item_link['no_lang']) && $item_link['no_lang'] ? $item_link['text'] : lang($item_link['text']);
|
||||
$var['item_link'] = $item_link['link'];
|
||||
if ($item_link['target'])
|
||||
{
|
||||
$var['target'] = ' target="' . $item_link['target'] . '"';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$var['lang_item'] = lang($item_text);
|
||||
$var['item_link'] = $item_link;
|
||||
}
|
||||
$GLOBALS['jerryr_tpl']->set_var($var);
|
||||
$GLOBALS['jerryr_tpl']->pparse('out','extra_block_row');
|
||||
}
|
||||
}
|
||||
|
||||
function parse_navbar_end()
|
||||
{
|
||||
$GLOBALS['jerryr_tpl'] = createobject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
|
||||
|
||||
$GLOBALS['jerryr_tpl']->set_file(
|
||||
array(
|
||||
'footer' => 'footer.tpl'
|
||||
)
|
||||
);
|
||||
$var = Array(
|
||||
'img_root' => $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/jerryr/images',
|
||||
'table_bg_color' => $GLOBALS['phpgw_info']['theme']['navbar_bg'],
|
||||
'version' => $GLOBALS['phpgw_info']['server']['versions']['phpgwapi']
|
||||
);
|
||||
$GLOBALS['phpgw']->hooks->process('navbar_end');
|
||||
|
||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['show_generation_time'])
|
||||
{
|
||||
$mtime = microtime();
|
||||
$mtime = explode(' ',$mtime);
|
||||
$mtime = $mtime[1] + $mtime[0];
|
||||
$tend = $mtime;
|
||||
$totaltime = ($tend - $GLOBALS['page_start_time']);
|
||||
|
||||
$var['page_generation_time'] = '<div id="divGenTime"><br/><span>'.lang('Page was generated in %1 seconds',$totaltime).'</span></div>';
|
||||
}
|
||||
|
||||
$var['powered_by'] = lang('Powered by phpGroupWare version %1',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
|
||||
$GLOBALS['jerryr_tpl']->set_var($var);
|
||||
$GLOBALS['jerryr_tpl']->pfp('out','footer');
|
||||
}
|
||||
|
52
phpgwapi/themes/jerryr.theme
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* phpGroupWare *
|
||||
* http://www.phpgroupware.org *
|
||||
* -------------------------------------------- *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU General Public License as published by the *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
$phpgw_info['theme']['bg_color'] = '#FFFFFF';
|
||||
$phpgw_info['theme']['bg_text'] = '#000000';
|
||||
$phpgw_info['theme']['vlink'] = 'blue';
|
||||
$phpgw_info['theme']['alink'] = 'red';
|
||||
$phpgw_info['theme']['link'] = 'blue';
|
||||
$phpgw_info['theme']['row_on'] = '#eeeeee';
|
||||
$phpgw_info['theme']['row_off'] = '#EEEEEE';
|
||||
$phpgw_info['theme']['row_text'] = '#000000';
|
||||
$phpgw_info['theme']['th_bg'] = '#ebe8e4';
|
||||
$phpgw_info['theme']['th_text'] = '#000000';
|
||||
$phpgw_info['theme']['navbar_bg'] = '#9999FF';
|
||||
$phpgw_info['theme']['navbar_text'] = '#FFFFFF';
|
||||
$phpgw_info['theme']['table_bg'] = '#9999FF';
|
||||
$phpgw_info['theme']['table_text'] = '#000000';
|
||||
$phpgw_info['theme']['font'] = 'Arial, Helvetica, san-serif';
|
||||
$phpgw_info['theme']['bg01'] = '#dadada';
|
||||
$phpgw_info['theme']['bg02'] = '#dad0d0';
|
||||
$phpgw_info['theme']['bg03'] = '#dacaca';
|
||||
$phpgw_info['theme']['bg04'] = '#dac0c0';
|
||||
$phpgw_info['theme']['bg05'] = '#dababa';
|
||||
$phpgw_info['theme']['bg06'] = '#dab0b0';
|
||||
$phpgw_info['theme']['bg07'] = '#daaaaa';
|
||||
$phpgw_info['theme']['bg08'] = '#da9090';
|
||||
$phpgw_info['theme']['bg09'] = '#da8a8a';
|
||||
$phpgw_info['theme']['bg10'] = '#da7a7a';
|
||||
|
||||
// Theses are for the calendar only
|
||||
$phpgw_info['theme']['cal_today'] = '#FFFFCC';
|
||||
$phpgw_info['theme']['cal_dayview'] = '#C0C0C0';
|
||||
|
||||
// These are for the email only
|
||||
$phpgw_info['theme']['em_folder'] = '#666699';
|
||||
$phpgw_info['theme']['em_folder_text'] = '#FFFFFF';
|
||||
|
||||
// the iDots template uses only css and the default theme (this file)
|
||||
if ($GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'] == 'jerryr')
|
||||
{
|
||||
$phpgw_info['theme']['row_off'] = '#fffdf8';
|
||||
$phpgw_info['theme']['em_folder'] = '#a0a0a0';
|
||||
}
|