Logo Search packages:      
Sourcecode: nag version File versions  Download package

menu.inc

<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="menu"><table border="0" width="100%"><tr>
<?php

/* Nag menu items. */
Menu::printItem(Horde::applicationUrl('list.php'), _("List Tasks"), 'list.gif');
Menu::printItem(Horde::applicationUrl(Nag::addParameter('task.php', 'actionID=' . NAG_ADD_TASK)), _("New Task"), 'add.gif');
Menu::printItem(Horde::applicationUrl('search.php'), _("Search"), 'search.gif');
if (($conf['prefs']['driver'] != '') && ($conf['prefs']['driver'] != 'none')) {
    Menu::printItem(Horde::applicationUrl('prefs.php'), _("Options"), 'prefs.gif', $registry->getParam('graphics', 'horde'));
}

/* Print */
if($conf['menu']['print'] && isset($print_link) && $browser->hasFeature('javascript')) {
    Menu::printItem('#', _("Print"), 'print.gif', $registry->getParam('graphics'), '', "open_print_win('$print_link'); return false;");
}

/* Horde menu items */
if ($conf['problems']['enabled']) {
    Menu::printItem(Horde::url($registry->getParam('webroot', 'horde') . '/problem.php?return_url=' . urlencode(Horde::url($_SERVER['PHP_SELF'], true))), _("Problem?"), 'problem.gif', $registry->getParam('graphics', 'horde'));
}

/* Additional site-specific menu items. */
if (!empty($additional_items)) echo $additional_items;

/* Online Help */
if ($conf['user']['online_help'] && $browser->hasFeature('javascript')) {
    Menu::printItem(Help::listLink('nag'), _("Help"), 'help.gif', $registry->getParam('graphics', 'horde'));
}

/* Links to other Horde applications. */
if (isset($conf['menu']['apps']) && is_array($conf['menu']['apps'])) {
    foreach ($conf['menu']['apps'] as $app) {
        Menu::printItem(Horde::url($registry->getInitialPage($app)),
                        $registry->getParam('name', $app), $registry->getParam('icon', $app), '');
    }
}

?>

<td width="100%">&nbsp;</td><!-- spacer -->

</tr></table></td></tr></table><br />

Generated by  Doxygen 1.6.0   Back to index