diff www/loc.php @ 1391:7fcea2fce0be

More fixes.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 23 Dec 2013 17:08:10 +0200
parents 2b6b38e94bb2
children ae493885b68e
line wrap: on
line diff
--- a/www/loc.php	Mon Dec 23 16:50:16 2013 +0200
+++ b/www/loc.php	Mon Dec 23 17:08:10 2013 +0200
@@ -295,8 +295,8 @@
     asort($alphaLocs);
     
     echo
-      "<h3><a name=\"".$letter."\"></a>".$letter."</h3>\n".
-      "<table class=\"loc\" width=\"95%\">\n";
+      "<h3><a id=\"ch".$letter."\"></a>".$letter."</h3>\n".
+      "<table class=\"loc\">\n";
  
     $n = 0;
     foreach ($alphaLocs as $ik => $iv)
@@ -307,8 +307,8 @@
       $totalLoc++;
 
       // Print location entry
-      printf("  <td width=\"%d%%\" class=\"%s\">",
-        (100 / $maxRow), $iv["continent"]);
+      printf("  <td class=\"%s\" style=\"width: %d%%\">",
+        $iv["continent"], (100 / $maxRow));
         
       echo stGetMapLink($iv, $continentList[$iv["continent"]][4]);
       
@@ -397,7 +397,7 @@
   
   echo
     "<p><b>".$totalLoc."</b> locations.</p>\n".
-    "</div>\n";
+    "</div>\n"; // end of contents div
 
   // Print out location tooltip HTML code
   foreach ($locationTips as $tipID => $tip)
@@ -408,15 +408,17 @@
       "</b><br />".$tip["desc"]."</div></div>\n";
   }
 
-  // Print out the alpha link index
-  stPrintExtraBoxAlphaList($alphaTable);
+  // Print out the alpha link index div
+  stPrintExtraBoxAlphaList("ch", $alphaTable);
 }
 else
 {
-  echo "<p><b>No locations known!</b></p>\n";
-  echo "</div>\n";
+  echo
+    "<p><b>No locations known!</b></p>\n".
+    "</div>\n"; // end of contents div
+
   stError("No locations known!");
 }
 
-cmPrintPageFooter();
+cmPrintPageFooter(FALSE);
 ?>
\ No newline at end of file