function menu_print_sidebar($params) { /* See if this is a project or a foundry and show the correct nav menus */ if (!user_isloggedin()) { echo menu_notloggedin(); } else { echo menu_loggedin($params['title']); } //search menu echo menu_search(); if ($params['group']) { $grp =& group_get_object($params['group']); } if ($params['group'] && $grp && $grp->isProject()) { //this is a project page //sf global choices echo menu_project($params['group']); echo menu_software(); echo menu_sourceforge(); } else { if ($params['group'] && $grp) { //this is a foundry page echo menu_foundry_guides($params['group']); echo menu_foundry($params['group']); } else { echo menu_software(); echo menu_sourceforge(); } } //Foundry Links echo menu_foundry_links(); if (!user_isloggedin()) { echo menu_language_box(); } // else { //echo osdn_nav_dropdown(); //} }
<?php // search.php // menu which allows the user to search the observation database global $inIndex, $loggedUser, $objUtil; if (!isset($inIndex) || !$inIndex) { include "../../redirect.php"; } else { menu_search(); } function menu_search() { global $loggedUser, $menuView, $baseURL; $theDate = date('Ymd', strtotime('-1 year')); $lastMinYear = substr($theDate, 0, 4); $lastMinMonth = substr($theDate, 4, 2); $lastMinDay = substr($theDate, 6, 2); $link = ""; reset($_GET); echo "<ul class=\"nav navbar-nav\">\n\t\t\t <li class=\"dropdown\">\n\t <a href=\"http://" . $_SERVER['SERVER_NAME'] . $_SERVER["REQUEST_URI"] . "#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">" . LangSearchMenuTitle . "<b class=\"caret\"></b></a>"; echo " <ul class=\"dropdown-menu\">"; if ($loggedUser && $loggedUser != "admin") { // admin doesn't have own observations echo "<li><a href=\"" . $baseURL . "index.php?indexAction=result_selected_observations&observer=" . urlencode($loggedUser) . "\">" . LangSearchMenuItem1 . "</a></li>"; echo " <li class=\"disabled\">───────────────────</li>"; echo "<li><a href=\"" . $baseURL . "index.php?indexAction=view_lists\">" . LangViewLists . "</a></li>"; echo "<li><a href=\"" . $baseURL . "index.php?indexAction=result_my_sessions\">" . LangSearchMenuItem11 . "</a></li>"; echo " <li class=\"disabled\">───────────────────</li>"; echo "<li><a href=\"" . $baseURL . "index.php?indexAction=view_instruments\">" . LangViewInstruments . "</a></li>"; echo "<li><a href=\"" . $baseURL . "index.php?indexAction=view_sites\">" . LangViewLocations . "</a></li>"; echo "<li><a href=\"" . $baseURL . "index.php?indexAction=view_eyepieces\">" . LangViewEyepieces . "</a></li>";
function menu_print_sidebar($params) { if (!user_isloggedin()) { echo menu_notloggedin(); if (!$GLOBALS['sys_allow_anon']) { return; } } else { echo menu_loggedin($params['title']); } // LJ Site Admin menu added here if (user_is_super_user()) { echo menu_site_admin(); } echo menu_software(); echo menu_site(); //search menu echo menu_search(); ?> <div align="center"> <?php echo $GLOBALS['HTML']->getOsdnNavDropdown(); ?> </div> <?php }