-?>
- </div>
-
- <h2 class="rules">Rules</h2>
- <h3>Gameplay-related</h3>
- <h4>Ten of hearts:</h4>
- <p>
- <select name="dullen">
- <option value="none"> just normal non-trump </option>
- <option value="firstwins"> first ten of hearts wins the trick </option>
- <option value="secondwins" selected="selected"> second ten of hearts wins the trick </option>
- </select>
- </p>
- <h4>Schweinchen (both foxes), only in normal games or silent solos:</h4>
- <p>
- <select name="schweinchen">
- <option value="none" selected="selected"> none </option>
- <option value="both"> both become highest trump (automatic call at beginning of the game) </option>
- <option value="second"> first one normal, second one becomes highest (call during the game) </option>
- <option value="secondaftercall"> second one become highest only in case re/contra was announced
- </option>
- </select>
- </p>
- <h4>Call Re/Contra, etc.:</h4>
- <p>
- <select name="callrule">
- <option value="1st-own-card" selected="selected"> Can call re/contra on the first <strong>own</strong> card played, 90 on the second, etc.</option>
- <option value="5th-card"> Can call re/contra until 5th card is played, 90 until 9th card is played, etc.</option>
- <option value="9-cards" > Can call re/contra until 5th card is played, 90 if player still has 9 cards, etc.</option>
- </select>
- </p>
- <h3>Scoring-related</h3>
- <h4>(not yet implemented)</h4>
- <p><input type="submit" value="start game"></p>
- </form>
-<?php
+ echo " </select>\n </div>\n";
+
+ echo ' <img class="table" src="pics/table.png" alt="table" />';
+ $randkey = array_rand($copy_names);
+ $rand = $copy_names[$randkey];
+ /* delete this name from the list of possible names */
+ unset($copy_names[$randkey]);
+ echo " <div class=\"table2\">\n";
+ echo " <select name=\"PlayerC\" size=\"1\"> \n";
+ foreach($names as $name)
+ {
+ if($name==$rand)
+ echo " <option selected=\"selected\">$name</option>\n";
+ else
+ echo " <option>$name</option>\n";
+ }
+ echo " </select>\n </div>\n";
+
+ echo ' </div>';
+ $rand = $_SESSION["name"];
+ echo " <div class=\"table3\">\n";
+ echo " <select name=\"PlayerD\" size=\"1\"> \n";
+ foreach($names as $name)
+ {
+ if($name==$rand)
+ echo " <option selected=\"selected\">$name</option>\n";
+ else
+ echo " <option>$name</option>\n";
+ }
+ echo " </select>\n </div>\n";
+
+ /* ask player for names */
+
+ echo ' </div>';
+ echo '';
+ echo ' <h2 class="rules">'._('Rules').'</h2>';
+ echo ' <h3>'._('Gameplay-related').'</h3>';
+ echo ' <h4>'._('Ten of hearts').':</h4>';
+ echo ' <p>';
+ echo ' <select name="dullen">';
+ echo ' <option value="none"> '._('just normal non-trump').' </option>';
+ echo ' <option value="firstwins"> '._('first ten of hearts wins the trick').' </option>';
+ echo ' <option value="secondwins" selected="selected"> '.('second ten of hearts wins the trick').' </option>';
+ echo ' </select>';
+ echo ' </p>';
+ echo ' <h4>'._('Schweinchen (both foxes), only in normal games or silent solos').':</h4>';
+ echo ' <p>';
+ echo ' <select name="schweinchen">';
+ echo ' <option value="none" selected="selected"> '._('none').' </option>';
+ echo ' <option value="both"> '._('both become highest trump (automatic call at beginning of the game)').' </option>';
+ echo ' <option value="second"> '._('first one normal, second one becomes highest (call during the game)').' </option>';
+ echo ' <option value="secondaftercall"> ',_('second one become highest only in case re/contra was announced');
+ echo ' </option>';
+ echo ' </select>';
+ echo ' </p>';
+ echo ' <h4>'._('Call Re/Contra, etc.').':</h4>';
+ echo ' <p>';
+ echo ' <select name="callrule">';
+ echo ' <option value="1st-own-card" selected="selected"> '._('Can call re/contra on the first <strong>own</strong> card played, 90 on the second, etc.').'</option>';
+ echo ' <option value="5th-card"> '._('Can call re/contra until 5th card is played, 90 until 9th card is played, etc.').'</option>';
+ echo ' <option value="9-cards" > '._('Can call re/contra until 5th card is played, 90 if player still has 9 cards, etc.').'</option>';
+ echo ' </select>';
+ echo ' </p>';
+ echo ' <h4>'._('Low trump').'</h4>';
+ echo ' <p>';
+ echo ' '._('Player can\'t trump a fox, that is none of his trump is higher than a fox.');
+ echo ' <select name="lowtrump">';
+ echo ' <option value="poverty">'._('The trump will be treated as poverty and offered to another player.').'</option>';
+ echo ' <option value="cancel"> '._('The game will be canceled unless there is a solo.').'</option>';
+ echo ' <option value="none"> '._('Bad luck, the player needs to play a normal game.').'</option>';
+ echo ' </select>';
+ echo ' </p>';
+ echo ' <h3>'._('Scoring-related').'</h3>';
+ echo ' <h4>'._('(not yet implemented)').'</h4>';
+ echo ' <p><input type="submit" value="'._('start game').'"></p>';
+ echo ' </form>';
+