Mercurial > hg > batmud > alchtool
changeset 38:03d7fc455629
Improve potion listing mode.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 22 Mar 2011 01:01:28 +0200 |
parents | d64e1e382c24 |
children | 15a25bb0a694 |
files | index.php |
diffstat | 1 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/index.php Tue Mar 22 01:01:19 2011 +0200 +++ b/index.php Tue Mar 22 01:01:28 2011 +0200 @@ -373,6 +373,11 @@ printItem($x, $y, $z, substr($s, 1), $index); } +?> +<p> +Change index key to [<a href="?org=0">organs</a>] [<a href="?min=0">minerals</a>] [<a href="?herb=0">herbs</a>] [<a href="?list">Potion list</a>] +</p> +<? if ($mode == "list") { @@ -424,15 +429,12 @@ printItem($data[0], $data[1], $data[2], $name, $index); } echo "</table>\n"; -} else +} +else +{ alch_matrix_print($mode, $active); - ?> -<br /> -Change index key to [<a href="?org=0">organs</a>] [<a href="?min=0">minerals</a>] [<a href="?herb=0">herbs</a>] -<br /> -<br /> <table border="1" cellspacing="1"> <tr><th colspan="2" class="noframe">Legend</th></tr> <tr><td width="10%" class="notres"> </td><th class="noframe">Not researched yet</th></tr> @@ -444,6 +446,8 @@ <tr><td class="pair"> </td><th class="noframe">Known to be possible potion by other attempts</th></tr> </table> <? +} + $tock = array_sum(explode(" ",microtime())); echo "Page took " . round(($tock - $tick),2) . " seconds to process.<br />"; ?>