From 2e9d5e97305ccbd1b975013511922f924d53fffd Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 29 Jul 2007 19:12:11 -0700 Subject: [PATCH] BUGIFX+LAYOUT: gameids where still in the player menu; show table for new game setup fixed last commit. for new games, the table is now shown and one can select the place people are sitting better. --- css/standard.css | 4 +++- functions.php | 2 +- index.php | 11 +++++++++-- output.php | 11 +++++++++-- 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/css/standard.css b/css/standard.css index 9eb54e7..5bca2ae 100644 --- a/css/standard.css +++ b/css/standard.css @@ -37,7 +37,9 @@ text-align: center; } - +.rules { +margin-top:20em; +} .card { diff --git a/functions.php b/functions.php index d738b00..57945ef 100644 --- a/functions.php +++ b/functions.php @@ -818,7 +818,7 @@ function display_user_menu() while( $r = mysql_fetch_array($result,MYSQL_NUM)) { - echo "game #".$r[1]."
\n"; + echo "game ".DB_format_gameid($r[1])."
\n"; } echo diff --git a/index.php b/index.php index 71d4050..57145c6 100644 --- a/index.php +++ b/index.php @@ -33,8 +33,15 @@ if(myisset("logout")) } else if(myisset("new")) { - $names = DB_get_all_names(); - output_form_for_new_game($names); + if( isset($_SESSION["name"]) ) + { + $names = DB_get_all_names(); + output_form_for_new_game($names); + } + else + { + echo "Please log in."; + } } /*check if everything is ready to set up a new game */ else if( myisset("PlayerA", "PlayerB","PlayerC","PlayerD","dullen","schweinchen","call" )) diff --git a/output.php b/output.php index ddea3b8..4485db4 100644 --- a/output.php +++ b/output.php @@ -44,13 +44,19 @@ function output_form_for_new_game($names)

Players

Please select four players (or use the randomly pre-selected names)

+ +
+ table "; + $i++; echo " Name: \n"; + echo " \n"; } ?> -

Rules

+
+

Rules

Some areas are grayed out which means that the rule is not implemented yet and therefore cannot be selected

ten of hearts: