changeset 327:fd471bd4e013 misc

Improve page HTML output cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 31 Dec 2015 03:02:17 +0200
parents 03963c456ed8
children 98c798a843ed
files materials/info.php
diffstat 1 files changed, 15 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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[] = "<span class=\"hits".$chk[0]."to".$chk[1]."\"><b>".$chk[2]."</b></span>";
 }
@@ -105,13 +105,13 @@
 // Let's start pooping out the page
 //
 cmPrintPageHeader($pageTitle, "
- <meta name=\"robots\" content=\"nofollow\" />
- <style type=\"text/css\">
-   span.alternate { color: red; font-weight: bold; }
+  <meta name=\"robots\" content=\"nofollow\" />
+  <style type=\"text/css\">
+    span.alternate { color: red; font-weight: bold; }
 ".implode("\n", $extraCSS)."
-   td.nohits, .nohits { background: black; }
-   td.impossible { background: black; color: #f00; text-align: center; }
- </style>
+    td.nohits, .nohits { background: black; }
+    td.impossible { background: black; color: #f00; text-align: center; }
+  </style>
 ");
 
 echo
@@ -275,21 +275,24 @@
 
       foreach ($alloyTable[$setShowMat] as $key => $value)
       {
-        echo "<th>".stGetMatLink($key)."</th>\n";
+        echo "  <th>".stGetMatLink($key)."</th>\n";
       }
 
       echo
         " </tr>\n".
-        " <tr><th>".chentities($setShowMat)."</th>";
+        " <tr>\n".
+        "  <th>".chentities($setShowMat)."</th>\n";
 
       foreach ($alloyTable[$setShowMat] as $key => $value)
       {
         if (list($a, $b) = each($value))
         {
-          echo "<td ".stGetReliabilityStyle($b).">".stGetMatLink($a)."</td>";
+          echo "  <td".stGetReliabilityStyle($b).">".stGetMatLink($a)."</td>\n";
         }
       }
-      echo "</tr></table>\n";
+      echo
+        " </tr>\n".
+        "</table>\n";
     }
     else
     {