1d735ed237
v1.0.3
96 lines
2.9 KiB
PHP
96 lines
2.9 KiB
PHP
<?php
|
|
include('lib.php');
|
|
$link = opendb();
|
|
$controlquery = doquery("SELECT * FROM {{table}} WHERE id='1' LIMIT 1", "control");
|
|
$controlrow = mysql_fetch_array($controlquery);
|
|
ob_start("ob_gzhandler");
|
|
?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<title><? echo $controlrow["gamename"]; ?> Help</title>
|
|
<style type="text/css">
|
|
body {
|
|
background-image: url(images/background.jpg);
|
|
color: black;
|
|
font: 11px verdana;
|
|
}
|
|
table {
|
|
border-style: none;
|
|
padding: 0px;
|
|
font: 11px verdana;
|
|
}
|
|
td {
|
|
border-style: none;
|
|
padding: 3px;
|
|
vertical-align: top;
|
|
}
|
|
td.top {
|
|
border-bottom: solid 2px black;
|
|
}
|
|
td.left {
|
|
width: 150px;
|
|
border-right: solid 2px black;
|
|
}
|
|
td.right {
|
|
width: 150px;
|
|
border-left: solid 2px black;
|
|
}
|
|
a {
|
|
color: #663300;
|
|
text-decoration: none;
|
|
font-weight: bold;
|
|
}
|
|
a:hover {
|
|
color: #330000;
|
|
}
|
|
.small {
|
|
font: 10px verdana;
|
|
}
|
|
.highlight {
|
|
color: red;
|
|
}
|
|
.light {
|
|
color: #999999;
|
|
}
|
|
.title {
|
|
border: solid 1px black;
|
|
background-color: #eeeeee;
|
|
font-weight: bold;
|
|
padding: 5px;
|
|
margin: 3px;
|
|
}
|
|
.copyright {
|
|
border: solid 1px black;
|
|
background-color: #eeeeee;
|
|
font: 10px verdana;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<a name="top"></a>
|
|
<h1><? echo $controlrow["gamename"]; ?> Help: Monsters</h1>
|
|
[ <a href="help.php">Return to Help</a> | <a href="index.php">Return to the game</a> ]
|
|
|
|
<br /><br /><hr />
|
|
|
|
<table width="75%" style="border: solid 1px black" cellspacing="0" cellpadding="0">
|
|
<tr><td colspan="8" bgcolor="#ffffff"><center><b>Monsters</b></center></td></tr>
|
|
<tr><td><b>Name</b></td><td><b>Max HP</b></td><td><b>Max Damage</b></td><td><b>Armor</b></td><td><b>Level</b></td><td><b>Max Exp.</b></td><td><b>Max Gold</b></td><td><b>Immunity</b></td></tr>
|
|
<?
|
|
$count = 1;
|
|
$itemsquery = doquery("SELECT * FROM {{table}} ORDER BY id", "monsters");
|
|
while ($itemsrow = mysql_fetch_array($itemsquery)) {
|
|
if ($count == 1) { $color = "bgcolor=\"#ffffff\""; $count = 2; } else { $color = ""; $count = 1; }
|
|
if ($itemsrow["immune"] == 0) { $immune = "<span class=\"light\">None</span>"; } elseif ($itemsrow["immune"] == 1) { $immune = "Hurt"; } else { $immune = "Hurt & Sleep"; }
|
|
echo "<tr><td $color width=\"30%\">".$itemsrow["name"]."</td><td $color width=\"10%\">".$itemsrow["maxhp"]."</td><td $color width=\"10%\">".$itemsrow["maxdam"]."</td><td $color width=\"10%\">".$itemsrow["armor"]."</td><td $color width=\"10%\">".$itemsrow["level"]."</td><td $color width=\"10%\">".$itemsrow["maxexp"]."</td><td $color width=\"10%\">".$itemsrow["maxgold"]."</td><td $color width=\"20%\">$immune</td></tr>\n";
|
|
}
|
|
?>
|
|
</table>
|
|
<br />
|
|
<table class="copyright" width="100%"><tr>
|
|
<td width="50%" align="center">Powered by <a href="http://dragon.se7enet.com/dev.php" target="_new">Dragon Knight</a></td><td width="50%" align="center">© 2003-2004 by renderse7en</td>
|
|
</tr></table>
|
|
</body>
|
|
</html>
|