From be4f83cd2a17a0ec05f5bce50c91befaafaa6e0c Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Sun, 20 Dec 2009 18:38:08 +0000 Subject: Test. git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@376 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- admin/navigation/functions.php | 42 ++++++++++++++++++++++++++++++++ admin/navigation/index.php | 54 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 admin/navigation/functions.php create mode 100644 admin/navigation/index.php (limited to 'admin/navigation') diff --git a/admin/navigation/functions.php b/admin/navigation/functions.php new file mode 100644 index 0000000..29aa10f --- /dev/null +++ b/admin/navigation/functions.php @@ -0,0 +1,42 @@ +. + */ + +/** + * Note to anyone feeling the need to edit this file... + * You MUST declare $db as global inside your functions in order access MySQL from here. + */ + +function ListNavigation(){ + + global $db; + $result = $db->Query("SELECT `nav_id`, `title`, `weight` FROM `bayonet_navigation` ORDER BY `weight`"); + while(($row = $db->Fetch($result))!=false) + { + $data[] = $row; + } + + echo "|0|Home|0|
"; + + foreach($data as $nav){ + + echo "|{$nav['nav_id']}|{$nav['title']}|{$nav['weight']}|
"; + } + +} +?> \ No newline at end of file diff --git a/admin/navigation/index.php b/admin/navigation/index.php new file mode 100644 index 0000000..f50ef55 --- /dev/null +++ b/admin/navigation/index.php @@ -0,0 +1,54 @@ +. + */ + ?> + +

- Navigation Links

+ -Edit Order, Edit Page, Delete Pages, Add Pages
+ + \ No newline at end of file -- cgit