changeset 2711:63d100185adf

Simplify(?) the simple locations page.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 04 Mar 2024 11:07:12 +0200
parents 62459cd405f6
children ac63db65b917
files www/simple.php
diffstat 1 files changed, 12 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/www/simple.php	Mon Mar 04 09:07:18 2024 +0200
+++ b/www/simple.php	Mon Mar 04 11:07:12 2024 +0200
@@ -59,9 +59,7 @@
       echo
         " <tr>\n".
         "  <td class=\"type\">".mpGetLocationTypeStr($iv["flags"])."</td>\n".
-        "  <td class=\"name\">".mpGetMapLink($iv, $continentList[$iv["continent"]][CTI_HAS_MAP], FALSE, FALSE)."</td>\n".
-        "  <td class=\"continent ".$iv["continent"]."\">".$iv["continent"]."</td>\n".
-        "  <td class=\"coords\">".$iv["x"].", ".$iv["y"]."</td>\n";
+        "  <td class=\"name\">".mpGetMapLink($iv, $continentList[$iv["continent"]][CTI_HAS_MAP], FALSE, FALSE)."</td>\n";
 
       // Alternative names
       $alt = "";
@@ -78,7 +76,11 @@
         }
         $alt = implode(" | ", $fs);
       }
-      echo "  <td class=\"altnames\">".$alt."</td>\n";
+      echo
+        "  <td class=\"altnames\">".$alt."</td>\n".
+        "  <td class=\"continent ".$iv["continent"]."\">".$iv["continent"]."</td>\n".
+        "  <td class=\"coords\">".$iv["x"].", ".$iv["y"]."</td>\n".
+        "  <td class=\"coords\">".$iv["globalx"].", ".$iv["globaly"]."</td>\n";
 
       // If either freeform desc or URL field are set, we add those
       $desc = "";
@@ -89,7 +91,8 @@
       }
       echo "  <td class=\"desc\">".$desc."</td>\n";
 
-      // Coder / society names
+/*
+      // Author / society names
       $authors = "";
       if (count($iv["authors"]) > 0)
       {
@@ -111,7 +114,10 @@
       }
 
       echo
-        "  <td class=\"authors\">".$authors."</td>\n".
+        "  <td class=\"authors\">".$authors."</td>\n";
+*/
+
+      echo
         " </tr>\n";
     }