From 6f9003206bd2bbb5193696fa7e054f525aa16bcc Mon Sep 17 00:00:00 2001 From: Michael Clemens Date: Wed, 17 Jun 2009 12:32:13 +0000 Subject: [PATCH] beautyfied table footer --- css/layout.css | 5 +++++ includes/tsmmonitor.php | 31 ++++++++++++++++++------------- index.php | 2 +- 3 files changed, 24 insertions(+), 14 deletions(-) diff --git a/css/layout.css b/css/layout.css index 4addf3d..95f113c 100644 --- a/css/layout.css +++ b/css/layout.css @@ -93,6 +93,11 @@ float:right; padding: 0 5px 0 5px; } +#pagecountbox { +height:25px; +float:right; +} + #menue { width: 180px; padding: 0px; diff --git a/includes/tsmmonitor.php b/includes/tsmmonitor.php index 07ede0c..a4d968c 100644 --- a/includes/tsmmonitor.php +++ b/includes/tsmmonitor.php @@ -288,22 +288,27 @@ class TSMMonitor { } } - $lines = array ("20", "50", "100", "200", "500"); - $linesel = $_SESSION["lines"][$this->GETVars['qq']]; - if ($linesel == "") $linesel = "20"; - $linebox = "
"; - if ($end > 1) { + $lines = array ("20", "50", "100", "200", "500"); + $linesel = $_SESSION["lines"][$this->GETVars['qq']]; + if ($linesel == "") $linesel = "20"; + $linebox = "
"; + $navline = $fp.' '.$pp.' '.$numbers.' '.$np.' '.$lp; } - return '
'.$navline.''.$linebox.'
'; + //return '
'.$navline.''.$linebox.'
'; + if ($navline != "") { + return '
'.$linebox.'
'.$navline.''; + } else { + return ""; + } } diff --git a/index.php b/index.php index 71d6925..bfdd8a5 100644 --- a/index.php +++ b/index.php @@ -209,7 +209,7 @@ include_once "includes/page_head.php"; } $nav = $tsmmonitor->showPageNavigation("40"); if ($nav != "") { - echo "".$nav.""; + echo "".$nav.""; } echo ""; }