X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Fgame.php;h=bd25e78eff6a36d889e2bee2d685609c88bda4ec;hp=aa2561699b15a43a74ec8b26f30b69da056b43ed;hb=bbd5682c50f3bba8b7eb199392eaf0e0c0ff7c19;hpb=cc2084d8da26e9186cc671abd0651522409d797f diff --git a/include/game.php b/include/game.php index aa25616..bd25e78 100644 --- a/include/game.php +++ b/include/game.php @@ -2095,41 +2095,51 @@ else echo "\n"; } -/* display rule set for this game */ +/* + * display gameinfo: re/contra, comment-box, play-card button, games played by others + */ + echo "
\n"; +/* get time from the last action of the game */ +$r = DB_query_array("SELECT mod_date from Game WHERE id='$gameid' " ); +$gameend = time() - strtotime($r[0]); + +/* comment box */ +if($gamestatus == 'play' || $gameend < 60*60*24*7) + { + echo ' '._('A short comment').":\n"; + } + +/* re-contra */ if($gamestatus == 'play' ) { $myparty = DB_get_party_by_hash($me); output_form_calls($me,$myparty); } -/* get time from the last action of the game */ -$r = DB_query_array("SELECT mod_date from Game WHERE id='$gameid' " ); -$gameend = time() - strtotime($r[0]); +/* play-card button */ if($gamestatus == 'play' || $gameend < 60*60*24*7) { - echo "
\n"._('A short comment').":\n"; + echo " \n"; } -echo "\n"; - /* has this hand been played by others? */ $other_game_ids = DB_played_by_others($gameid); if(sizeof($other_game_ids)>0 && $mystatus=='gameover') { $mypos = DB_get_pos_by_hash($me); - echo "

See how other played the same hand:
\n"; + echo "

See how other played the same hand: \n"; foreach($other_game_ids as $id) { $otherhash = DB_get_hash_from_game_and_pos($id,$mypos); $othername = DB_get_name('hash',$otherhash); - echo "$othername
"; + echo " $othername "; } - echo "

\n"; + echo "

\n"; } -echo "
\n"; +echo "\n"; /* end gameinfo */ echo "\n";