mirror of
https://codeberg.org/mclemens/tsmmonitor2.git
synced 2024-12-22 01:36:40 -05:00
beautyfied table footer
This commit is contained in:
parent
3663681af4
commit
6f9003206b
@ -93,6 +93,11 @@ float:right;
|
||||
padding: 0 5px 0 5px;
|
||||
}
|
||||
|
||||
#pagecountbox {
|
||||
height:25px;
|
||||
float:right;
|
||||
}
|
||||
|
||||
#menue {
|
||||
width: 180px;
|
||||
padding: 0px;
|
||||
|
@ -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.' '.$pp.' '.$numbers.' '.$np.' '.$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 "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -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>";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user