From 6845863ff32d87d9053ccdcd5f2fcf51a22142d4 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 2 Dec 2007 17:38:01 +0100 Subject: [PATCH] NEW FEATURE: detailed few of the score of one game display each of the points re and contra made during the game. At the moment only the names from the database are used. --- css/standard.css | 40 +++++++++++++++++++++++++++------------- index.php | 18 ++++++++++++++++++ 2 files changed, 45 insertions(+), 13 deletions(-) diff --git a/css/standard.css b/css/standard.css index 6824726..ee2c4a2 100644 --- a/css/standard.css +++ b/css/standard.css @@ -16,7 +16,7 @@ min-height: 40em; } -.footer { +.footer { margin:0; margin-top:0.3em; padding:0; @@ -32,7 +32,7 @@ right:1em; top:0.1em; font-size: smaller; -} +} .joingame,.sickness,.poverty,.total,.message { position: absolute; @@ -44,6 +44,21 @@ text-align: center; } +.total .re { + position: absolute; + left: -4em; + top:8em; + background-color: #fff; +} +.total .contra { + position: absolute; + right: -4em; + top:8em; + background-color: #fff; +} + + + .poverty { top:32em; z-index:15; @@ -55,7 +70,7 @@ margin-top:20em; } -.card { +.card { position:absolute; z-index:20; top:18em; @@ -78,7 +93,7 @@ div.table { text-align:center; } -div.table img { +div.table img { top:25%; bottom:25%; height:50%; @@ -107,7 +122,7 @@ div.table div.table0 { } div.table div.table1 { top:-25%; - left:37.5%; + left:37.5%; } div.table div.table2 { top:37.5%; @@ -131,7 +146,7 @@ ul.tricks a { text-decoration:none; color:#000;} ul.tricks li { /*background-color:blue;*/ margin:0; - padding:0.2em 0.5em; + padding:0.2em 0.5em; display:inline; } ul.tricks li.old { background-color:#fff; } @@ -332,20 +347,20 @@ ul.tricks li div div span.comment span{ background-color: #eee; } -.user { margin-left:25%;margin-right:25%; } +.user { margin-left:25%;margin-right:25%; } -.over { +.over { text-align:center; margin-bottom:0.1em; } -.submitbutton { +.submitbutton { border:0; background-color: #efe; } -.submitbutton:hover { - background-color:#afa; +.submitbutton:hover { + background-color:#afa; } @@ -364,13 +379,12 @@ ul.tricks li div div span.comment span{ } div span img.button { - height: 2em; width: 2em; } .gamestatuspre { padding: 0 0.3em; - + background-color: #fd8901; } .gamestatusover { diff --git a/index.php b/index.php index 1a26347..312dc92 100644 --- a/index.php +++ b/index.php @@ -1774,8 +1774,26 @@ else if(myisset("me")) echo "
Totals:
\n"; while( $r = mysql_fetch_array($result,MYSQL_NUM)) echo " ".$r[0]." ".$r[1]."
\n"; + + echo "
\n Points Re:
\n"; + $queryresult = mysql_query("SELECT score FROM Score ". + " WHERE game_id=$gameid AND party='re'". + " "); + while($r = mysql_fetch_array($queryresult,MYSQL_NUM) ) + echo " ".$r[0]."
\n"; + echo "
\n"; + + echo "
\n Points Contra:
\n"; + $queryresult = mysql_query("SELECT score FROM Score ". + " WHERE game_id=$gameid AND party='contra'". + " "); + while($r = mysql_fetch_array($queryresult,MYSQL_NUM) ) + echo " ".$r[0]."
\n"; echo "
\n"; + echo "
\n"; + + } break; default: -- 2.17.1