# HG changeset patch # User Matti Hamalainen # Date 1239921081 0 # Node ID 652a6864d3ce59dcf3361b32ea2f2fc6027ce1f4 # Parent 580e702a0e1aa1ae107d18875adeda5c210d48e2 Added alloy.php, updated index.php. diff -r 580e702a0e1a -r 652a6864d3ce materials/alloy.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/materials/alloy.php Thu Apr 16 22:31:21 2009 +0000 @@ -0,0 +1,156 @@ + +

+
+ + + + + + + + + + + + +
Show type + Only 2-material alloys are supported by this browser. It is known, that there are + at least SOME 3-material alloys, and naturally the "all but one" of given + material class combination. + There may be bugs and lots of combinations are not researched yet. + If you notice any inaccuracies, contact Ggr@Bat. +
+ +
+
+".htmlentities($mat).""; +} + +if (isset($showMat)) { + if (!isset($matTable[$showMat])) { + echo "

Error! No such material '".$showMatName."'

\n". + "

Material is not known. Check spelling.

\n"; + } else { + echo "

".$showMatName."

\n". + "\n". + ""; + $n = 0; + foreach ($matTable[$showMat] as $key => $val) { + echo ""; + if ($n++ >= 2) { echo "\n"; $n = 0; } + } + + echo "\n
".$transNameTable[$key+1]."".$transTable[$key][$val]."
\n"; + + echo "

Alloy combinations

\n"; + if (isset($alloyRevTable[$showMat])) { + echo "\n"; + } else { + echo "

No alloy combinations.

\n"; + } + + echo "

Mixtable

\n"; + + if (count($alloyTable[$showMat]) > 0) { + echo + "". + " \n". + " \n"; + foreach ($alloyTable[$showMat] as $key => $value) { + echo "\n"; + } + echo " \n". + " "; + foreach ($alloyTable[$showMat] as $key => $value) { + echo ""; + } + echo "
+".matLink($key)."
".htmlentities($showMat)."".matLink($value)."
\n"; + } else { + } + } +} else { + $currTable = array(); + foreach ($matTable as $key => $value) { + if ($value[14] == $showOnly) + $currTable[$key] = $value; + } + + echo "". + " \n". + " \n"; + + foreach ($currTable as $key => $value) { + echo "\n"; + } + echo " \n"; + + foreach ($currTable as $mat1 => $value) { + echo " \n"; + foreach ($currTable as $mat2 => $v) { + echo ""; + } + echo "\n"; + } + echo "
-".matLink($key)."
".matLink($mat1).""; + if (isset($alloyTable[$mat1][$mat2])) { + echo matLink($alloyTable[$mat1][$mat2]); + } else if (isset($alloyTable[$mat2][$mat1])) { + echo matLink($alloyTable[$mat2][$mat1]); + } else { + echo "-"; + } + echo "
\n"; +} + +require "../footer.inc.php"; +?> diff -r 580e702a0e1a -r 652a6864d3ce materials/index.php --- a/materials/index.php Thu Apr 16 22:22:57 2009 +0000 +++ b/materials/index.php Thu Apr 16 22:31:21 2009 +0000 @@ -1,6 +1,7 @@

-
+ "; printTC("td", $col++); - echo htmlentities($key).""; + echo "".htmlentities($key).""; while (list($kkey, $kvalue) = each($value)) { if (!isset($filterTable[$kkey+1])) {
Hide columns Show only type - Please note, that this is BETA version. There may be bugs. - If you notice any persistent bugs, contact Ggr. + There may be bugs. If you notice any inaccuracies, contact Ggr@Bat.
  • You can sort by any column by clicking on the column name. Clicking again will change sorting direction (ascending/descending).
  • @@ -177,7 +177,7 @@ $col = 0; echo "