top:0;
left:3em;
}
-.lastlogin span {
+.lastlogin span {
font-size:smaller;
}
z-index:22
}
-
+.total {
+ top:11em;
+ width: 14%;
+ left: 43%;
+}
/* scoring */
.total .re {
position: absolute;
- left: -4em;
+ left: -12em;
top:8em;
- background-color: #fff;
+ background-color: #eee;
z-index:15;
}
.total .contra {
position: absolute;
- right: -4em;
+ right: -14em;
top:8em;
- background-color: #fff;
+ background-color: #eee;
z-index:15;
}
border-bottom:1px solid #000;
text-align:center;
}
-div.session div.sessionrules {
+div.session div.sessionrules {
width:19em;
float:left ;
text-align: left;
}
-div.session div.sessionscore {
+div.session div.sessionscore {
width:19em;
float:right ;
text-align: right;
font-size:larger;
}
-caption {
+caption {
text-align: center;
margin: 0.5em;
padding: 0.5em;
padding-bottom: 0em;
margin-bottom: 0;
}
-table.stats { margin: 0.5em 1em;
+table.stats { margin: 0.5em 1em;
border: solid 0.2em #aeaeae;
-moz-border-radius: 0.5em ;
float: left;
}
table.stats tr.odd { background-color:#aeaeae; }
table.stats tr.even { background-color:#eaeaea; }
-table.stats td, table.stats th {
+table.stats td, table.stats th {
margin-left: 0.2em;
margin-right: 0.2em;
padding-left: 0.2em;
/* the login window */
-.login {
+.login {
text-align:center;
padding-top: 1em;
}
-.login p, {
+.login p, {
padding: 0.1em 0.1em 0.15em;
}
-.login h4 {
+.login h4 {
padding: 0.3em 0.3em 0.45em;
}
-.login form{
- width: 20em;
+.login form{
+ width: 20em;
margin: 0.5em auto;
padding: 0.5em 0.5em 1.5em;
text-align: center;
}
-.login legend, .login label, .login input{
+.login legend, .login label, .login input{
padding: 0.5em 0.5em 0.75em;
}
-.login fieldset {
- border: 2px solid #000;
+.login fieldset {
+ border: 2px solid #000;
padding: 0.5em 0.5em 0.75em;
- background-color: #eee;
+ background-color: #eee;
}
.login .submitbutton {
- background-color: #fff;
+ background-color: #fff;
}
.login .submitbutton:hover {
- background-color: #aaa;
+ background-color: #aaa;
}
-.login tr.center td{
+.login tr.center td{
text-align: center;
}
" <div class=\"score\">".$r[2]."<br /> ".$r[1]."</div>\n".
" </div>\n";
+ /* display totals */
+ $result = DB_query("SELECT Hand.party, IFNULL(SUM(Card.points),0) FROM Hand".
+ " LEFT JOIN Trick ON Trick.winner=Hand.position AND Trick.game_id=Hand.game_id".
+ " LEFT JOIN User ON User.id=Hand.user_id".
+ " LEFT JOIN Play ON Trick.id=Play.trick_id".
+ " LEFT JOIN Hand_Card ON Hand_Card.id=Play.hand_card_id".
+ " LEFT JOIN Card ON Card.id=Hand_Card.card_id".
+ " WHERE Hand.game_id='$gameid'".
+ " GROUP BY Hand.party" );
+ echo "<div class=\"total\">\n Totals:<br />\n";
+ while( $r = DB_fetch_array($result))
+ echo " ".$r[0]." ".$r[1]."<br />\n";
+
+ $queryresult = DB_query("SELECT timediff(mod_date,create_date) ".
+ " FROM Game WHERE id='$gameid'");
+ $r = DB_fetch_array($queryresult);
+ echo " <p>This game took ".$r[0]." hours.</p>\n";
+
+ echo " <div class=\"re\">\n Points Re: <br />\n";
+ $queryresult = DB_query("SELECT score FROM Score ".
+ " WHERE game_id=$gameid AND party='re'".
+ " ");
+ while($r = DB_fetch_array($queryresult) )
+ echo " ".$r[0]."<br />\n";
+ echo " </div>\n";
+
+ echo " <div class=\"contra\">\n Points Contra: <br />\n";
+ $queryresult = DB_query("SELECT score FROM Score ".
+ " WHERE game_id=$gameid AND party='contra'".
+ " ");
+ while($r = DB_fetch_array($queryresult) )
+ echo " ".$r[0]."<br />\n";
+ echo " </div>\n";
+
+ echo "</div>\n";
+
echo " </div>\n </li>\n"; /* end div trick, end li trick */
}
if(DB_get_game_status_by_gameid($gameid)=='play')
{
echo "The game is over for you.. other people still need to play though";
- }
- else
- {
- $result = DB_query("SELECT Hand.party, IFNULL(SUM(Card.points),0) FROM Hand".
- " LEFT JOIN Trick ON Trick.winner=Hand.position AND Trick.game_id=Hand.game_id".
- " LEFT JOIN User ON User.id=Hand.user_id".
- " LEFT JOIN Play ON Trick.id=Play.trick_id".
- " LEFT JOIN Hand_Card ON Hand_Card.id=Play.hand_card_id".
- " LEFT JOIN Card ON Card.id=Hand_Card.card_id".
- " WHERE Hand.game_id='$gameid'".
- " GROUP BY Hand.party" );
- echo "<div class=\"total\"> Totals:<br />\n";
- while( $r = DB_fetch_array($result))
- echo " ".$r[0]." ".$r[1]."<br />\n";
-
- $queryresult = DB_query("SELECT timediff(mod_date,create_date) ".
- " FROM Game WHERE id='$gameid'");
- $r = DB_fetch_array($queryresult);
- echo "<p>This game took ".$r[0]." hours.</p>";
-
- echo "<div class=\"re\">\n Points Re: <br />\n";
- $queryresult = DB_query("SELECT score FROM Score ".
- " WHERE game_id=$gameid AND party='re'".
- " ");
- while($r = DB_fetch_array($queryresult) )
- echo " ".$r[0]."<br />\n";
- echo "</div>\n";
-
- echo "<div class=\"contra\">\n Points Contra: <br />\n";
- $queryresult = DB_query("SELECT score FROM Score ".
- " WHERE game_id=$gameid AND party='contra'".
- " ");
- while($r = DB_fetch_array($queryresult) )
- echo " ".$r[0]."<br />\n";
- echo "</div>\n";
-
- echo "</div>\n";
-
-
}
break;
default: