Added anchors so developers can link directly to there section in preferences

This commit is contained in:
jengo 2001-05-31 19:07:11 +00:00
parent b814360900
commit bdbc19216b
2 changed files with 5 additions and 4 deletions

View File

@ -29,12 +29,13 @@
$pref_tpl->set_block('pref','spacer_row');
// This func called by the includes to dump a row header
function section_start($name='',$icon='')
function section_start($name='',$icon='',$appname='')
{
global $phpgw_info, $pref_tpl;
$pref_tpl->set_var('icon_backcolor',$phpgw_info['theme']['row_off']);
// $pref_tpl->set_var('link_backcolor',$phpgw_info['theme']['row_off']);
$pref_tpl->set_var('a_name',$appname);
$pref_tpl->set_var('app_name',lang($name));
$pref_tpl->set_var('app_icon',$icon);
if ($icon)
@ -66,7 +67,7 @@
function display_section($appname,$title,$file)
{
global $phpgw;
section_start($title,$phpgw->common->image($appname,Array('navbar.gif',$appname.'.gif')));
section_start($title,$phpgw->common->image($appname,Array('navbar.gif',$appname.'.gif')),$appname);
while(list($text,$url) = each($file))
{

View File

@ -6,14 +6,14 @@
<!-- BEGIN app_row -->
<tr bgcolor="{icon_backcolor}">
<td width="5%" valign="middle"><img src="{app_icon}" alt="[ {app_name} ]"></td>
<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>
</tr>
<!-- END app_row -->
<!-- BEGIN app_row_noicon -->
<tr bgcolor="{icon_backcolor}">
<td colspan="2" width="95%" valign="middle"><strong>&nbsp;&nbsp;{app_name}</strong></td>
<td colspan="2" width="95%" valign="middle"><strong>&nbsp;&nbsp;{app_name}</strong> <a name="{a_name}"></a></td>
</tr>
<!-- END app_row_noicon -->