52 lines
959 B
PHP
52 lines
959 B
PHP
<html>
|
|
<title>
|
|
nethack.net - ratcatcher level screenshots
|
|
</title>
|
|
<body bgcolor="#99BB99">
|
|
<center>
|
|
<br>
|
|
<h1>Rat Catcher Levels</h1>
|
|
<br>
|
|
<table border=1 align=center>
|
|
<script language="php">
|
|
|
|
function getworldname($wld) {
|
|
if ($wld == 1) {
|
|
return "Forest";
|
|
} else if ($wld == 2) {
|
|
return "Beach";
|
|
} else if ($wld == 3) {
|
|
return "Kitchen";
|
|
} else if ($wld == 4) {
|
|
return "Snow";
|
|
}
|
|
}
|
|
|
|
for ($w = 1; $w <= 4; $w++) {
|
|
echo "<tr>\n";
|
|
printf("<th colspan=4>World %d - %s</th>\n",$w, getworldname($w));
|
|
echo "</tr>\n";
|
|
for ($l = 1; $l <= 20;) {
|
|
echo "<tr>\n";
|
|
for ($i = 0 ; $i < 3; $i++) {
|
|
echo "<td>\n";
|
|
echo "<center>\n";
|
|
if ($l > 20) {
|
|
printf(" \n");
|
|
} else {
|
|
printf("<img src=\"levels/level_%d_%d.png\">\n",$w,$l);
|
|
echo "<br>\n";
|
|
printf("<b>%d-%d </b>",$w,$l);
|
|
passthru("./getname.sh $w $l");
|
|
}
|
|
echo "</center>\n";
|
|
echo "</td>\n";
|
|
$l++;
|
|
}
|
|
echo "</tr>\n";
|
|
}
|
|
}
|
|
</script>
|
|
</table>
|
|
</html>
|