website modifications

This commit is contained in:
Rob Pearce 2008-12-25 21:50:38 +00:00
parent bd52e1f0b6
commit f8ffa95a63
1 changed files with 13 additions and 1 deletions

View File

@ -22,6 +22,18 @@ function getworldname($wld) {
} }
} }
function getworldcolour($wld) {
if ($wld == 1) {
return "#BBDDBB";
} else if ($wld == 2) {
return "#CCCC99";
} else if ($wld == 3) {
return "#9999ff";
} else if ($wld == 4) {
return "#AAAAAA";
}
}
for ($w = 1; $w <= 4; $w++) { for ($w = 1; $w <= 4; $w++) {
echo "<tr>\n"; echo "<tr>\n";
printf("<th colspan=4 bgcolor=\"#ffff00\">World %d - %s</th>\n",$w, getworldname($w)); printf("<th colspan=4 bgcolor=\"#ffff00\">World %d - %s</th>\n",$w, getworldname($w));
@ -29,7 +41,7 @@ for ($w = 1; $w <= 4; $w++) {
for ($l = 1; $l <= 20;) { for ($l = 1; $l <= 20;) {
echo "<tr>\n"; echo "<tr>\n";
for ($i = 0 ; $i < 4; $i++) { for ($i = 0 ; $i < 4; $i++) {
echo "<td>\n"; printf("<td bgcolor=\"%s\">\n", getworldcolour($w));
echo "<center>\n"; echo "<center>\n";
if ($l > 20) { if ($l > 20) {
printf("&nbsp;\n"); printf("&nbsp;\n");