From 59b8e40bdf899d501593f49a44e775e6f9544186 Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 4 Sep 2014 19:53:39 +1000 Subject: [PATCH] php - realign the top page stats --- pool/page.php | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/pool/page.php b/pool/page.php index bffdf740..14ee4c88 100644 --- a/pool/page.php +++ b/pool/page.php @@ -92,11 +92,11 @@ function pghead($script_marker, $name) form {display: inline-block;} html, body {height: 100%; font-family:Arial, Verdana, sans-serif; font-size:12pt; background-color:#eff; text-align: center; background-repeat: no-repeat; background-position: center; } .page {min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -50px; position: relative;} -div.jst {color:red; background-color: #ffa; font-weight: font-size: 8; bold; border-style: solid; border-width: 2px; vertical-align: top;} +div.jst {color:red; font-weight: bold; font-size: 8; text-align: center; vertical-align: top;} div.topd {background-color:#cff; border-color: #cff; border-style: solid; border-width: 9px;} -span.topdes {color:blue;} -span.topwho {color:black; font-weight: bold; margin-right: 8px;} -span.topdat {margin-left: 8px; margin-right: 24px; color:green; font-weight: bold;} +.topdes {color:blue; text-align: right;} +.topwho {color:black; font-weight: bold; margin-right: 8px;} +.topdat {margin-left: 8px; margin-right: 24px; color:green; font-weight: bold;} span.login {float: right; margin-left: 8px; margin-right: 24px;} span.hil {color:blue;} span.warn {color:orange; font-weight:bold;} @@ -282,26 +282,25 @@ function pgtop($dotop, $user, $douser) if ($dotop === true) { $top .= '
'; - $top .= 'CKPool:'; - $top .= "$phr"; - $top .= '
'; - $top .= 'Shares:'; - $top .= "$pac"; - $top .= '
'; - $top .= 'Invalid:'; - $top .= "$per"; + $top .= ''; + $top .= ''; + $top .= ""; + $top .= ''; + $top .= ""; + $top .= ''; + $top .= "
CKPool:  $phr
Shares:  $pac
Invalid:  $per
"; $top .= '
'; - $top .= 'Pool, Last Block:'; - $top .= "$plb"; - $top .= '
'; - $top .= 'Network, Last Block:'; - $top .= "$nlb"; + $top .= ''; + $top .= ''; + $top .= ""; + $top .= ''; + $top .= "
Pool, Last Block:  $plb
Network, Last Block:  $nlb
"; $top .= '
'; - $top .= 'Users:'; - $top .= ''.$info['users'].''; - $top .= '
'; - $top .= 'Workers:'; - $top .= ''.$info['workers'].''; + $top .= ''; + $top .= ''; + $top .= ''; + $top .= ''; + $top .= '
Users:'.$info['users'].'
Workers:'.$info['workers'].'
'; $top .= '
'; if ($douser === true)