# HG changeset patch # User Matti Hamalainen # Date 1451523737 -7200 # Node ID fd471bd4e0136142af070784cd13ab987a3beeff # Parent 03963c456ed813f5c7b506fa0f2bcf410d8243b7 Improve page HTML output cosmetics. diff -r 03963c456ed8 -r fd471bd4e013 materials/info.php --- a/materials/info.php Thu Dec 31 03:00:50 2015 +0200 +++ b/materials/info.php Thu Dec 31 03:02:17 2015 +0200 @@ -93,9 +93,9 @@ foreach ($matReliability as $chk) { $tmps = "hits".$chk[0]."to".$chk[1]; - $extraCSS[] = " td.".$tmps.", .".$tmps." { ".$chk[3]." }"; + $extraCSS[] = " td.".$tmps.", .".$tmps." { ".$chk[3]." }"; if (isset($chk[4])) - $extraCSS[] = " td.".$tmps." a { ".$chk[4]." }"; + $extraCSS[] = " td.".$tmps." a { ".$chk[4]." }"; $extraInfo[] = "".$chk[2].""; } @@ -105,13 +105,13 @@ // Let's start pooping out the page // cmPrintPageHeader($pageTitle, " - - + td.nohits, .nohits { background: black; } + td.impossible { background: black; color: #f00; text-align: center; } + "); echo @@ -275,21 +275,24 @@ foreach ($alloyTable[$setShowMat] as $key => $value) { - echo "".stGetMatLink($key)."\n"; + echo " ".stGetMatLink($key)."\n"; } echo " \n". - " ".chentities($setShowMat).""; + " \n". + " ".chentities($setShowMat)."\n"; foreach ($alloyTable[$setShowMat] as $key => $value) { if (list($a, $b) = each($value)) { - echo "".stGetMatLink($a).""; + echo " ".stGetMatLink($a)."\n"; } } - echo "\n"; + echo + " \n". + "\n"; } else {