forked from extern/egroupware
Added anchors to allow developer to link directly to there section
This commit is contained in:
parent
bdbc19216b
commit
2ebeebfcb3
@ -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))
|
||||
{
|
||||
|
@ -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> {app_name}</strong></td>
|
||||
</tr>
|
||||
<!-- END app_row -->
|
||||
|
||||
<!-- BEGIN app_row_noicon -->
|
||||
<tr bgcolor="{icon_backcolor}">
|
||||
<td colspan="2" width="95%" valign="middle"><strong> {app_name}</strong></td>
|
||||
<td colspan="2" width="95%" valign="middle"><strong> {app_name}</strong> <a name="{a_name}"></a></td>
|
||||
</tr>
|
||||
<!-- END app_row_noicon -->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user