From 95231cf6650d277fc13f5c0e1c1a0e1bb9c30edb Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 4 Feb 2012 11:16:42 -0800 Subject: fixed showing re/contra call at beginning of game; allowed pre-game comments; DB upgrade the problem with re/contra at the beginning of a game was that no playid was set yet, so we couldn't record when the call was made. Added two special playid (-1 and -2), for pre-game comments and re/contra calls before the first card is played. For this we need to record the gameid in the comment table => DB update --- include/output.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/output.php') diff --git a/include/output.php b/include/output.php index 96ab114..781fbb7 100644 --- a/include/output.php +++ b/include/output.php @@ -678,6 +678,19 @@ function output_exchanged_cards() $show=1; for($mypos=1;$mypos<5;$mypos++) { + /* output comments */ + if($mypos==2) + { + /* display all comments on the top right (card1)*/ + $comments = DB_get_pre_comment($gameid); + /* display card */ + echo "
\n"; + /* display comments */ + foreach( $comments as $comment ) + echo " ".$comment[1].": ".$comment[0]."\n"; + echo "
\n"; /* end div card */ + } + $usersick = DB_get_sickness_by_pos_and_gameid($mypos,$gameid); if($usersick!=NULL || $mypos==$povertypos1 || $mypos==$partnerpos1 || -- cgit v1.2.3-18-g5258