summaryrefslogtreecommitdiffstats
path: root/templates/admin_menu.inc
diff options
context:
space:
mode:
Diffstat (limited to 'templates/admin_menu.inc')
-rw-r--r--templates/admin_menu.inc54
1 files changed, 54 insertions, 0 deletions
diff --git a/templates/admin_menu.inc b/templates/admin_menu.inc
new file mode 100644
index 00000000..0d875e70
--- /dev/null
+++ b/templates/admin_menu.inc
@@ -0,0 +1,54 @@
+<?php
+/*
+
+ Copyright (c) 2001 - 2005 Ampache.org
+ All rights reserved.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version 2
+ of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+*/
+
+/*
+
+ @header
+ A template file
+
+*/
+
+$web_path = conf('web_path');
+
+$items = array(
+ _("Users") => "$web_path/admin/users.php",
+ _("Mail Users") => "$web_path/admin/mail.php",
+ _("Catalog") => "$web_path/admin/catalog.php",
+ _("Admin Preferences") => "$web_path/admin/preferences.php",
+ _("Access Lists") => "$web_path/admin/access.php"
+ );
+
+?>
+<ul id="adminmenu">
+
+ <?php
+ foreach ( array_keys($items) as $item ) {
+ if ( $admin_highlight == $item ) {
+ echo "<li class=\"active\"><a class=\"active\" href=\"$items[$item]\">$item</a></li>\n";
+ }
+ else {
+ echo "<li><a href=\"$items[$item]\">$item</a></li>\n";
+ }
+ }
+
+ ?>
+</ul>