summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
07cd86a)
this should make it easier for people with a mobile phone.
- position:absolute;
- top:27em;
- right:0em;
- margin:1em;
- margin-top:0em;
- margin-right:3em;
-
- width:12em;
-
- padding:0.3em;
-
- border: 2px solid gray;
- background-color: #efefef;
+ position:relative;
+ top:0em;
+ margin:0em;
+ padding:0em;
+ width:100%;
+ border-top: 2px solid gray;
+ background-color: #efaaaa;
+ text-align:center;
-/* display rule set for this game */
+/*
+ * display gameinfo: re/contra, comment-box, play-card button, games played by others
+ */
+
echo "<div class=\"gameinfo\">\n";
echo "<div class=\"gameinfo\">\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').":<input name=\"comment\" type=\"text\" size=\"20\" maxlength=\"100\" />\n";
+ }
+
+/* re-contra */
if($gamestatus == 'play' )
{
$myparty = DB_get_party_by_hash($me);
output_form_calls($me,$myparty);
}
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]);
if($gamestatus == 'play' || $gameend < 60*60*24*7)
{
if($gamestatus == 'play' || $gameend < 60*60*24*7)
{
- echo "<br />\n"._('A short comment').":<input name=\"comment\" type=\"text\" size=\"15\" maxlength=\"100\" />\n";
+ echo " <input type=\"submit\" value=\""._('submit')."\" />\n";
-echo "<input type=\"submit\" value=\""._('submit')."\" />\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);
/* 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 "<p>See how other played the same hand: <br />\n";
+ echo " <p>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);
foreach($other_game_ids as $id)
{
$otherhash = DB_get_hash_from_game_and_pos($id,$mypos);
$othername = DB_get_name('hash',$otherhash);
- echo "<a href=\"$INDEX?action=game&me=$otherhash\">$othername</a><br />";
+ echo " <a href=\"$INDEX?action=game&me=$otherhash\">$othername</a> ";
+echo "</div>\n"; /* end gameinfo */
function output_form_calls($me,$myparty)
{
function output_form_calls($me,$myparty)
{
- $highstart = "<span class=\"highcall\">";
- $highend = "</span>";
+ $highstart = ' <span class="highcall">';
+ $highend = '</span>';
$tmp = can_call(120,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
if($myparty=='re')
$tmp = can_call(120,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
if($myparty=='re')
else if ($myparty=='contra')
else if ($myparty=='contra')
- echo " re/contra (120):";
- echo " <input type=\"radio\" name=\"call\" value=\"120\" />";
+ echo ' re/contra (120):';
+ echo ' <input type="radio" name="call" value="120" />';
if($tmp==2) echo $highend;
if($tmp==2) echo $highend;
- $tmp = can_call(90,$me);
+ $tmp = can_call(90,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
if( $tmp )
{
if($tmp==2) echo $highstart;
- echo " 90:".
- " <input type=\"radio\" name=\"call\" value=\"90\" />";
+ echo ' 90:'.
+ ' <input type="radio" name="call" value="90" />';
if($tmp==2) echo $highend;
if($tmp==2) echo $highend;
}
$tmp = can_call(60,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
}
$tmp = can_call(60,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
- echo " 60:".
- " <input type=\"radio\" name=\"call\" value=\"60\" />";
+ echo ' 60:'.
+ ' <input type="radio" name="call" value="60" />';
if($tmp==2) echo $highend;
if($tmp==2) echo $highend;
}
$tmp = can_call(30,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
}
$tmp = can_call(30,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
- echo " 30:".
- " <input type=\"radio\" name=\"call\" value=\"30\" />";
+ echo ' 30:'.
+ ' <input type="radio" name="call" value="30" />';
if($tmp==2) echo $highend;
if($tmp==2) echo $highend;
}
$tmp = can_call(0,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
}
$tmp = can_call(0,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
- echo " 0:".
- " <input type=\"radio\" name=\"call\" value=\"0\" />";
+ echo ' 0:'.
+ ' <input type="radio" name="call" value="0" />';
if($tmp==2) echo $highend;
if($tmp==2) echo $highend;
- echo "<br />\n".
- " no call:".
- " <input type=\"radio\" name=\"call\" value=\"no\" /> <br />";
+ echo "\n".
+ ' no call:'.
+ ' <input type="radio" name="call" value="no" />'."\n";
<title>e-Doko</title>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
<link rel="shortcut icon" type="image/x-icon" href="pics/edoko-favicon.png" />
<title>e-Doko</title>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
<link rel="shortcut icon" type="image/x-icon" href="pics/edoko-favicon.png" />
- <link rel="stylesheet" type="text/css" href="css/standard023.css" />
+ <link rel="stylesheet" type="text/css" href="css/standard024.css" />
<script type="text/javascript" src="include/game.js"> </script>
<script type="text/javascript" src="include/jquery.js"> </script>
<script type="text/javascript" src="include/jquery.tablesorter.js"></script>
<script type="text/javascript" src="include/game.js"> </script>
<script type="text/javascript" src="include/jquery.js"> </script>
<script type="text/javascript" src="include/jquery.tablesorter.js"></script>