1 | <?php
|
---|
2 | /**************************************************************************\
|
---|
3 | * phpGroupWare *
|
---|
4 | * http://www.phpgroupware.org *
|
---|
5 | * -------------------------------------------- *
|
---|
6 | * This program is free software; you can redistribute it and/or modify it *
|
---|
7 | * under the terms of the GNU General Public License as published by the *
|
---|
8 | * Free Software Foundation; either version 2 of the License, or (at your *
|
---|
9 | * option) any later version. *
|
---|
10 | \**************************************************************************/
|
---|
11 |
|
---|
12 |
|
---|
13 | function parse_navbar($force = False)
|
---|
14 | {
|
---|
15 |
|
---|
16 | $GLOBALS['serpro_tpl'] = createobject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
|
---|
17 |
|
---|
18 | $GLOBALS['serpro_tpl']->set_file(
|
---|
19 | array(
|
---|
20 | 'navbar' => 'navbar.tpl'
|
---|
21 | )
|
---|
22 | );
|
---|
23 |
|
---|
24 | $GLOBALS['serpro_tpl']->set_block('navbar','navbar_header','navbar_header');
|
---|
25 | $GLOBALS['serpro_tpl']->set_block('navbar','extra_blocks_header','extra_block_header');
|
---|
26 | $GLOBALS['serpro_tpl']->set_block('navbar','extra_block_row','extra_block_row');
|
---|
27 | $GLOBALS['serpro_tpl']->set_block('navbar','extra_block_spacer','extra_block_spacer');
|
---|
28 | $GLOBALS['serpro_tpl']->set_block('navbar','extra_blocks_footer','extra_blocks_footer');
|
---|
29 | $GLOBALS['serpro_tpl']->set_block('navbar','sidebox_hide_header','sidebox_hide_header');
|
---|
30 | $GLOBALS['serpro_tpl']->set_block('navbar','sidebox_hide_footer','sidebox_hide_footer');
|
---|
31 | $GLOBALS['serpro_tpl']->set_block('navbar','appbox','appbox');
|
---|
32 | $GLOBALS['serpro_tpl']->set_block('navbar','navbar_footer','navbar_footer');
|
---|
33 |
|
---|
34 | $var['img_root'] = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/serpro/images';
|
---|
35 | $var['dir_root'] = $GLOBALS['phpgw_info']['server']['webserver_url'];
|
---|
36 | $var['table_bg_color'] = $GLOBALS['phpgw_info']['theme']['navbar_bg'];
|
---|
37 |
|
---|
38 | if($GLOBALS['phpgw_info']['user']['preferences']['common']['click_or_onmouseover']=='onmouseover')
|
---|
39 | {
|
---|
40 | $show_menu_event = 'onMouseOver';
|
---|
41 | }
|
---|
42 | else
|
---|
43 | {
|
---|
44 | $show_menu_event = 'onClick';
|
---|
45 | }
|
---|
46 |
|
---|
47 |
|
---|
48 | $applications = '';
|
---|
49 |
|
---|
50 | // == 'icons_and_text')
|
---|
51 |
|
---|
52 | $max_icons=$GLOBALS['phpgw_info']['user']['preferences']['common']['max_icons'];
|
---|
53 |
|
---|
54 | if(!$max_icons)
|
---|
55 | {
|
---|
56 | $max_icons=200;
|
---|
57 | }
|
---|
58 |
|
---|
59 | $i = 0;
|
---|
60 | foreach($GLOBALS['phpgw_info']['navbar'] as $app => $app_data)
|
---|
61 | {
|
---|
62 |
|
---|
63 | if($app != 'preferences' && $app != 'about' && $app != 'logout')
|
---|
64 | {
|
---|
65 | $title = $GLOBALS['phpgw_info']['apps'][$app]['title'];
|
---|
66 | // 020204 ndee
|
---|
67 | if($app == 'home') $title = lang('Home');
|
---|
68 | $icon = '<a href="'.$app_data['url'].'"><img src="' . $app_data['icon'] . '" alt="' . $title . '" title="'. $title . '" border="0" /></a>';
|
---|
69 |
|
---|
70 | if($app=='home')
|
---|
71 | {
|
---|
72 | if($GLOBALS['phpgw_info']['user']['preferences']['common']['start_and_logout_icons']=='no')
|
---|
73 | {
|
---|
74 | continue;
|
---|
75 | }
|
---|
76 | }
|
---|
77 |
|
---|
78 | // Verifica qual o formato da Barra de navegação:
|
---|
79 | // Icone ou Texto, ou Icone e Texto
|
---|
80 |
|
---|
81 |
|
---|
82 | if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']=='icons') {
|
---|
83 | $title_extra = $title;
|
---|
84 | $title = '';
|
---|
85 | }
|
---|
86 | else if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']=='text'){
|
---|
87 | $icon = '';
|
---|
88 | }
|
---|
89 |
|
---|
90 | if($i< $max_icons) {
|
---|
91 |
|
---|
92 | if($GLOBALS['phpgw_info']['user']['preferences']['common']['start_and_logout_icons']=='no')
|
---|
93 | {
|
---|
94 | $tdwidth = 100/($max_icons);
|
---|
95 | }
|
---|
96 | else
|
---|
97 | {
|
---|
98 | $tdwidth = 100/($max_icons+2);
|
---|
99 | }
|
---|
100 |
|
---|
101 | $app_icons .= '<td nowrap width="74px" height="40" valign="center" align="center" style="padding-bottom:10px;cursor:pointer;cursor:hand;">';
|
---|
102 |
|
---|
103 | if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
---|
104 | {
|
---|
105 | $app_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
|
---|
106 | }
|
---|
107 | $app_icons .= $icon;
|
---|
108 | }
|
---|
109 |
|
---|
110 |
|
---|
111 | $icon = '<img align="center" src="' . $app_data['icon'] . '" alt="' . $title . '" width="16" title="'. $title . '" border="0" />';
|
---|
112 |
|
---|
113 | $app_extra_icons .= '<tr>';
|
---|
114 |
|
---|
115 | if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']!='text')
|
---|
116 | {
|
---|
117 | $app_extra_icons .= '<td class="extraIconsRow"><a href="' . $app_data['url'] . '"';
|
---|
118 |
|
---|
119 | if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
---|
120 | {
|
---|
121 | $app_extra_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
|
---|
122 | }
|
---|
123 |
|
---|
124 | $app_extra_icons .= ' >' . $icon . '</a></td>';
|
---|
125 | }
|
---|
126 |
|
---|
127 |
|
---|
128 | $app_extra_icons .= '<td align="left" class="extraIconsRow" style=""><a href="'.$app_data['url'] . '"';
|
---|
129 |
|
---|
130 | if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
---|
131 | {
|
---|
132 | $app_extra_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
|
---|
133 | }
|
---|
134 |
|
---|
135 | $app_extra_icons .= '>' . $title_extra . '</a></td></tr>';
|
---|
136 |
|
---|
137 | unset($icon);
|
---|
138 | unset($title);
|
---|
139 | $i++;
|
---|
140 | }
|
---|
141 | }
|
---|
142 |
|
---|
143 | if($GLOBALS['phpgw_info']['user']['preferences']['common']['start_and_logout_icons']!='no')
|
---|
144 | {
|
---|
145 |
|
---|
146 | $hint = $GLOBALS['phpgw_info']['navbar']['logout']['title'];
|
---|
147 | $icon = '<img src="'.$GLOBALS['phpgw_info']['navbar']['logout']['icon'].'" alt="'.$hint.'" title="'.$hint.'">';
|
---|
148 |
|
---|
149 | if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']=='icons') {
|
---|
150 |
|
---|
151 | $title = '';
|
---|
152 | }
|
---|
153 | else if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']=='text'){
|
---|
154 |
|
---|
155 | $icon = '';
|
---|
156 | }
|
---|
157 |
|
---|
158 | $app_icons .= '<td width="74px" height="40" valign="top" align="left" onclick="location.href=\''.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'\'" style="cursor:pointer;cursor:hand;">'.$icon.'</td>';
|
---|
159 | } // window.location.href=\''.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'\'
|
---|
160 |
|
---|
161 | $var['app_icons'] = $app_icons;
|
---|
162 |
|
---|
163 | $hint = $GLOBALS['phpgw_info']['navbar']['logout']['title'];
|
---|
164 | $icon = '<img width="16" src="'.$GLOBALS['phpgw_info']['navbar']['logout']['icon'].'" alt="'.$hint.'" title="'.$hint.'">';
|
---|
165 | $title = $GLOBALS['phpgw_info']['navbar']['logout']['title'];
|
---|
166 |
|
---|
167 | $app_extra_icons .= '<td class="extraIconsRow">
|
---|
168 | <a href="'.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'">'.$icon.'</a></td>';
|
---|
169 |
|
---|
170 | $app_extra_icons .= '<td class="extraIconsRow">
|
---|
171 | <a href="'.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'">'.$title.'</a></td>';
|
---|
172 |
|
---|
173 |
|
---|
174 | $app_extra_icons_div = '
|
---|
175 | <script language="javascript">
|
---|
176 | new ypSlideOutMenu("menu1", "down", 5, 24, 160, 200,\'left\')
|
---|
177 | </script>
|
---|
178 | <div id="menu1Container">
|
---|
179 | <div id="menu1Content" style="position: relative; left: 0; text-align: left;">
|
---|
180 |
|
---|
181 | <div id="extraIcons">
|
---|
182 |
|
---|
183 | <table cellspacing="0" cellpadding="0" border="0" width="100%">
|
---|
184 | <tr>
|
---|
185 | <td colspan="2" nowrap="nowrap" align="right" style="background-color:#dddddd;padding:1px;">
|
---|
186 | <a href="#" '.$show_menu_event.'="ypSlideOutMenu.hide(\'menu1\')" title="'.lang('close').'">
|
---|
187 | <img style="" border="0" src="'.$var['img_root'].'/close.png"/></a></span></td></tr>
|
---|
188 | <tr>
|
---|
189 | <td colspan="1" valign="top" nowrap="nowrap" align="left" style="background-color:#dddddd;padding:1px;">
|
---|
190 | <a href="#" onClick="javascript:ypSlideOutMenu.hide(\'menu1\');showBar()" title="'.lang('Expand Menu').'">
|
---|
191 | <img src = "'.$var['img_root'].'/down.button.png"></a>
|
---|
192 | </td>
|
---|
193 | <td colspan="1" valign="top" nowrap="nowrap" align="left" style="background-color:#dddddd;padding:1px;">
|
---|
194 | <a href="#" onClick="javascript:ypSlideOutMenu.hide(\'menu1\');showBar()" title="'.lang('Expand Menu').'">
|
---|
195 | <b>'.lang('Expand Menu').'</b></a></td></tr>
|
---|
196 | '.$app_extra_icons.'</table>
|
---|
197 | </div>
|
---|
198 |
|
---|
199 | </div>
|
---|
200 | </div>
|
---|
201 | ';
|
---|
202 |
|
---|
203 | $var['app_extra_icons_div']= $app_extra_icons_div;
|
---|
204 | $var['app_extra_icons_icon']= '<td width="26" valign="top" align="right" style="zIndex:10000;padding-right:3px;padding-top:10px;"><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>';
|
---|
205 |
|
---|
206 |
|
---|
207 | if(isset($GLOBALS['phpgw_info']['flags']['app_header']))
|
---|
208 | {
|
---|
209 | $var['current_app_title'] = $GLOBALS['phpgw_info']['flags']['app_header'];
|
---|
210 | }
|
---|
211 | else
|
---|
212 | {
|
---|
213 | $var['current_app_title']=$GLOBALS['phpgw_info']['navbar'][$GLOBALS['phpgw_info']['flags']['currentapp']]['title'];
|
---|
214 | }
|
---|
215 |
|
---|
216 | if(isset($GLOBALS['phpgw_info']['navbar']['admin']) && $GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers'])
|
---|
217 | {
|
---|
218 | $var['current_users'] = '<a href="'
|
---|
219 | . $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions') . '">'
|
---|
220 | . lang('Current users') . ': ' . $GLOBALS['phpgw']->session->total() . '</a>';
|
---|
221 | }
|
---|
222 | $now = time();
|
---|
223 | $var['user_info'] = '<b>'.$GLOBALS['phpgw']->common->display_fullname() .'</b>'. ' - '
|
---|
224 | . lang($GLOBALS['phpgw']->common->show_date($now,'l')) . ' '
|
---|
225 | . $GLOBALS['phpgw']->common->show_date($now,$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
|
---|
226 |
|
---|
227 | if($GLOBALS['phpgw_info']['server']['use_frontend_name'])
|
---|
228 | $var['frontend_name'] = " - ".$GLOBALS['phpgw_info']['server']['use_frontend_name'];
|
---|
229 |
|
---|
230 | if($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == 0)
|
---|
231 | {
|
---|
232 | $api_messages = lang('You are required to change your password during your first login')
|
---|
233 | . '<br> Click this image on the navbar: <img src="'
|
---|
234 | . $GLOBALS['phpgw']->common->image('preferences','navbar.gif').'">';
|
---|
235 | }
|
---|
236 | elseif($GLOBALS['phpgw_info']['user']['lastpasswd_change'] < time() - (86400*30))
|
---|
237 | {
|
---|
238 | $api_messages = lang('it has been more then %1 days since you changed your password',30);
|
---|
239 | }
|
---|
240 |
|
---|
241 | // This is gonna change
|
---|
242 | if(isset($cd))
|
---|
243 | {
|
---|
244 | $var['messages'] = $api_messages . '<br>' . checkcode($cd);
|
---|
245 | }
|
---|
246 |
|
---|
247 | $var['logo_file'] = $GLOBALS['phpgw']->common->image('phpgwapi',$GLOBALS['phpgw_info']['server']['login_logo_file']?$GLOBALS['phpgw_info']['server']['login_logo_file']:'logo');
|
---|
248 | $var['logo_url'] = $GLOBALS['phpgw_info']['server']['login_logo_url']?$GLOBALS['phpgw_info']['server']['login_logo_url']:'http://www.eGroupWare.org';
|
---|
249 | $var['logo_title'] = $GLOBALS['phpgw_info']['server']['login_logo_title']?$GLOBALS['phpgw_info']['server']['login_logo_title']:'www.eGroupWare.org';
|
---|
250 | $var['hide_bar_txt'] = lang("Hide header and toolbar");
|
---|
251 | $var['show_bar_txt'] = lang("Show header and toolbar");
|
---|
252 | $GLOBALS['serpro_tpl']->set_var($var);
|
---|
253 | $GLOBALS['serpro_tpl']->pfp('out','navbar_header');
|
---|
254 |
|
---|
255 | /******************************************************\
|
---|
256 | * The sidebox menu's *
|
---|
257 | \******************************************************/
|
---|
258 |
|
---|
259 | $menu_title = lang('General Menu');
|
---|
260 |
|
---|
261 | $file['Home'] = $GLOBALS['phpgw_info']['navbar']['home']['url'];
|
---|
262 | if($GLOBALS['phpgw_info']['user']['apps']['preferences'])
|
---|
263 | {
|
---|
264 | $file['Preferences'] = $GLOBALS['phpgw_info']['navbar']['preferences']['url'];
|
---|
265 | }
|
---|
266 | $file += array(
|
---|
267 | array(
|
---|
268 | 'text' => lang('About %1',$GLOBALS['phpgw_info']['apps'][$GLOBALS['phpgw_info']['flags']['currentapp']]['title']),
|
---|
269 | 'no_lang' => True,
|
---|
270 | 'link' => $GLOBALS['phpgw_info']['navbar']['about']['url']
|
---|
271 | ),
|
---|
272 | 'Logout'=>$GLOBALS['phpgw_info']['navbar']['logout']['url']
|
---|
273 | );
|
---|
274 |
|
---|
275 | if($GLOBALS['phpgw_info']['user']['preferences']['common']['auto_hide_sidebox']==1)
|
---|
276 | {
|
---|
277 | $GLOBALS['serpro_tpl']->set_var('show_menu_event',$show_menu_event);
|
---|
278 | $GLOBALS['serpro_tpl']->set_var('lang_show_menu',lang('show menu'));
|
---|
279 | $GLOBALS['serpro_tpl']->pparse('out','sidebox_hide_header');
|
---|
280 |
|
---|
281 | display_sidebox('',$menu_title,$file);
|
---|
282 | $GLOBALS['phpgw']->hooks->single('sidebox_menu',$GLOBALS['phpgw_info']['flags']['currentapp']);
|
---|
283 |
|
---|
284 | $GLOBALS['serpro_tpl']->pparse('out','sidebox_hide_footer');
|
---|
285 |
|
---|
286 | $var['sideboxcolstart']='';
|
---|
287 |
|
---|
288 | $GLOBALS['serpro_tpl']->set_var($var);
|
---|
289 | $GLOBALS['serpro_tpl']->pparse('out','appbox');
|
---|
290 | $var['remove_padding'] = 'style="padding-left:0px;"';
|
---|
291 | $var['sideboxcolend'] = '';
|
---|
292 | }
|
---|
293 | else
|
---|
294 | {
|
---|
295 | $var['menu_link'] = '';
|
---|
296 | $var['sideboxcolstart'] = '<td id="tdSidebox" valign="top">';
|
---|
297 | $var['remove_padding'] = '';
|
---|
298 | $GLOBALS['serpro_tpl']->set_var($var);
|
---|
299 | $GLOBALS['serpro_tpl']->pparse('out','appbox');
|
---|
300 |
|
---|
301 | display_sidebox('',$menu_title,$file);
|
---|
302 | $GLOBALS['phpgw']->hooks->single('sidebox_menu',$GLOBALS['phpgw_info']['flags']['currentapp']);
|
---|
303 |
|
---|
304 | $var['sideboxcolend'] = '</td>';
|
---|
305 | }
|
---|
306 |
|
---|
307 | $GLOBALS['serpro_tpl']->set_var($var);
|
---|
308 | $GLOBALS['serpro_tpl']->pparse('out','navbar_footer');
|
---|
309 |
|
---|
310 | // If the application has a header include, we now include it
|
---|
311 | if(!@$GLOBALS['phpgw_info']['flags']['noappheader'] && @isset($_GET['menuaction']))
|
---|
312 | {
|
---|
313 | list($app,$class,$method) = explode('.',$_GET['menuaction']);
|
---|
314 | if(is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['header'])
|
---|
315 | {
|
---|
316 | $GLOBALS[$class]->header();
|
---|
317 | }
|
---|
318 | }
|
---|
319 | $GLOBALS['phpgw']->hooks->process('after_navbar');
|
---|
320 | return;
|
---|
321 | }
|
---|
322 |
|
---|
323 | function display_sidebox($appname,$menu_title,$file)
|
---|
324 | {
|
---|
325 | if(!$appname || ($appname==$GLOBALS['phpgw_info']['flags']['currentapp'] && $file))
|
---|
326 | {
|
---|
327 | $var['lang_title']=$menu_title;//$appname.' '.lang('Menu');
|
---|
328 | $GLOBALS['serpro_tpl']->set_var($var);
|
---|
329 | $GLOBALS['serpro_tpl']->pfp('out','extra_blocks_header');
|
---|
330 |
|
---|
331 | foreach($file as $text => $url)
|
---|
332 | {
|
---|
333 | sidebox_menu_item($url,$text);
|
---|
334 | }
|
---|
335 |
|
---|
336 | $GLOBALS['serpro_tpl']->pparse('out','extra_blocks_footer');
|
---|
337 | }
|
---|
338 | }
|
---|
339 |
|
---|
340 | function sidebox_menu_item($item_link='',$item_text='')
|
---|
341 | {
|
---|
342 | if($item_text === '_NewLine_' || $item_link === '_NewLine_')
|
---|
343 | {
|
---|
344 | $GLOBALS['serpro_tpl']->pparse('out','extra_block_spacer');
|
---|
345 | }
|
---|
346 | else
|
---|
347 | {
|
---|
348 | $var['icon_or_star']='<img src="'.$GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/serpro/images'.'/orange-ball.png" width="9" height="9" alt="ball"/>';
|
---|
349 | $var['target'] = '';
|
---|
350 | if(is_array($item_link))
|
---|
351 | {
|
---|
352 | if(isset($item_link['icon']))
|
---|
353 | {
|
---|
354 | $app = isset($item_link['app']) ? $item_link['app'] : $GLOBALS['phpgw_info']['flags']['currentapp'];
|
---|
355 | $var['icon_or_star'] = '<img src="'.$GLOBALS['phpgw']->common->image($app,$item_link['icon']).'"/>';
|
---|
356 | }
|
---|
357 | $var['lang_item'] = isset($item_link['no_lang']) && $item_link['no_lang'] ? $item_link['text'] : lang($item_link['text']);
|
---|
358 | $var['item_link'] = $item_link['link'];
|
---|
359 | if ($item_link['target'])
|
---|
360 | {
|
---|
361 | $var['target'] = ' target="' . $item_link['target'] . '"';
|
---|
362 | }
|
---|
363 | }
|
---|
364 | else
|
---|
365 | {
|
---|
366 | $var['lang_item'] = lang($item_text);
|
---|
367 | $var['item_link'] = $item_link;
|
---|
368 | }
|
---|
369 | $GLOBALS['serpro_tpl']->set_var($var);
|
---|
370 | $GLOBALS['serpro_tpl']->pparse('out','extra_block_row');
|
---|
371 | }
|
---|
372 | }
|
---|
373 |
|
---|
374 | function parse_navbar_end()
|
---|
375 | {
|
---|
376 | $GLOBALS['serpro_tpl'] = createobject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
|
---|
377 |
|
---|
378 | $GLOBALS['serpro_tpl']->set_file(
|
---|
379 | array(
|
---|
380 | 'footer' => 'footer.tpl'
|
---|
381 | )
|
---|
382 | );
|
---|
383 |
|
---|
384 | $var = Array(
|
---|
385 | 'img_root' => $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/serpro/images',
|
---|
386 | 'table_bg_color' => $GLOBALS['phpgw_info']['theme']['navbar_bg'],
|
---|
387 | 'version' => $GLOBALS['phpgw_info']['server']['versions']['phpgwapi']
|
---|
388 | );
|
---|
389 | $GLOBALS['phpgw']->hooks->process('navbar_end');
|
---|
390 |
|
---|
391 |
|
---|
392 | if($GLOBALS['phpgw_info']['user']['preferences']['common']['show_generation_time'])
|
---|
393 | {
|
---|
394 | $mtime = microtime();
|
---|
395 | $mtime = explode(' ',$mtime);
|
---|
396 | $mtime = $mtime[1] + $mtime[0];
|
---|
397 | $tend = $mtime;
|
---|
398 | $totaltime = ($tend - $GLOBALS['page_start_time']);
|
---|
399 |
|
---|
400 | $var['page_generation_time'] = '<div id="divGenTime"><br/><span>'.lang('Page was generated in %1 seconds',$totaltime).'</span></div>';
|
---|
401 | }
|
---|
402 |
|
---|
403 | $var['powered_by'] = lang('Powered by phpGroupWare version %1',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
|
---|
404 | $GLOBALS['serpro_tpl']->set_var($var);
|
---|
405 | $GLOBALS['serpro_tpl']->pfp('out','footer');
|
---|
406 | }
|
---|