# HG changeset patch # User Matti Hamalainen # Date 1300795128 -7200 # Node ID bb335b8916058a2b0dbb76410980aebe3be5636d # Parent 15a25bb0a694132579feeedc712b7c29c1772293 Various improvements. diff -r 15a25bb0a694 -r bb335b891605 alch.css --- a/alch.css Tue Mar 22 09:45:35 2011 +0200 +++ b/alch.css Tue Mar 22 13:58:48 2011 +0200 @@ -3,7 +3,7 @@ background: black; color: white; font-family: arial, helvetica; - font-size: 10px; + font-size: 12pt; } a { @@ -17,17 +17,14 @@ } -th { - font-size: 10px; -} - th.noframe { border: 0px; } -td { font-size: 8px; text-align: center; } -td.tab { background: #000; font-size: 10px; } -td.atab { background: #888; font-size: 10px; } +table.mixtable { font-size: 10pt; } +td { text-align: center; } +td.tab { background: #000; font-size: 10pt; } +td.atab { background: #888; font-size: 10pt; } td.nomatch { background: #888; border: solid #aaa 1px; } td.nomark { background: #888; } @@ -40,8 +37,34 @@ td.pairnoclose { background: #008; border: solid #00a 1px; } td.pairclose { background: #008; border: solid #00a 1px; } +table.potlist { font-size: 12pt; } table.potlist { width: 65%; } table.potlist th { background: #777; } table.potlist tr:hover td { background: #060; } table.potlist tr:hover th { background: #080; } +#info { + padding-bottom: 5pt; + color: #0e0; +} + +#controls { + padding-top: 5pt; + padding-bottom: 5pt; + background: #555; +} + +#controls a { + color: yellow; +} + +#legend { + background: black; + position: absolute; + right: 1em; + bottom: 1em; + font-size: 8pt; + padding: 2pt; + margin: 5pt; +} + diff -r 15a25bb0a694 -r bb335b891605 index.php --- a/index.php Tue Mar 22 09:45:35 2011 +0200 +++ b/index.php Tue Mar 22 13:58:48 2011 +0200 @@ -15,10 +15,10 @@ } $dbModes = array( - "min" => array("Mineral", 0), - "org" => array("Organ", 1), - "herb" => array("Herb", 2), - "list" => array("Potion list", 3), + "min" => array("Mineral", 0, "minerals"), + "org" => array("Organ", 1, "organs"), + "herb" => array("Herb", 2, "herbs"), + "list" => array("Potion list", 3, "potions"), ); $dbNames = array( @@ -175,7 +175,7 @@ $div = $max / 2; // Print selection for primary key - echo "\n"; + echo "
\n"; $n = 0; foreach ($pdata as $key => $val) { if ($n == 0) echo " \n"; @@ -268,6 +268,7 @@ +
\n"; +echo "".$results["!"]." found potions, ". + "".$results["?"]." active partial matches, ". + "".$results["-"]." combinations eliminated, ". + "".$results["."]." combinations untested.\n". + "
\n"; function printItem($x, $y, $z, $s, &$index) @@ -373,11 +375,10 @@ printItem($x, $y, $z, substr($s, 1), $index); } -?> -

-Change index key to [organs] [minerals] [herbs] [Potion list] -

-Change index key to "; +foreach ($dbModes as $id => $data) + echo "[".$data[2]."] "; +echo "\n"; if ($mode == "list") { @@ -435,7 +436,7 @@ alch_matrix_print($mode, $active); ?> -
+
Legend
 Not researched yet
-No match