mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
2010-11-23 Miguel de Dios <miguel.dedios@artica.es>
* operation/gis_maps/render_view.php: cleaned source code style. * include/functions_ui.php: fixed in the function "print_page_header" the check if the option is a separator that it was true when the key was zero. Fixes: #3115621 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3621 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
3af9b69550
commit
78f0f2bef8
@ -1,3 +1,13 @@
|
|||||||
|
2010-11-23 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* operation/gis_maps/render_view.php: cleaned source code style.
|
||||||
|
|
||||||
|
* include/functions_ui.php: fixed in the function
|
||||||
|
"print_page_header" the check if the option is a separator that it
|
||||||
|
was true when the key was zero.
|
||||||
|
|
||||||
|
Fixes: #3115621
|
||||||
|
|
||||||
2010-11-23 Miguel de Dios <miguel.dedios@artica.es>
|
2010-11-23 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* extensions/extension_uploader.php: add first version of extension
|
* extensions/extension_uploader.php: add first version of extension
|
||||||
|
@ -1580,20 +1580,22 @@ function print_page_header ($title, $icon = "", $return = false, $help = "", $go
|
|||||||
if (is_array($options)) {
|
if (is_array($options)) {
|
||||||
$buffer .= '<div id="menu_tab"><ul class="mn">';
|
$buffer .= '<div id="menu_tab"><ul class="mn">';
|
||||||
foreach ($options as $key => $option) {
|
foreach ($options as $key => $option) {
|
||||||
if ($key == 'separator') {
|
if ($key === 'separator') {
|
||||||
$buffer .= '<li class='.$separator_class.'>';
|
$buffer .= '<li class='.$separator_class.'>';
|
||||||
$buffer .= '</li>';
|
$buffer .= '</li>';
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
if (is_array($option)) {
|
if (is_array($option)) {
|
||||||
$class = 'nomn';
|
$class = 'nomn';
|
||||||
if ($option['active']) {
|
if ($option['active']) {
|
||||||
$class = 'nomn_high';
|
$class = 'nomn_high';
|
||||||
}
|
}
|
||||||
|
|
||||||
$buffer .= '<li class="' . $class . '">';
|
$buffer .= '<li class="' . $class . '">';
|
||||||
$buffer .= $option['text'];
|
$buffer .= $option['text'];
|
||||||
$buffer .= '</li>';
|
$buffer .= '</li>';
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
$buffer .= '<li class="nomn">';
|
$buffer .= '<li class="nomn">';
|
||||||
$buffer .= $option;
|
$buffer .= $option;
|
||||||
$buffer .= '</li>';
|
$buffer .= '</li>';
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
Loading…
x
Reference in New Issue
Block a user