Move find_status into omnipresent file
authorJoey Schulze <joey@infodrom.org>
Mon, 15 Sep 2008 16:53:13 +0000 (16:53 +0000)
committerJoey Schulze <joey@infodrom.org>
Mon, 15 Sep 2008 16:53:13 +0000 (16:53 +0000)
src/InfoCon/stempel/status.wml
src/InfoCon/stempel/submenu.inc

index 21d4983..e629929 100644 (file)
@@ -24,20 +24,6 @@ echo '<br'.$query;
     return sprintf("<br>%d records updated.", $count);
   }
 
-  function find_status()
-  {
-    global $dbh;
-
-    $a = array();
-    $query = "SELECT id,name FROM stempel_status ORDER BY id";
-    $sth = pg_exec ($dbh, $query);
-
-    while ($row = pg_fetch_array ($sth)) {
-      $a[$row['id']] = $row['name'];
-    }
-    return $a;
-  }
-
   $stati = false;
   function display_tables()
   {
index f3711da..a122c2b 100644 (file)
     }
     return $a;
   }
+
+  function find_status()
+  {
+    global $dbh;
+
+    $a = array();
+    $query = "SELECT id,name FROM stempel_status ORDER BY id";
+    $sth = pg_exec ($dbh, $query);
+
+    while ($row = pg_fetch_array ($sth)) {
+      $a[$row['id']] = $row['name'];
+    }
+    return $a;
+  }
 ?>
 
 &nbsp;<menu-item base=index text=Index href=index.php><br>