summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-10 04:28:39 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-10 04:28:39 +0000
commitab8c8b63c65f3c3aa01b7ae64900d764718ff986 (patch)
tree94986a14bba2a5f8480f04f7d3cf526e28f70ce9 /lib
parentcde6ad2720297448ee8f7e033ac8f26801e69d81 (diff)
downloadampache-ab8c8b63c65f3c3aa01b7ae64900d764718ff986.tar.gz
ampache-ab8c8b63c65f3c3aa01b7ae64900d764718ff986.tar.bz2
ampache-ab8c8b63c65f3c3aa01b7ae64900d764718ff986.zip
fix and new preference for footer menu
Diffstat (limited to 'lib')
-rw-r--r--lib/preferences.php2
-rw-r--r--lib/ui.php19
2 files changed, 20 insertions, 1 deletions
diff --git a/lib/preferences.php b/lib/preferences.php
index b6c6e0c9..e5584d0c 100644
--- a/lib/preferences.php
+++ b/lib/preferences.php
@@ -191,7 +191,7 @@ function create_preference_input($name,$value) {
} // if we don't have access to it
switch($name) {
-
+ case 'display_menu':
case 'download':
case 'quarantine':
case 'upload':
diff --git a/lib/ui.php b/lib/ui.php
index bd1bb882..86cdfd93 100644
--- a/lib/ui.php
+++ b/lib/ui.php
@@ -434,4 +434,23 @@ function show_clear() {
} // show_clear
+/*!
+ @function show_page_footer
+ @discussion adds page footer including html and body end tags
+ @param $menu menu item to highlight
+ @param $admin_menu admin menu item to highlight
+ @param $display_menu display menu or not (1 on 0 off)
+*/
+function show_page_footer ($menu="Home", $admin_menu='', $display_menu=0) {
+ if ($display_menu){
+ if($menu =="Admin"){
+ show_admin_menu($admin_menu);
+ }
+
+ show_menu_items($menu);
+
+ }
+ echo "</body>";
+ echo "</html><br /><br />";
+}
?>