display each of the points re and contra made during the game.
At the moment only the names from the database are used.
margin:0;
margin-top:0.3em;
padding:0;
margin:0;
margin-top:0.3em;
padding:0;
right:1em;
top:0.1em;
font-size: smaller;
right:1em;
top:0.1em;
font-size: smaller;
.joingame,.sickness,.poverty,.total,.message {
position: absolute;
.joingame,.sickness,.poverty,.total,.message {
position: absolute;
+.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;
.poverty {
top:32em;
z-index:15;
position:absolute;
z-index:20;
top:18em;
position:absolute;
z-index:20;
top:18em;
top:25%;
bottom:25%;
height:50%;
top:25%;
bottom:25%;
height:50%;
}
div.table div.table1 {
top:-25%;
}
div.table div.table1 {
top:-25%;
}
div.table div.table2 {
top:37.5%;
}
div.table div.table2 {
top:37.5%;
ul.tricks li {
/*background-color:blue;*/
margin:0;
ul.tricks li {
/*background-color:blue;*/
margin:0;
display:inline;
}
ul.tricks li.old { background-color:#fff; }
display:inline;
}
ul.tricks li.old { background-color:#fff; }
background-color: #eee;
}
background-color: #eee;
}
-.user { margin-left:25%;margin-right:25%; }
+.user { margin-left:25%;margin-right:25%; }
text-align:center;
margin-bottom:0.1em;
}
text-align:center;
margin-bottom:0.1em;
}
border:0;
background-color: #efe;
}
border:0;
background-color: #efe;
}
-.submitbutton:hover {
- background-color:#afa;
+.submitbutton:hover {
+ background-color:#afa;
width: 2em;
}
.gamestatuspre {
padding: 0 0.3em;
width: 2em;
}
.gamestatuspre {
padding: 0 0.3em;
background-color: #fd8901;
}
.gamestatusover {
background-color: #fd8901;
}
.gamestatusover {
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=\"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";