From 2ebeebfcb3c4e35bac55b16ba71fdde9d9426980 Mon Sep 17 00:00:00 2001 From: jengo Date: Thu, 31 May 2001 19:10:13 +0000 Subject: [PATCH] Added anchors to allow developer to link directly to there section --- admin/index.php | 5 +++-- admin/templates/default/index.tpl | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/admin/index.php b/admin/index.php index fd93bb3937..108baa33fc 100755 --- a/admin/index.php +++ b/admin/index.php @@ -31,13 +31,14 @@ $admin_tpl->set_var('title',lang('Administration')); // This func called by the includes to dump a row header - function section_start($name='',$icon='') + function section_start($name='',$icon='',$appname='') { global $phpgw, $phpgw_info, $admin_tpl; $admin_tpl->set_var('icon_backcolor',$phpgw_info['theme']['row_off']); $admin_tpl->set_var('link_backcolor',$phpgw_info['theme']['row_off']); $admin_tpl->set_var('app_name',lang($name)); + $admin_tpl->set_var('a_name',$appname); $admin_tpl->set_var('app_icon',$icon); if ($icon) { @@ -68,7 +69,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)) { diff --git a/admin/templates/default/index.tpl b/admin/templates/default/index.tpl index c66c193553..21d21b36f5 100755 --- a/admin/templates/default/index.tpl +++ b/admin/templates/default/index.tpl @@ -6,14 +6,14 @@ - [ {app_name} ] + [ {app_name} ]   {app_name} -   {app_name} +   {app_name}