Mercurial > hg > batmud > maputils
diff www/info.php @ 2271:fa98b657c107
Sync www changes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 20 Mar 2020 07:16:27 +0200 |
parents | 431c149e8882 |
children | 5c04ea63bf29 |
line wrap: on
line diff
--- a/www/info.php Mon Mar 16 04:05:36 2020 +0200 +++ b/www/info.php Fri Mar 20 07:16:27 2020 +0200 @@ -27,8 +27,8 @@ "<div style=\"text-align: center;\">\n". " <table style=\"background: black;\">\n". " <tr>\n". - " <td style=\"background: #474\">Entry has information about the wizard.</td>\n". - " <td style=\"background: #744\">No wizard information entry.</td>\n". + " <td class=\"locWizHasDesc\">Entry has information about the wizard.</td>\n". + " <td class=\"locWizHasNoDesc\">No wizard information entry.</td>\n". " </tr>\n". " </table>\n". "</div>\n"; @@ -94,15 +94,14 @@ { $totalWiz++; - printf(" <div class=\"locWizard\" style=\"background: %s;\">". - "<a href=\"loc.php?a=%s\">%s</a> <span style=\"color: #f80;\">", - (count($wizard) > 2 || isset($wizard["desc"])) ? "#474" : "#744", - $wizard["name"], $wizard["name"]); + echo + " <div class=\"locWizard ".((count($wizard) > 2 || isset($wizard["desc"])) ? "locWizHasDesc" : "locWizHasNoDesc")."\">". + "<a href=\"loc.php?a=".$wizard["name"]."\">".$wizard["name"]."</a>"; if ($wizard["areas"] > 0) - echo " (".$wizard["areas"].")"; + echo " <span class=\"locWizNumAreas\">(".$wizard["areas"].")</span>"; - echo "</span></div>\n"; + echo "</div>\n"; } echo "</div>\n";