some compatibility fixes (IE makes me wanna cry)

This commit is contained in:
Michael Clemens 2009-05-16 22:00:13 +00:00
parent cb24bebdeb
commit 6614fd94dd
4 changed files with 15 additions and 11 deletions

View File

@ -6,6 +6,7 @@ font-family: Verdana, Arial, sans-serif;
font-size: 12px; font-size: 12px;
margin: 0 0 5px 0; margin: 0 0 5px 0;
padding: 0; padding: 0;
width: 100%;
} }
/* - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - */
@ -92,17 +93,14 @@ float:right;
padding: 0 5px 0 5px; padding: 0 5px 0 5px;
} }
#printpreviewheader {
padding: 3px;
font-size: 16px;
}
#menue { #menue {
width: 180px;
padding: 0px; padding: 0px;
vertical-align: top; vertical-align: top;
} }
.menuelinks a { .menuelinks a {
width: 180px;
display: block; display: block;
width: auto; width: auto;
margin-bottom: 2px; margin-bottom: 2px;

View File

@ -310,7 +310,12 @@ class PollD {
} }
// execute query and store result in mysql db // execute query and store result in mysql db
if ($ignorePollFreq || !$this->checkFreq($tablename, $query["pollfreq"], $timestamp)){ if ($ignorePollFreq || !$this->checkFreq($tablename, $query["pollfreq"], $timestamp)){
try {
$result = $this->execute($query["tsmquery"], $server["servername"], $tablename, $timestamp); $result = $this->execute($query["tsmquery"], $server["servername"], $tablename, $timestamp);
} catch (exception $e) {
$result = "";
print_r($e);
}
if ($result != "") { if ($result != "") {
if (!$this->checkHash($tablename, $result["md5"])) { if (!$this->checkHash($tablename, $result["md5"])) {
if ($query["polltype"]=="update") { if ($query["polltype"]=="update") {

View File

@ -520,9 +520,9 @@ class TSMMonitor {
if (($this->GETVars['ob'] == $name && $this->GETVars['ob']!="") || ($this->GETVars['ob']=="" && $orderby!="" && $orderby == $name)) { 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']."'"; $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") { if ($orderdir == "asc") {
$arrow = "⇑"; $arrow = "↑";
} else if ($orderdir == "desc") { } else if ($orderdir == "desc") {
$arrow = "⇓"; $arrow = "↓";
} }
} else { } else {
$arrow = ""; $arrow = "";

View File

@ -164,11 +164,12 @@ if (isset($_SESSION["logindata"]["user"]) && isset($_SESSION["logindata"]["pass"
} }
} }
echo "<table class='zebra'>"; echo "<table class='zebra'>";
echo $tsmmonitor->getTableheader(); $thead = $tsmmonitor->getTableheader();
echo $thead;
echo $tsmmonitor->execute('table'); echo $tsmmonitor->execute('table');
$nav = $tsmmonitor->showPageNavigation("40"); $nav = $tsmmonitor->showPageNavigation("40");
if ($nav!="") { 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>"; echo "</table>";
} }