just a small text above the player with some CSS
z-index:20;
margin: 0 auto;
}
z-index:20;
margin: 0 auto;
}
div.middle {
position:relative;
min-height: 6em;
div.middle {
position:relative;
min-height: 6em;
text-align:center;
z-index:20;
}
text-align:center;
z-index:20;
}
+div.table div.table0 .start {
+ background-color: #f00;
+ border-radius: 5px;
+ padding: 3px;
+ margin: 3px;
+}
+
div.table img.table {
width:25%;
z-index:5;
div.table img.table {
width:25%;
z-index:5;
echo "<div class=\"table\">\n";
display_single_user($row1);
echo "\n<div class=\"middle\">\n";
echo "<div class=\"table\">\n";
display_single_user($row1);
echo "\n<div class=\"middle\">\n";
- display_single_user($row0);
+ display_single_user($row0,1); /* mark starting player in case re/contra is not set yet */
echo " <img class=\"table\" src=\"pics/table.png\" alt=\"table\" />\n";
display_single_user($row2);
echo " <img class=\"table\" src=\"pics/table.png\" alt=\"table\" />\n";
display_single_user($row2);
-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;
global $gameid, $GT, $debug,$INDEX,$defaulttimezone,$session;
global $RULES,$GAME,$gametype;
echo " <div class=\"table".($pos-1)."\">\n";
echo " <div class=\"table".($pos-1)."\">\n";
+ /* mark starting player */
+ if($start && ! ($party=="re" || $party=="contra"))
+ echo ' <span class="start">'._('Starting Player')."</span> <br />\n";
+
if($debug)
echo " <a href=\"".$INDEX."?action=game&me=".$hash."\">";
if($vacation = check_vacation($user))
if($debug)
echo " <a href=\"".$INDEX."?action=game&me=".$hash."\">";
if($vacation = check_vacation($user))