Mercurial > hg > batmud > maputils
diff www/info.php @ 1677:9d51b4138e7d
CSS updates and related code changes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 25 Apr 2017 17:30:08 +0300 |
parents | 2cbce82aa3c3 |
children | 4fde474ea43e |
line wrap: on
line diff
--- a/www/info.php Tue Apr 25 17:29:42 2017 +0300 +++ b/www/info.php Tue Apr 25 17:30:08 2017 +0300 @@ -90,39 +90,25 @@ $letter = strtoupper($alpha); echo "<h3><a id=\"ch".$letter."\"></a>".$letter."</h3>\n"; - echo "<table class=\"loc\">\n"; + echo "<div class=\"locTable\">\n"; $n = 0; foreach ($data as $wizard) { - if ($n == 0) echo " <tr>\n"; - $totalWiz++; - printf(" <td style=\"width: %d%%; background: %s;\">". + printf(" <div class=\"locWizard\" style=\"background: %s;\">". "<a href=\"loc.php?a=%s\">%s</a> <span style=\"color: #f80;\">", - (100 / $maxRow), (count($wizard) > 2 || isset($wizard["desc"])) ? "#474" : "#744", $wizard["name"], $wizard["name"]); + (count($wizard) > 2 || isset($wizard["desc"])) ? "#474" : "#744", + $wizard["name"], $wizard["name"]); if ($wizard["areas"] > 0) echo " (".$wizard["areas"].")"; - echo "</span></td>\n"; - - $n++; - if ($n >= $maxRow) - { - echo " </tr>\n"; - $n = 0; - } + echo "</span></div>\n"; } - if ($n > 0) - { - while ($n++ < $maxRow) - echo " <td></td>\n"; - echo " </tr>\n"; - } - echo "</table>\n"; + echo "</div>\n"; } echo "<p><b>".$totalWiz."</b> wizards.</p>\n";