-?>
- </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: </p>
- <ul>
- <li> <input type="radio" name="dullen" value="none" /> just normal non-trump </li>
- <li> <input type="radio" name="dullen" value="firstwins" /> first ten of hearts wins the trick </li>
- <li> <input type="radio" name="dullen" value="secondwins" checked="checked" /> second ten of hearts wins the trick </li>
- </ul>
- <p> Schweinchen (both foxes), only in normal games or silent solos: </p>
- <ul>
- <li> <input type="radio" name="schweinchen" value="none" checked="checked" /> none </li>
- <li> <input type="radio" name="schweinchen" value="both" />
- both become highest trump (automatic call at beginning of the game)
- </li>
- <li> <input type="radio" name="schweinchen" value="second" />
- first one normal, second one becomes highest (call during the game) </li>
- <li> <input type="radio" name="schweinchen" value="secondaftercall" />
- second one become highest only in case re/contra was announced
- </li>
- </ul>
- <p> Call Re/Contra, etc.: </p>
- <ul>
- <li><input type="radio" name="callrule" value="1st-own-card" checked="checked" />
- Can call re/contra on the first <strong>own</strong> card played, 90 on the second, etc.</li>
- <li><input type="radio" name="callrule" value="5th-card" />
- Can call re/contra until 5th card is played, 90 until 9th card is played, etc.</li>
- <li><input type="radio" name="callrule" value="9-cards" />
- Can call re/contra until 5th card is played, 90 if player still has 9 cards, etc.</li>
- </ul>
- <input type="submit" value="start game" />
- </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>';
+