update prefs to use lang() instead

This commit is contained in:
ceb 2002-11-04 00:50:18 +00:00
parent 6f6e06b39f
commit 0f50db2558
4 changed files with 13 additions and 12 deletions

View File

@ -66,7 +66,7 @@
if(is_array($file))
{
section_start($appname,
$GLOBALS['phpgw']->common->image($appname,Array('navbar',$appname,'nonav'),'',True)
$GLOBALS['phpgw']->common->image($appname,'navbar','',True)
);
while(list($text,$url) = each($file))

View File

@ -18,6 +18,6 @@
}
$file['change your settings'] = $GLOBALS['phpgw']->link('/preferences/preferences.php','appname=preferences&type=user');
display_section('Preferences','Preferences',$file);
display_section('preferences',$file);
?>

View File

@ -2,8 +2,8 @@
/**************************************************************************\
* phpGroupWare - preferences *
* http://www.phpgroupware.org *
* Written by Joseph Engo <jengo@phpgroupware.org> *
* -------------------------------------------- *
* Written by phpGroupWare coreteam <phpgroupware-developers@gnu.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 *
@ -78,13 +78,14 @@
}
// This func called by the includes to dump a row header
function section_start($name='',$icon='',$appname='')
function section_start($appname='',$icon='')
{
$GLOBALS['pref_tpl']->set_var('icon_backcolor',$GLOBALS['phpgw_info']['theme']['row_off']);
// $GLOBALS['pref_tpl']->set_var('link_backcolor',$GLOBALS['phpgw_info']['theme']['row_off']);
$GLOBALS['pref_tpl']->set_var('a_name',$appname);
$GLOBALS['pref_tpl']->set_var('app_name',lang($name));
$GLOBALS['pref_tpl']->set_var('app_name',$appname);
$GLOBALS['pref_tpl']->set_var('app_title',lang($appname));
$GLOBALS['pref_tpl']->set_var('app_icon',$icon);
if ($icon)
{
$GLOBALS['pref_tpl']->parse('rows','app_row',True);
@ -116,9 +117,9 @@
$GLOBALS['pref_tpl']->parse('rows','spacer_row',True);
}
function display_section($appname,$title,$file)
function display_section($appname,$file)
{
section_start($title,$GLOBALS['phpgw']->common->image($appname,'navbar'),$appname);
section_start($appname,$GLOBALS['phpgw']->common->image($appname,'navbar','',True));
while(list($text,$url) = each($file))
{

View File

@ -12,14 +12,14 @@
<!-- BEGIN app_row -->
<tr class="th_bright">
<td width="5%" valign="middle"><img src="{app_icon}" alt="[ {app_name} ]"> <a name="{a_name}"></a></td>
<td width="95%" valign="middle"><strong>&nbsp;&nbsp;{app_name}</strong></td>
<td width="5%" valign="middle"><img src="{app_icon}" alt="[ {app_title} ]"> <a name="{app_name}"></a></td>
<td width="95%" valign="middle"><b>&nbsp;&nbsp;{app_title}</b></td>
</tr>
<!-- END app_row -->
<!-- BEGIN app_row_noicon -->
<tr class="th_bright">
<td colspan="2" width="95%" valign="middle"><strong>&nbsp;&nbsp;{app_name}</strong> <a name="{a_name}"></a></td>
<td colspan="2" width="95%" valign="middle"><b>&nbsp;&nbsp;{app_title}</b> <a name="{app_name}"></a></td>
</tr>
<!-- END app_row_noicon -->