+function output_register()
+{
+ echo "IMPORTANT: passwords are going over the net as clear text, so pick an easy password. No need to pick anything complicated here ;)<br /><br />";
+ echo "TODO: convert timezone into a menu<br />\n";
+ echo "TODO: figure out a way to handle passwords <br />\n";
+ ?>
+ <form action="index.php" method="post">
+ <fieldset>
+ <legend>Register</legend>
+ <table>
+ <tr>
+ <td><label for="Rfullname">Full name:</label></td>
+ <td><input type="text" id="Rfullname" name="Rfullname" size="20" maxsize="30" /> </td>
+ </tr><tr>
+ <td><label for="Remail">Email:</label></td>
+ <td><input type="text" id="Remail" name="Remail" size="20" maxsize="30" /></td>
+ </tr><tr>
+ <td><label for="Rpassword">Password(will be displayed in cleartext on the next page):</label></td>
+ <td><input type="password" id="Rpassword" name="Rpassword" size="20" maxsize="30" /></td>
+ </tr><tr>
+ <td><label for="Rtimezone">Timezone:</label></td>
+ <td>
+ <input type="text" id="Rtimezone" name="Rtimezone" size="4" maxsize="4" value="+1" />
+ </td>
+ </tr><tr>
+ <td colspan="2"> <input type="submit" value="register" /></td>
+ </table>
+ </fieldset>
+ </form>
+<?php
+ return;
+}
+
+function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid)
+{
+ global $RULES;
+
+ echo "Do you want to continue playing?(This will start a new game, with the next person as dealer.)\n";
+ echo "<form action=\"index.php\" method=\"post\">\n";
+ echo " <input type=\"hidden\" name=\"PlayerA\" value=\"$playerA\" />\n";
+ echo " <input type=\"hidden\" name=\"PlayerB\" value=\"$playerB\" />\n";
+ echo " <input type=\"hidden\" name=\"PlayerC\" value=\"$playerC\" />\n";
+ echo " <input type=\"hidden\" name=\"PlayerD\" value=\"$playerD\" />\n";
+ echo " <input type=\"hidden\" name=\"dullen\" value=\"".$RULES["dullen"]."\" />\n";
+ echo " <input type=\"hidden\" name=\"schweinchen\" value=\"".$RULES["schweinchen"]."\" />\n";
+ echo " <input type=\"hidden\" name=\"followup\" value=\"$oldgameid\" />\n";
+ echo " <input type=\"submit\" value=\"keep playing\" />\n";
+ echo "</form>\n";