beautyfied table footer

This commit is contained in:
Michael Clemens 2009-06-17 12:32:13 +00:00
parent 3663681af4
commit 6f9003206b
3 changed files with 24 additions and 14 deletions

View File

@ -93,6 +93,11 @@ float:right;
padding: 0 5px 0 5px;
}
#pagecountbox {
height:25px;
float:right;
}
#menue {
width: 180px;
padding: 0px;

View File

@ -288,22 +288,27 @@ class TSMMonitor {
}
}
$lines = array ("20", "50", "100", "200", "500");
$linesel = $_SESSION["lines"][$this->GETVars['qq']];
if ($linesel == "") $linesel = "20";
$linebox = "<form action=".$_SERVER['PHP_SELF']."?q=".$this->GETVars['qq']."&m=".$this->GETVars['menu']."&s=".$this->GETVars['server']." method='post'><select name='lpp' size=1 onChange='submit();' class='button topnavbutton'>";
foreach ($lines as $line) {
$linebox .= '<option value="'.$line.'"';
if ($linesel == $line) {$linebox.= "SELECTED";}
$linebox .= '> '.$line.' </option>';
}
$linebox .= "</select></form>";
if ($end > 1) {
$lines = array ("20", "50", "100", "200", "500");
$linesel = $_SESSION["lines"][$this->GETVars['qq']];
if ($linesel == "") $linesel = "20";
$linebox = "<form action=".$_SERVER['PHP_SELF']."?q=".$this->GETVars['qq']."&m=".$this->GETVars['menu']."&s=".$this->GETVars['server']." method='post'><select name='lpp' size=1 onChange='submit();' class='button'>";
foreach ($lines as $line) {
$linebox .= '<option value="'.$line.'"';
if ($linesel == $line) {$linebox.= "SELECTED";}
$linebox .= '> '.$line.' </option>';
}
$linebox .= "</select></form>";
$navline = $fp.'&nbsp;'.$pp.'&nbsp;'.$numbers.'&nbsp;'.$np.'&nbsp;'.$lp;
}
return '<table width="100%" align="center" cellpadding="1" cellspacing="0" border=0><tr><td width="10%" align="left"></td><td width="80%" align="center">'.$navline.'</td><td width="10%" align="right">'.$linebox.'</td></tr></table>';
//return '<table width="100%" align="center" cellpadding="1" cellspacing="0" border=0><tr><td width="10%" align="left"></td><td width="80%" align="center">'.$navline.'</td><td width="10%" align="right">'.$linebox.'</td></tr></table>';
if ($navline != "") {
return '<div id="pagecountbox">'.$linebox.'</div>'.$navline.'';
} else {
return "";
}
}

View File

@ -209,7 +209,7 @@ include_once "includes/page_head.php";
}
$nav = $tsmmonitor->showPageNavigation("40");
if ($nav != "") {
echo "<tr><td colspan='".$thead["numfields"]."' align='center' class='footer'><a class='navhead'>".$nav."</a></td></tr>";
echo "<tr><td colspan='".$thead["numfields"]."' align='center' class='footer'><a>".$nav."</a></td></tr>";
}
echo "</table>";
}