From 5501dfe5d9345aa10fae6813b273e32a349f2fa8 Mon Sep 17 00:00:00 2001 From: Esteban Sanchez Date: Thu, 5 Feb 2009 09:17:28 +0000 Subject: [PATCH] 2009-02-05 Esteban Sanchez * general/links_menu.php: Added classes to links. Style correction. * general/main_menu.php: Fixed an error when the selected option was the last one in a submenu. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1426 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/general/links_menu.php | 4 ++-- pandora_console/general/main_menu.php | 10 +++++----- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index bb5a1972a8..9c5d0585bb 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2009-02-05 Esteban Sanchez + + * general/links_menu.php: Added classes to links. Style correction. + + * general/main_menu.php: Fixed an error when the selected option was + the last one in a submenu. + 2009-02-04 Ramon Novoa * include/functions_db.php, diff --git a/pandora_console/general/links_menu.php b/pandora_console/general/links_menu.php index 413f587b55..10aa2512e2 100644 --- a/pandora_console/general/links_menu.php +++ b/pandora_console/general/links_menu.php @@ -20,8 +20,8 @@ $result = get_db_all_rows_sql ($sql); if ($result !== false) { echo '
:: '.__('Links').' ::
'; echo ''; } diff --git a/pandora_console/general/main_menu.php b/pandora_console/general/main_menu.php index 9f0b04f790..e4a862ffc6 100644 --- a/pandora_console/general/main_menu.php +++ b/pandora_console/general/main_menu.php @@ -77,18 +77,18 @@ function temp_print_menu ($menu, $classtype) { //Set class if ($sec2 == $subsec2 && isset ($sub[$subsec2]["options"]) && (get_parameter_get ($sub[$subsec2]["options"]["name"]) == $sub[$subsec2]["options"]["value"])) { - //If the subclass is selected and there are options and that options value is true - $class = ' submenu_selected'; + //If the subclass is selected and there are options and that options value is true + $class = 'submenu_selected'; $selected = true; $visible = true; } elseif ($sec2 == $subsec2 && !isset ($sub[$subsec2]["options"])) { //If the subclass is selected and there are no options - $class = ' submenu_selected'; + $class = 'submenu_selected'; $selected = true; $visible = true; } else { //Else it's invisible - $class = ''; + $class = 'submenu_not_selected'; } if (! isset ($sub["refr"])) { @@ -126,7 +126,7 @@ function temp_print_menu ($menu, $classtype) { $output .= ''.$main["text"].''; $output .= ''; - $output .= '