summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-11-01 16:51:18 -0700
committerArun Persaud <arun@nubati.net>2008-11-01 16:51:18 -0700
commit53e8cff40ccebaa711fa8aab6dc9af1eb4e5c3a1 (patch)
tree3386d10b04b3b97543dbcc0094c4b305b7745be9 /include
parent90498b8b93c1ef403d62a48de9d16635316da219 (diff)
downloade-DoKo-53e8cff40ccebaa711fa8aab6dc9af1eb4e5c3a1.tar.gz
e-DoKo-53e8cff40ccebaa711fa8aab6dc9af1eb4e5c3a1.tar.bz2
e-DoKo-53e8cff40ccebaa711fa8aab6dc9af1eb4e5c3a1.zip
CLEANUP: cleaned up CSS a bit
the bug where you couldn't click on the prev/next button shouldn't show up that often now, since that area is now a bit bigger, but the bug is still there... Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include')
-rw-r--r--include/functions.php10
-rw-r--r--include/game.php26
-rw-r--r--include/output.php2
-rw-r--r--include/preferences.php2
4 files changed, 20 insertions, 20 deletions
diff --git a/include/functions.php b/include/functions.php
index db7ccad..5c23958 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1052,22 +1052,22 @@ function format_score_table_html($score,$userid)
if(sizeof($score)==0)
return "";
- $output = "<div class=\"scoretable\">\n<table class=\"score\">\n <thead><tr>\n";
+ $output = "<div class=\"scoretable\">\n<table class=\"score\">\n <thead>\n <tr>\n";
/* output header */
- $output.= " <th> No </th>";
+ $output.= " <th> No </th>";
foreach($score[0]['players'] as $id=>$points)
{
$name = DB_get_name('userid',$id); /*TODO*/
$output.= "<th> ".substr($name,0,2)." </th>";
}
- $output.="<th>P</th>\n </tr>\n</thead>\n<tbody>\n";
+ $output.="<th>P</th>\n </tr>\n </thead>\n <tbody>\n";
$i=0;
foreach($score as $game)
{
$i++;
- $output.=" <tr>";
+ $output.=" <tr>";
$userhash = DB_get_hash_from_gameid_and_userid($game['gameid'],$userid);
/* create link to old games only if you are logged in and its your game*/
if(isset($_SESSION['id']) && $_SESSION['id']==$userid)
@@ -1085,7 +1085,7 @@ function format_score_table_html($score,$userid)
$output.="</td></tr>\n";
}
- $output.="</tbody>\n</table></div>\n";
+ $output.=" </tbody>\n</table>\n</div>\n";
return $output;
}
diff --git a/include/game.php b/include/game.php
index b2df369..fb807c7 100644
--- a/include/game.php
+++ b/include/game.php
@@ -139,41 +139,41 @@ if($session)
switch($RULES['dullen'])
{
case 'none':
- echo "<img class=\"rulesicon\" alt=\"not ten of hearts\" src=\"pics/button/no-ten-of-hearts.png\"/>\n"; break;
+ echo " <img class=\"rulesicon\" alt=\"not ten of hearts\" src=\"pics/button/no-ten-of-hearts.png\"/>\n"; break;
case 'firstwins':
- echo "<img class=\"rulesicon\" alt=\"ten of hearts\" src=\"pics/button/ten-of-hearts.png\"/>\n"; break;
+ echo " <img class=\"rulesicon\" alt=\"ten of hearts\" src=\"pics/button/ten-of-hearts.png\"/>\n"; break;
case 'secondwins':
- echo "<img class=\"rulesicon\" alt=\"second ten of hearts\" src=\"pics/button/second-ten-of-hearts.png\"/>\n"; break;
+ echo " <img class=\"rulesicon\" alt=\"second ten of hearts\" src=\"pics/button/second-ten-of-hearts.png\"/>\n"; break;
}
switch($RULES['schweinchen'])
{
case 'none':
- echo "<img class=\"rulesicon\" alt=\"no schweinchen\" ".
+ echo " <img class=\"rulesicon\" alt=\"no schweinchen\" ".
"src=\"pics/button/no-schweinchen.png\"/>\n"; break;
case 'both':
- echo "<img class=\"rulesicon\" alt=\"two schweinchen \" ".
+ echo " <img class=\"rulesicon\" alt=\"two schweinchen \" ".
"src=\"pics/button/two-schweinchen.png\"/>\n"; break;
case 'second':
- echo "<img class=\"rulesicon\" alt=\"second schweinchen\" ".
+ echo " <img class=\"rulesicon\" alt=\"second schweinchen\" ".
"src=\"pics/button/second-schweinchen.png\"/>\n"; break;
case 'secondaftercall':
- echo "<img class=\"rulesicon\" alt=\"second schweinchen after call\" ".
+ echo " <img class=\"rulesicon\" alt=\"second schweinchen after call\" ".
"src=\"pics/button/second-schweinchen-after-call.png\"/>\n"; break;
}
switch($RULES['call'])
{
case '1st-own-card':
- echo "<img class=\"rulesicon\" alt=\"1st-own-card\" src=\"pics/button/1st-own-card.png\"/>\n"; break;
+ echo " <img class=\"rulesicon\" alt=\"1st-own-card\" src=\"pics/button/1st-own-card.png\"/>\n"; break;
case '5th-card':
- echo "<img class=\"rulesicon\" alt=\"5th-card\" src=\"pics/button/5th-card.png\"/>\n"; break;
+ echo " <img class=\"rulesicon\" alt=\"5th-card\" src=\"pics/button/5th-card.png\"/>\n"; break;
case '9-cards':
- echo "<img class=\"rulesicon\" alt=\"9-cards\" src=\"pics/button/9-cards.png\"/>\n"; break;
+ echo " <img class=\"rulesicon\" alt=\"9-cards\" src=\"pics/button/9-cards.png\"/>\n"; break;
}
- echo " <div>\n";
+ echo " <div>\n";
echo " 10ofhearts : {$RULES['dullen']} <br />\n";
echo " schweinchen: {$RULES['schweinchen']} <br />\n";
echo " call: {$RULES['call']} <br />\n";
- echo " </div>\n </div>\n";
+ echo " </div>\n </div>\n";
echo " <div class=\"sessionscore\">Score \n";
$score = generate_score_table($session);
echo format_score_table_html($score,$myid);
@@ -192,7 +192,7 @@ if($session)
echo "This is game number $j of <a href=\"{$INDEX}?action=game&amp;me=$lasthash\">$i</a> in session $session.";
else
echo "This is game number $j of $i in session $session.";
- echo "</div>\n";
+ echo "\n</div>\n";
}
/* display the table and the names */
diff --git a/include/output.php b/include/output.php
index 86061e2..8d9336f 100644
--- a/include/output.php
+++ b/include/output.php
@@ -270,7 +270,7 @@ function output_header()
<title>e-Doko</title>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
<link rel="shortcut icon" type="image/x-icon" href="pics/edoko-favicon.png" />
- <link rel="stylesheet" type="text/css" href="css/standard015.css" />
+ <link rel="stylesheet" type="text/css" href="css/standard016.css" />
<script type="text/javascript" src="include/game.js"> </script>
</head>
<body onload="high_last();">
diff --git a/include/preferences.php b/include/preferences.php
index 77ad867..67e2eec 100644
--- a/include/preferences.php
+++ b/include/preferences.php
@@ -206,7 +206,7 @@ echo " <tr><td>Password(new): </td><td>",
echo " <tr><td>Password(new, retype): </td><td>",
"<input type=\"password\" id=\"password2\" name=\"password2\" size=\"20\" maxlength=\"30\" />",
" </td></tr>\n";
-echo " <tr><td><input type=\"submit\" class=\"submitbutton\" name=\"passwd\" value=\"set\" /></td>",
+echo " <tr><td><input type=\"submit\" name=\"passwd\" value=\"set\" /></td>",
"<td></td></tr>\n";
echo " </table>\n";
echo " </form>\n";