Add sidebox link to return to main setup menu

This commit is contained in:
Miles Lott 2004-02-02 23:04:07 +00:00
parent 6d860ceda9
commit 6d860f2d3e
2 changed files with 14 additions and 2 deletions

View File

@ -144,9 +144,17 @@
{ {
$GLOBALS['setup_tpl']->set_var('configdomain',' - ' . lang('Domain') . ': ' . $configdomain); $GLOBALS['setup_tpl']->set_var('configdomain',' - ' . lang('Domain') . ': ' . $configdomain);
} }
$GLOBALS['setup_tpl']->set_var('pgw_ver',@$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
if(basename($_SERVER['SCRIPT_FILENAME']) != 'index.php')
{
$index_btn = '<a href="index.php" class="link">' . lang('Setup Main Menu') . '</a>';
$index_img = '<img src="../phpgwapi/templates/idots/images/orange-ball.png" alt="ball" />';
$GLOBALS['setup_tpl']->set_var('pgw_ver',@$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
}
$GLOBALS['setup_tpl']->set_var(array( $GLOBALS['setup_tpl']->set_var(array(
'logoutbutton' => $btn_logout, 'logoutbutton' => $btn_logout,
'indexbutton' => $index_btn,
'indeximg' => $index_img,
'check_install' => $check_install, 'check_install' => $check_install,
'main_menu' => lang('Setup Main Menu'), 'main_menu' => lang('Setup Main Menu'),
'user_login' => lang('Back to user login') 'user_login' => lang('Back to user login')

View File

@ -102,6 +102,10 @@
<td width="20" align="center" valign="middle" class="textSidebox"><img src="../phpgwapi/templates/idots/images/orange-ball.png" alt="ball" /></td><td class="textSidebox">{check_install}</td> <td width="20" align="center" valign="middle" class="textSidebox"><img src="../phpgwapi/templates/idots/images/orange-ball.png" alt="ball" /></td><td class="textSidebox">{check_install}</td>
</tr> </tr>
<tr class="divSideboxEntry">
<td width="20" align="center" valign="middle" class="textSidebox">{indeximg}</td><td class="textSidebox">{indexbutton}</td>
</tr>
<tr class="divSideboxEntry"> <tr class="divSideboxEntry">
<td width="20" align="center" valign="middle" class="textSidebox"><img src="../phpgwapi/templates/idots/images/orange-ball.png" alt="ball" /></td><td class="textSidebox">{logoutbutton}</td> <td width="20" align="center" valign="middle" class="textSidebox"><img src="../phpgwapi/templates/idots/images/orange-ball.png" alt="ball" /></td><td class="textSidebox">{logoutbutton}</td>
</tr> </tr>