Mercurial > hg > fapweb
changeset 328:6dd62c3204aa
Improve HTML table output of results.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 28 Nov 2013 00:18:12 +0200 |
parents | 995400521822 |
children | 899a3583666d |
files | results.inc.php |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/results.inc.php Thu Nov 28 00:10:27 2013 +0200 +++ b/results.inc.php Thu Nov 28 00:18:12 2013 +0200 @@ -126,10 +126,10 @@ "<h2>".chentities($compo["name"])."</h2>\n". "<table class=\"attendees\" style=\"width: 80%;\">\n". " <tr>\n". - " <th style=\"width: 1%;\">#</th>\n". - " <th style=\"width: 3%;\">Points</th>\n". + " <th style=\"width: 5%;\">#</th>\n". " <th>Name</th>\n". " <th>Author</th>\n". + " <th style=\"width: 3%;\">Points</th>\n". " </tr>\n"; foreach (stExecSQL($sql) as $entry) @@ -138,12 +138,12 @@ $index++; echo - "<tr>". - "<td>".$index."</td>". - "<td>".$entry["votesum"]."</td>". - "<td>".chentities($entry["name"])."</td>". - "<td>".($showAuthors ? chentities($entry["author"]) : "-")."</td>". - "</tr>\n"; + " <tr>". + " <td>".$index."</td>". + " <td>".chentities($entry["name"])."</td>". + " <td>".($showAuthors ? chentities($entry["author"]) : "-")."</td>". + " <td>".$entry["votesum"]."</td>". + " </tr>\n"; $prev = $entry["votesum"]; }