summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-05-29 22:51:19 -0700
committerArun Persaud <arun@nubati.net>2008-05-29 22:51:19 -0700
commit448ca16b770c8cfe055f4ffb41cd5c189da3cde0 (patch)
tree4aace5ec1c95006eaa6ba898c18d72bcd8f22a5c
parent5abed91d19058387ffa2c3667b89eff16a5720e6 (diff)
downloade-DoKo-448ca16b770c8cfe055f4ffb41cd5c189da3cde0.tar.gz
e-DoKo-448ca16b770c8cfe055f4ffb41cd5c189da3cde0.tar.bz2
e-DoKo-448ca16b770c8cfe055f4ffb41cd5c189da3cde0.zip
CLEANUP: used tidy to clean up the HTML
got rid of a lot of warning message, HTML should be nicer now ;) Signed-off-by: Arun Persaud <arun@nubati.net>
-rw-r--r--include/output.php53
-rw-r--r--include/stats.php2
-rw-r--r--include/user.php6
3 files changed, 29 insertions, 32 deletions
diff --git a/include/output.php b/include/output.php
index a0b9df3..2fcfaca 100644
--- a/include/output.php
+++ b/include/output.php
@@ -42,55 +42,52 @@ function output_form_for_new_game($names)
srand((float) microtime() * 10000000);
$randkey = array_rand($names);
$rand = $names[$randkey];
- echo "<div class=\"table".$i."\">\n";
+ echo " <div class=\"table".$i."\">\n";
$i++;
- echo " <select name=\"$player\" size=\"1\" /> \n";
+ echo " <select name=\"$player\" size=\"1\"> \n";
foreach($names as $name)
{
if($name==$rand)
{
- echo " <option selected=\"selected\">$name</option>\n";
+ echo " <option selected=\"selected\">$name</option>\n";
}
else
- echo " <option>$name</option>\n";
+ echo " <option>$name</option>\n";
}
- echo " </select>\n</div>\n";
+ echo " </select>\n </div>\n";
}
?>
</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:
- <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>
- <p> Schweinchen (both foxes), only in normal games or silent solos:
- <ul>
+ <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>
+ first one normal, second one becomes highest (call during the game) </li>
<li> <input type="radio" name="schweinchen" value="secondaftercall" disabled="disabled" />
- second one become highest only in case re/contra was announced (not working yet)
+ second one become highest only in case re/contra was announced (not working yet)
</li>
- </ul>
- </p>
- <p> Call Re/Contra, etc.:
- <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>
- </p>
+ </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
diff --git a/include/stats.php b/include/stats.php
index 1f4bca9..ba2ea6d 100644
--- a/include/stats.php
+++ b/include/stats.php
@@ -68,7 +68,7 @@ if($r)
{
$long = DB_fetch_array($r);
$names = DB_get_all_names_by_gameid($long[2]);
- echo "The longest session is session ".$long[1]." with ".$long[0].
+ echo "<p>The longest session is session ".$long[1]." with ".$long[0].
" games played by ".join(", ",$names).".</p>\n";
}
diff --git a/include/user.php b/include/user.php
index 7e8ef9e..54ce302 100644
--- a/include/user.php
+++ b/include/user.php
@@ -136,14 +136,14 @@ if(myisset("forgot"))
}
if($r[4]=='pre')
{
- echo "\n <span class=\"gamestatuspre\"><a href=\"".$INDEX."?action=game&me=".$r[0]."\">p </a></span> ";
+ echo "\n <span class=\"gamestatuspre\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">p </a></span> ";
}
else if ($r[4]=='gameover')
- echo "\n <span class=\"gamestatusover\"><a href=\"".$INDEX."?action=game&me=".$r[0]."\">F </a></span> ";
+ echo "\n <span class=\"gamestatusover\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">F </a></span> ";
else
{
- echo "\n <span class=\"gamestatusplay\"><a href=\"".$INDEX."?action=game&me=".$r[0]."\">P </a></span> ";
+ echo "\n <span class=\"gamestatusplay\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">P </a></span> ";
}
if($r[4] != 'gameover')
{