mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Added anchors so developers can link directly to there section in preferences
This commit is contained in:
parent
b814360900
commit
bdbc19216b
@ -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))
|
||||
{
|
||||
|
@ -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