From 25a9eda6b069a6f2e29de3d8c440e9a1c82fd85f Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Mon, 17 Sep 2012 21:36:46 -0700 Subject: Mark the starting player until the game actually starts ;) just a small text above the player with some CSS --- include/functions.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 6873cbf..84a0fcc 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1002,7 +1002,7 @@ function display_table_begin () echo "
\n"; display_single_user($row1); echo "\n
\n"; - display_single_user($row0); + display_single_user($row0,1); /* mark starting player in case re/contra is not set yet */ echo " \"table\"\n"; display_single_user($row2); @@ -1040,8 +1040,10 @@ function display_table_end () return; } -function display_single_user($r) +function display_single_user($r,$start=0) { + /* start=1, mark starting player, default=0, so the player on the left is not marked */ + global $gameid, $GT, $debug,$INDEX,$defaulttimezone,$session; global $RULES,$GAME,$gametype; @@ -1064,6 +1066,10 @@ function display_single_user($r) echo "
\n"; + /* mark starting player */ + if($start && ! ($party=="re" || $party=="contra")) + echo ' '._('Starting Player')."
\n"; + if($debug) echo " "; if($vacation = check_vacation($user)) -- cgit v1.2.3-18-g5258