Adjustments for service.infodrom.org, stripped the submenu, global
authorJoey Schulze <joey@infodrom.org>
Thu, 6 Sep 2001 08:23:33 +0000 (08:23 +0000)
committerJoey Schulze <joey@infodrom.org>
Thu, 6 Sep 2001 08:23:33 +0000 (08:23 +0000)
functions are incorporated from the upper dir.

src/LTOL/2000/hardware/edit.wml
src/LTOL/2000/hardware/index.wml
src/LTOL/2000/hardware/update.wml

index 7867a09..ac9eed6 100644 (file)
@@ -1,13 +1,11 @@
-#include <lt2k.style>
+#include <ltol.style>
 #include "hardware.inc"
 
-<page title="LinuxTag 2000 - Hardware">
-
-<headline "Hardware">
+<page func="Oldenburger LinuxTag 2000" title="Hardware">
 
 <hardware-init>
 <?
-  $dbh = pg_pconnect ("kuolema", "5432", "<db>")
+  $dbh = pg_pconnect ("<dbhost>", "<dbport>", "<dbname>")
          or die("Unable to connect to SQL server");
 
   if ($oid) {
index e5216e7..fdf9da4 100644 (file)
@@ -1,22 +1,19 @@
-#include <lt2k.style>
+#include <ltol.style>
 
-<page title="LinuxTag 2000 - Hardware">
-
-<headline "Hardware">
-
-<blockquote>
+<page func="Oldenburger LinuxTag 2000" title="Hardware">
 
 <?
-  function printrow ($cell0, $cell1, $cell2, $oid)
+  function printrow ($color, $cell0, $cell1, $cell2, $oid)
   {
 
-    printf ("<tr><td width=\"10%%\" align=\"left\"><font face=\"Helvetica,Arial\">%s</font></td>", $cell0);
-    printf ("<td width=\"70%%\" align=\"left\"><font face=\"Helvetica,Arial\"><a href=\"edit.php3?oid=%d\">%s</a></font></td>",
+    printf ("<tr bgcolor=\"#%s\"><td width=\"10%%\" align=\"left\"><font face=\"Helvetica,Arial\">%s</font></td>",
+          $color, $cell0);
+    printf ("<td width=\"50%%\" align=\"left\"><font face=\"Helvetica,Arial\"><a href=\"edit.php3?oid=%d\">%s</a></font></td>",
           $oid, $cell1);
-    printf ("<td width=\"20%%\" align=\"left\"><font face=\"Helvetica,Arial\">%s</font></td></tr>", $cell2);
+    printf ("<td width=\"40%%\" align=\"left\"><font face=\"Helvetica,Arial\">%s</font></td></tr>", $cell2);
   }
 
-  $dbh = pg_pconnect ("kuolema", "5432", "<db>")
+  $dbh = pg_pconnect ("<dbhost>", "<dbport>", "<dbname>")
          or die("Unable to connect to SQL server");
 
 
 
   if (pg_NumRows ($sth) > 0) {
     echo ("<h3><font face=\"Helvetica,Arial\">Bedarf</font></h3>");
-    echo ("<table width=\"100%\" border=\"1\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\">");
-    echo ("<tr><th width=\"10%\" align=\"left\"><font face=\"Helvetica,Arial\">Typ</font></th>");
-    echo ("<th width=\"70%\" align=\"left\"><font face=\"Helvetica,Arial\">Bezeichnung</font></th>");
-    echo ("<th width=\"20%\" align=\"left\"><font face=\"Helvetica,Arial\">Zweck</font></th></tr>");
+    echo ("<table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\" summary=\"\">");
+    echo ("<tr bgcolor=\"#<colh>\"><th width=\"10%\" align=\"left\"><font face=\"Helvetica,Arial\">Typ</font></th>");
+    echo ("<th width=\"50%\" align=\"left\"><font face=\"Helvetica,Arial\">Bezeichnung</font></th>");
+    echo ("<th width=\"40%\" align=\"left\"><font face=\"Helvetica,Arial\">Zweck</font></th></tr>");
+    $color = "<cold>";
     for ($i=0; $i<pg_NumRows ($sth); $i++) {
       $row = pg_fetch_array ($sth, $i);
-      printrow ($row['typ'],$row['name'],$row['purpose'],$row['oid']);
+      $color = $color == "<cold>"?"<coln>":"<cold>";
+      printrow ($color, $row['typ'],$row['name'],$row['purpose'],$row['oid']);
     }
     echo ("</table><p>");
   }
 
   if (pg_NumRows ($sth) > 0) {
     echo ("<h3><font face=\"Helvetica,Arial\">Zur Verfügung</font></h3>");
-    echo ("<table width=\"100%\" border=\"1\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\">");
-    echo ("<tr><th width=\"10%\" align=\"left\"><font face=\"Helvetica,Arial\">Typ</font></th>");
-    echo ("<th width=\"70%\" align=\"left\"><font face=\"Helvetica,Arial\">Bezeichnung</font></th>");
-    echo ("<th width=\"20%\" align=\"left\"><font face=\"Helvetica,Arial\">Standort</font></th></tr>");
+    echo ("<table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\" summary=\"\">");
+    echo ("<tr bgcolor=\"#<colh>\"><th width=\"10%\" align=\"left\"><font face=\"Helvetica,Arial\">Typ</font></th>");
+    echo ("<th width=\"50%\" align=\"left\"><font face=\"Helvetica,Arial\">Bezeichnung</font></th>");
+    echo ("<th width=\"40%\" align=\"left\"><font face=\"Helvetica,Arial\">Standort</font></th></tr>");
+    $color = "<cold>";
     for ($i=0; $i<pg_NumRows ($sth); $i++) {
       $row = pg_fetch_array ($sth, $i);
-      printrow ($row['typ'],$row['name'],$row['location'],$row['oid']);
+      $color = $color == "<cold>"?"<coln>":"<cold>";
+      printrow ($color, $row['typ'],$row['name'],$row['location'],$row['oid']);
     }
     echo ("</table><p>");
   }
 
   if (pg_NumRows ($sth) > 0) {
     echo ("<h3><font face=\"Helvetica,Arial\">Verplant</font></h3>");
-    echo ("<table width=\"100%\" border=\"1\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\">");
-    echo ("<tr><th width=\"10%\" align=\"left\"><font face=\"Helvetica,Arial\">Typ</font></th>");
-    echo ("<th width=\"70%\" align=\"left\"><font face=\"Helvetica,Arial\">Bezeichnung</font></th>");
+    echo ("<table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\" summary=\"\">");
+    echo ("<tr bgcolor=\"#<colh>\"><th width=\"10%\" align=\"left\"><font face=\"Helvetica,Arial\">Typ</font></th>");
+    echo ("<th width=\"50%\" align=\"left\"><font face=\"Helvetica,Arial\">Bezeichnung</font></th>");
     echo ("<th width=\"20%\" align=\"left\"><font face=\"Helvetica,Arial\">Zweck</font></th></tr>");
+    $color = "<cold>";
     for ($i=0; $i<pg_NumRows ($sth); $i++) {
       $row = pg_fetch_array ($sth, $i);
-      printrow ($row['typ'],$row['name'],$row['purpose'],$row['oid']);
+      $color = $color == "<cold>"?"<coln>":"<cold>";
+      printrow ($color, $row['typ'],$row['name'],$row['purpose'],$row['oid']);
     }
     echo ("</table><p>");
   }
 
 ?>
 
-<li> <a href="edit.php3">Neues Gerät hinzufügen</a>
-
-</blockquote>
-
 </page>
 
 # Local variables:
index cbf6027..8d406a2 100644 (file)
@@ -1,14 +1,12 @@
-#include <lt2k.style>
+#include <ltol.style>
 #include <phptools.inc>
 
-<page title="LinuxTag 2000 - Hardware">
-
-<headline "Hardware">
+<page func="Oldenburger LinuxTag 2000" title="Hardware">
 
 <sql_prepare>
 
 <?
-  $dbh = pg_pconnect ("kuolema", "5432", "<db>")
+  $dbh = pg_pconnect ("<dbhost>", "<dbport>", "<dbname>")
         or die("Unable to connect to SQL server");
 
   $name = sql_prepare ($name);
@@ -53,7 +51,7 @@ Aufgenommen/aktualisiert.<p>
 <li> <a href="index.php3">Index</a>
 <li> <a href="edit.php3">Neues Gerät hinzufügen</a>
 
-<p><em>Die Datenbanken sind read-only, da der Oldenburger LinuxTag 2000 abgeschlossen ist.</em><p>
+<p><em>Die Datenbanken sind read-only geschaltet, da der Oldenburger LinuxTag 2000 abgeschlossen ist.</em><p>
 
 </page>