summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarun <arun@nubati.net>2007-03-24 21:24:36 +0000
committerarun <arun>2007-03-24 21:24:36 +0000
commita85c98f05cdf22065914272eb21e97cb8a344036 (patch)
tree6be67cbd38b72c20b4f03df5b174ff610b5fb4cd
parent618acae3ad3b85d79d68124e7793aa858daed7c3 (diff)
downloade-DoKo-a85c98f05cdf22065914272eb21e97cb8a344036.tar.gz
e-DoKo-a85c98f05cdf22065914272eb21e97cb8a344036.tar.bz2
e-DoKo-a85c98f05cdf22065914272eb21e97cb8a344036.zip
some missing html and some more comments
-rw-r--r--index.php17
-rw-r--r--output.php10
2 files changed, 23 insertions, 4 deletions
diff --git a/index.php b/index.php
index 302ec69..db219d1 100644
--- a/index.php
+++ b/index.php
@@ -535,8 +535,23 @@ else if(myisset("me"))
DB_set_hand_status_by_hash($me,'play');
break;
case "poverty":
+ /* figure out who has poverty */
+ /* check who was asked already
+ * everyone or trump was taken?
+ * trump was taken, start game
+ * trump was not taken, cancle game
+ *
+ * not everyone, figure out who is next in the list
+ * is the next person this one?
+ * no, display wait message, e.g. player X is asked at the moment
+ * yes, display trump, ask if he wants to take it
+ * no, set player asked to true, email next player
+ * yes, display all cards, ask for N return cards
+ * set re/contra
+ *
+ */
case "dpoverty":
- echo "TODO: handle poverty here";
+ echo "TODO: handle double poverty here";
DB_set_hand_status_by_hash($me,'play');
};
}
diff --git a/output.php b/output.php
index ba3c473..55cf0a5 100644
--- a/output.php
+++ b/output.php
@@ -260,11 +260,15 @@ function output_home_page()
<legend>Login</legend>
<table>
<tr>
- <td><label for="email">Email:</label></td><td><input type="text" id="email" name="email" size="20" maxlength="30" /> </td>
+ <td><label for="email">Email:</label></td>
+ <td><input type="text" id="email" name="email" size="20" maxlength="30" /> </td>
</tr><tr>
- <td><label for="password">Password:</label></td><td><input type="password" id="password" name="password" size="20" maxlength="30" /></td>
+ <td><label for="password">Password:</label></td>
+ <td><input type="password" id="password" name="password" size="20" maxlength="30" /></td>
</tr><tr>
- <td> <input type="submit" value="login" /></td>
+ <td> <input type="submit" value="login" /></td>
+ <td></td>
+ </tr>
</table>
</fieldset>
</form>