Pre-select the main sleeping facility in the limitation selection
authorJoey Schulze <joey@infodrom.org>
Fri, 27 Jun 2003 13:26:44 +0000 (13:26 +0000)
committerJoey Schulze <joey@infodrom.org>
Fri, 27 Jun 2003 13:26:44 +0000 (13:26 +0000)
src/LinuxTag/2003/nili/index.wml

index 8ab9ce5..8d5a34e 100644 (file)
@@ -175,7 +175,11 @@ S = Sleeping<br>
 
     sort ($nightplaces);
     for ($nr=0; $nr < count ($nightplaces); $nr++) {
-      printf ("<option>%s", $nightplaces[$nr]);
+      if ($$nightplaces[$nr] == "<nili_name>") {
+        printf ("<option selected>%s", $nightplaces[$nr]);
+      } else {
+        printf ("<option>%s", $nightplaces[$nr]);
+      }
     }
   echo ("</select>");
   }