source: trunk/phpgwapi/templates/azul/navbar.inc.php @ 887

Revision 887, 19.1 KB checked in by amuller, 15 years ago (diff)

Ticket #475 - Criando links simbolicos e tirando códigos hardcoded

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