\n";
+ "
\n";
$show = 1;
for($mypos=1;$mypos<5;$mypos++)
{
@@ -1089,6 +1099,10 @@ switch($mystatus)
$comment = $r[4];
$user = $r[6];
+ /* count number of tricks */
+ if($seq==1)
+ $trickNR++;
+
/* check if first schweinchen has been played */
if( $GAME['schweinchen-who'] && ($r[0] == 19 || $r[0] == 20) )
if(!$GAME['schweinchen-first'])
@@ -1136,7 +1150,6 @@ switch($mystatus)
/* end of trick? */
if($seq==4)
{
- $trickNR++;
echo "
\n \n"; /* end div trick, end li trick */
}
}
@@ -1646,35 +1659,9 @@ switch($mystatus)
$session = DB_get_session_by_gameid($gameid);
$score = generate_score_table($session);
- /* convert html to ascii */
- $score = str_replace("
\n
\n \n","",$score);
- $score = str_replace("
\n","",$score);
- $score = str_replace("\n","",$score);
- $score = str_replace(array("
","
","
"," | "),array("","\n","","|"),$score);
- $score = explode("\n",$score);
-
- $header = array_slice($score,0,1);
- $header = explode("|",$header[0]);
- for($i=0;$i
5) $header.= " ... \n";
-
- if(sizeof($score)>5) $score = array_slice($score,-5,5);
- for($i=0;$iprev\n";
- echo " next\n\n"; /* end ul tricks*/
+ echo " next\n";
+ echo "\n"; /* end ul tricks*/
echo " Personal notes:
\n";
$notes = DB_get_notes_by_userid_and_gameid($myid,$gameid);
foreach($notes as $note)
echo "$note
\n";
- echo "Insert note:\n";
+ echo "\n";
echo " \n";
$mycards = DB_get_hand($me);
@@ -1865,15 +1853,6 @@ switch($mystatus)
/* display rule set for this game */
echo "\n";
- if($gamestatus != 'pre')
- echo " Gametype: $GT
\n";
-
- echo "Rules:
\n";
- echo "10ofhearts : ".$RULES["dullen"] ."
\n";
- echo "schweinchen: ".$RULES["schweinchen"] ."
\n";
- echo "call: ".$RULES["call"] ."
\n";
-
- echo "
\n";
if($gamestatus == 'play' )
output_form_calls($me);
@@ -1884,15 +1863,9 @@ switch($mystatus)
if($gamestatus == 'play' || $gameend < 60*60*24*7)
{
echo "
\nA short comment:\n";
- echo "
";
}
- echo "\n
\n";
-
- $session = DB_get_session_by_gameid($gameid);
- $score = generate_score_table($session);
-
- echo $score;
+ echo "\n";
echo "\n";