mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-21 08:58:30 +02:00
2011-07-20 Sergio Martin <sergio.martin@artica.es>
* include/functions_menu.php: Fixed side menu confitions to draw in bold style the selected subsections to allow secondary parameters like "&tab=agents" in the subsections git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4605 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
606d11268a
commit
3b273f789e
@ -1,3 +1,9 @@
|
|||||||
|
2011-07-20 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* include/functions_menu.php: Fixed side menu confitions
|
||||||
|
to draw in bold style the selected subsections to allow
|
||||||
|
secondary parameters like "&tab=agents" in the subsections
|
||||||
|
|
||||||
2011-07-20 Sergio Martin <sergio.martin@artica.es>
|
2011-07-20 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* godmode/menu.php: Added users massive operation to the
|
* godmode/menu.php: Added users massive operation to the
|
||||||
|
@ -33,6 +33,9 @@ function menu_print_menu (&$menu) {
|
|||||||
$sec = (string) get_parameter ('sec');
|
$sec = (string) get_parameter ('sec');
|
||||||
$sec2 = (string) get_parameter ('sec2');
|
$sec2 = (string) get_parameter ('sec2');
|
||||||
|
|
||||||
|
$allsec2 = explode('sec2=', $_SERVER['REQUEST_URI']);
|
||||||
|
$allsec2 = $allsec2[1];
|
||||||
|
|
||||||
echo '<ul'.(isset ($menu['class']) ? ' class="'.$menu['class'].'"' : '').'>';
|
echo '<ul'.(isset ($menu['class']) ? ' class="'.$menu['class'].'"' : '').'>';
|
||||||
|
|
||||||
foreach ($menu as $mainsec => $main) {
|
foreach ($menu as $mainsec => $main) {
|
||||||
@ -81,24 +84,22 @@ function menu_print_menu (&$menu) {
|
|||||||
$submenu_output = '';
|
$submenu_output = '';
|
||||||
$selected = false;
|
$selected = false;
|
||||||
$visible = false;
|
$visible = false;
|
||||||
|
|
||||||
foreach ($main["sub"] as $subsec2 => $sub) {
|
foreach ($main["sub"] as $subsec2 => $sub) {
|
||||||
|
$subsec2 = io_safe_output($subsec2);
|
||||||
// Choose valid suboptions (sec2)
|
// Choose valid suboptions (sec2)
|
||||||
if (enterprise_hook ('enterprise_acl', array ($config['id_user'], $mainsec, $subsec2)) == false){
|
if (enterprise_hook ('enterprise_acl', array ($config['id_user'], $mainsec, $subsec2)) == false){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Set class
|
//Set class
|
||||||
if (($sec2 == $subsec2 && isset ($sub[$subsec2]["options"]))
|
if (($sec2 == $subsec2 || $allsec2 == $subsec2) && isset ($sub[$subsec2]["options"])
|
||||||
&& (get_parameter_get ($sub[$subsec2]["options"]["name"]) == $sub[$subsec2]["options"]["value"])) {
|
&& (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
|
//If the subclass is selected and there are options and that options value is true
|
||||||
$class = 'submenu_selected';
|
$class = 'submenu_selected';
|
||||||
$selected = true;
|
$selected = true;
|
||||||
$visible = true;
|
$visible = true;
|
||||||
}
|
}
|
||||||
elseif ($sec2 == $subsec2 && !isset ($sub[$subsec2]["options"])) {
|
elseif (($sec2 == $subsec2 || $allsec2 == $subsec2) && !isset ($sub[$subsec2]["options"])) {
|
||||||
$class = 'submenu_selected';
|
$class = 'submenu_selected';
|
||||||
$selected = true;
|
$selected = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user