NEW FEATURE: detailed few of the score of one game
authorArun Persaud <arun@nubati.net>
Sun, 2 Dec 2007 16:38:01 +0000 (17:38 +0100)
committerArun Persaud <arun@nubati.net>
Sun, 2 Dec 2007 16:38:01 +0000 (17:38 +0100)
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
index.php

index 68247267731074c4035d9206c77b10e4b1746533..ee2c4a2115a651dbe55b47cdf82dd4f32ae4e41e 100644 (file)
@@ -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;
  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 {
index 1a26347df718ca35155013e20e48b3914effa758..312dc9239e96516dc143ce064ca0c37e89c4ceb1 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1774,8 +1774,26 @@ else if(myisset("me"))
          echo "<div class=\"total\"> Totals:<br />\n";
          while( $r = mysql_fetch_array($result,MYSQL_NUM))
            echo "  ".$r[0]." ".$r[1]."<br />\n";
+
+         echo "<div class=\"re\">\n Points Re: <br />\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]."<br />\n";
+         echo "</div>\n";
+
+         echo "<div class=\"contra\">\n Points Contra: <br />\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]."<br />\n";
          echo "</div>\n";
 
+         echo "</div>\n";
+
+
        }
       break;
     default: