diff options
author | Arun Persaud <arun@nubati.net> | 2008-05-26 14:42:45 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2008-05-26 14:44:32 -0700 |
commit | f3fa52599f59c09e25fd5a7129504aecbf610d46 (patch) | |
tree | d1392631f014dd16d6d45835252f7b1383a1b039 /include/output.php | |
parent | af2ee6fe421192cd2b42fcb4bbd09179bbce3943 (diff) | |
download | e-DoKo-f3fa52599f59c09e25fd5a7129504aecbf610d46.tar.gz e-DoKo-f3fa52599f59c09e25fd5a7129504aecbf610d46.tar.bz2 e-DoKo-f3fa52599f59c09e25fd5a7129504aecbf610d46.zip |
LAYOUT: floating tables on the statistics page
less text, captions are real captions not in paragraphs anymore, etc.
not sure about the floating arrangments, but still better than before
Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include/output.php')
-rw-r--r-- | include/output.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/output.php b/include/output.php index 3eb8130..a0b9df3 100644 --- a/include/output.php +++ b/include/output.php @@ -96,7 +96,7 @@ function output_form_for_new_game($names) <?php } -function output_table($data,$class="") +function output_table($data,$caption="",$class="") { if($class!="") $HTML = "\n<table class=\"$class\">\n"; @@ -105,6 +105,9 @@ function output_table($data,$class="") $i=0; + if($caption!="") + $HTML .= " <caption> $caption </caption>\n"; + foreach($data as $record) { if(!$i) @@ -270,7 +273,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/standard004.css" /> + <link rel="stylesheet" type="text/css" href="css/standard005.css" /> <script type="text/javascript"> var current=0; function hl(num) { |