From: Joey Schulze Date: Mon, 15 Sep 2008 16:53:13 +0000 (+0000) Subject: Move find_status into omnipresent file X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Fservice.infodrom.org;a=commitdiff_plain;h=0cd45e21e4b065450da12e5137326e8cfdf3233c Move find_status into omnipresent file --- diff --git a/src/InfoCon/stempel/status.wml b/src/InfoCon/stempel/status.wml index 21d4983..e629929 100644 --- a/src/InfoCon/stempel/status.wml +++ b/src/InfoCon/stempel/status.wml @@ -24,20 +24,6 @@ echo '%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() { diff --git a/src/InfoCon/stempel/submenu.inc b/src/InfoCon/stempel/submenu.inc index f3711da..a122c2b 100644 --- a/src/InfoCon/stempel/submenu.inc +++ b/src/InfoCon/stempel/submenu.inc @@ -14,6 +14,20 @@ } 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; + } ?>