mirror of
https://codeberg.org/mclemens/tsmmonitor2.git
synced 2024-12-22 12:26:32 -05:00
some compatibility fixes (IE makes me wanna cry)
This commit is contained in:
parent
cb24bebdeb
commit
6614fd94dd
@ -6,6 +6,7 @@ font-family: Verdana, Arial, sans-serif;
|
||||
font-size: 12px;
|
||||
margin: 0 0 5px 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* - - - - - - - - - - - - - - - - - - - - */
|
||||
@ -92,17 +93,14 @@ float:right;
|
||||
padding: 0 5px 0 5px;
|
||||
}
|
||||
|
||||
#printpreviewheader {
|
||||
padding: 3px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#menue {
|
||||
width: 180px;
|
||||
padding: 0px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.menuelinks a {
|
||||
width: 180px;
|
||||
display: block;
|
||||
width: auto;
|
||||
margin-bottom: 2px;
|
||||
@ -167,7 +165,7 @@ font-size: 10pt;
|
||||
}
|
||||
|
||||
|
||||
table.zebra { border-spacing: 1px;margin-left: auto; margin-right: auto; width: 100%;}
|
||||
table.zebra { border-spacing: 1px;margin-left: auto; margin-right: auto; width: 100%;}
|
||||
table.zebra th { }
|
||||
table.zebra td.footer { }
|
||||
table.zebra td { padding: 4px;}
|
||||
|
@ -310,7 +310,12 @@ class PollD {
|
||||
}
|
||||
// execute query and store result in mysql db
|
||||
if ($ignorePollFreq || !$this->checkFreq($tablename, $query["pollfreq"], $timestamp)){
|
||||
$result = $this->execute($query["tsmquery"], $server["servername"], $tablename, $timestamp);
|
||||
try {
|
||||
$result = $this->execute($query["tsmquery"], $server["servername"], $tablename, $timestamp);
|
||||
} catch (exception $e) {
|
||||
$result = "";
|
||||
print_r($e);
|
||||
}
|
||||
if ($result != "") {
|
||||
if (!$this->checkHash($tablename, $result["md5"])) {
|
||||
if ($query["polltype"]=="update") {
|
||||
|
@ -520,9 +520,9 @@ class TSMMonitor {
|
||||
if (($this->GETVars['ob'] == $name && $this->GETVars['ob']!="") || ($this->GETVars['ob']=="" && $orderby!="" && $orderby == $name)) {
|
||||
$link = "href='".$_SERVER['PHP_SELF']."?q=".$this->GETVars['qq']."&m=".$this->GETVars['menu']."&sort=".$name."&page=".$this->page."&so=".$sonew."&s=".$this->GETVars['server']."'";
|
||||
if ($orderdir == "asc") {
|
||||
$arrow = "⇑";
|
||||
$arrow = "↑";
|
||||
} else if ($orderdir == "desc") {
|
||||
$arrow = "⇓";
|
||||
$arrow = "↓";
|
||||
}
|
||||
} else {
|
||||
$arrow = "";
|
||||
|
@ -164,11 +164,12 @@ if (isset($_SESSION["logindata"]["user"]) && isset($_SESSION["logindata"]["pass"
|
||||
}
|
||||
}
|
||||
echo "<table class='zebra'>";
|
||||
echo $tsmmonitor->getTableheader();
|
||||
$thead = $tsmmonitor->getTableheader();
|
||||
echo $thead;
|
||||
echo $tsmmonitor->execute('table');
|
||||
$nav = $tsmmonitor->showPageNavigation("40");
|
||||
if ($nav!="") {
|
||||
echo "<tr><td colspan='999' align='center' class='footer'><a class='navhead'>".$nav."</a></td></tr>";
|
||||
echo "<tr><td colspan='".substr_count($thead, "<th>")."' align='center' class='footer'><a class='navhead'>".$nav."</a></td></tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user