some missing html and some more comments
authorarun <arun@nubati.net>
Sat, 24 Mar 2007 21:24:36 +0000 (21:24 +0000)
committerarun <arun>
Sat, 24 Mar 2007 21:24:36 +0000 (21:24 +0000)
index.php
output.php

index 302ec69054b52d748b5eea1eb6cc665929ea86df..db219d1da73ebbd019b02fa86f87be0dd975f2d9 100644 (file)
--- 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":
              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":
            case "dpoverty":
-             echo "TODO: handle poverty here";
+             echo "TODO: handle double poverty here";
              DB_set_hand_status_by_hash($me,'play');
            };
        }
              DB_set_hand_status_by_hash($me,'play');
            };
        }
index ba3c47352b92987f6edd89588c5e86f13b8aa12e..55cf0a53dfe8db171e39d34b546887504fc174aa 100644 (file)
@@ -260,11 +260,15 @@ function output_home_page()
             <legend>Login</legend>
              <table>
               <tr>
             <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>
               </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>
               </tr><tr>
-               <td> <input type="submit" value="login" /></td>
+                <td> <input type="submit" value="login" /></td>
+                <td></td>
+              </tr>
              </table>
           </fieldset>
         </form>
              </table>
           </fieldset>
         </form>