2009-05-10 07:44:45 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
************************************************************************
|
|
|
|
This file is part of TSM Monitor.
|
|
|
|
|
|
|
|
TSM Monitor is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
TSM Monitor is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with TSM Monitor. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* topnav.php, TSM Monitor
|
|
|
|
*
|
|
|
|
* top navigation bar for TSM Monitor
|
|
|
|
*
|
|
|
|
* @author Michael Clemens
|
|
|
|
* @package tsmmonitor
|
|
|
|
*/
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2009-05-11 05:23:34 -04:00
|
|
|
<form action="<?php echo $_SERVER['PHP_SELF']."?q=".$GETVars['qq']."&m=".$GETVars['menu']."&s=".$GETVars['server']; ?>" method="post">
|
2009-05-10 07:44:45 -04:00
|
|
|
<?php
|
2009-05-11 06:58:53 -04:00
|
|
|
//if ($GETVars['qq'] != "admin" && !$_POST["edit"] == "edit") {
|
|
|
|
if ($GETVars['qq'] != "index" && $GETVars['qq'] != "overview" && $GETVars['qq'] != "serverlist") {
|
|
|
|
echo "<input type='button' value='PDF' onclick='genPDF()' class='button'>";
|
|
|
|
}
|
|
|
|
if ($GETVars['qq'] != "polldstat" && $GETVars['qq'] != "serverlist") {
|
2009-05-10 07:44:45 -04:00
|
|
|
|
|
|
|
echo "<select name='s' size=1 onChange='submit();' class='button'>";
|
|
|
|
|
|
|
|
while(list($servername,$serveritems) = each($configarray["serverlist"])) {
|
|
|
|
echo '<option value="'.$servername.'"';
|
|
|
|
if ($GETVars['server'] == $servername){echo "SELECTED";}
|
|
|
|
echo '> '.$servername.' ('.$serveritems["description"].')</option>';
|
|
|
|
}
|
|
|
|
echo "</select>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</form>
|