BUGIFX: more accurate display of whos turn it is
[e-DoKo.git] / include / output.php
index 397ed64f84c170be8713498d06c07c5476f7a146..33fb87b6e6d4213070fbf5c772da426bdc830050 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/* make sure that we are not called from outside the scripts, 
+/* make sure that we are not called from outside the scripts,
  * use a variable defined in config.php to check this
  */
 if(!isset($HOST))
@@ -29,13 +29,11 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid)
 function output_form_for_new_game($names)
 {
 ?>
-    <h2> Players </h2>
-    <p>Please select four players (or use the randomly pre-selected names)</p>
-    <p>Remember: you need to be one of the players ;) </p>
-       <form action="index.php?action=new" method="post">
+  <form action="index.php?action=new" method="post">
+    <h2> Select players (Remember: you need to be one of the players) </h2>
 
    <div class="table">
-     <img src="pics/table.png" alt="table" />
+     <img class="table" src="pics/table.png" alt="table" />
 <?php
     /* ask for player names */
     $i=0;
@@ -46,7 +44,7 @@ function output_form_for_new_game($names)
       $rand = $names[$randkey];
       echo  "<div class=\"table".$i."\">\n";
       $i++;
-      echo "    Name:  \n  <select name=\"$player\" size=\"1\" />  \n";
+      echo "    <select name=\"$player\" size=\"1\" />  \n";
       foreach($names as $name)
        {
          if($name==$rand)
@@ -60,6 +58,7 @@ function output_form_for_new_game($names)
     }
 ?>
     </div>
+
    <h2 class="rules"> Rules </h2>
       <p> Some areas are grayed out which means that the rule is not implemented yet and therefore cannot be selected </p>
       <p> Ten of hearts:
@@ -229,7 +228,7 @@ function output_header()
      <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/standard001.css" />
+     <link rel="stylesheet" type="text/css" href="css/standard003.css" />
      <script type="text/javascript">
        function hl(num) {
          if(document.getElementById){
@@ -244,7 +243,7 @@ function output_header()
        function high_last(){
         if(document.getElementById){
           var i;
-          for(i=13;i>0;i--) {
+          for(i=13;i>=0;i--) {
             if(document.getElementById("trick"+i))
               {
                 hl(i);