From e7db8d22d27746dbcc9bd178af1bb9e6f15b3286 Mon Sep 17 00:00:00 2001 From: Esteban Sanchez Date: Wed, 4 Feb 2009 16:07:43 +0000 Subject: [PATCH] 2009-02-04 Esteban Sanchez * general/main_menu.php: The menu has been rewritten to be more usable, bright and colorful. It's similar to Wordpress administration menu. It requires a bit of javascript, but can still works without it. Besides, Pandora can remember the menus positions using cookies. * include/javascript/jquery.pandora.js: Added javascript code for menu handling. Added cookie plugin. * include/styles/menu.css: Rewritten to be adapted to new menu system. * include/styles/images/toggle.gif: Added to repository. * include/styles/pandora.css: Set align-top to agent list table under Manage agents. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1423 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 17 ++ pandora_console/general/main_menu.php | 116 ++++++--- .../include/javascript/jquery.pandora.js | 80 ++++++ .../include/styles/images/toggle.gif | Bin 0 -> 152 bytes pandora_console/include/styles/menu.css | 227 ++++++++++-------- pandora_console/include/styles/pandora.css | 3 + 6 files changed, 301 insertions(+), 142 deletions(-) create mode 100644 pandora_console/include/styles/images/toggle.gif diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 419d8abf57..129c9ff86c 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,20 @@ +2009-02-04 Esteban Sanchez + + * general/main_menu.php: The menu has been rewritten to be more + usable, bright and colorful. It's similar to Wordpress administration + menu. It requires a bit of javascript, but can still works without it. + Besides, Pandora can remember the menus positions using cookies. + + * include/javascript/jquery.pandora.js: Added javascript code for + menu handling. Added cookie plugin. + + * include/styles/menu.css: Rewritten to be adapted to new menu system. + + * include/styles/images/toggle.gif: Added to repository. + + * include/styles/pandora.css: Set align-top to agent list table under + Manage agents. + 2009-02-04 Esteban Sanchez * general/login_page.php: Removed width of login error. diff --git a/pandora_console/general/main_menu.php b/pandora_console/general/main_menu.php index c2f3add257..9f0b04f790 100644 --- a/pandora_console/general/main_menu.php +++ b/pandora_console/general/main_menu.php @@ -18,65 +18,86 @@ if (! isset ($config["id_user"])) { require ("general/login_page.php"); - exit(); + exit (); } //This is a helper function to print menu items -function temp_print_menu ($menu, $type) { - echo '