diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php index b9e80702dc..251474028d 100755 --- a/pandora_console/godmode/setup/setup_visuals.php +++ b/pandora_console/godmode/setup/setup_visuals.php @@ -288,8 +288,8 @@ $table->data[$row][1] = html_print_input_text ('graph_res', $config["graph_res"] $row++; $table->data[$row][0] = __('Default line thickness for the Custom Graph.'); -$table->data[$row][1] = html_print_input_text ('custom_graph_widht', - $config["custom_graph_widht"], '', 5, 5, true); +$table->data[$row][1] = html_print_input_text ('custom_graph_width', + $config["custom_graph_width"], '', 5, 5, true); $row++; $table->data[$row][0] = __('Use round corners'); diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 10af83fd13..645b7779e3 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -457,7 +457,7 @@ function config_update_config () { $error_update[] = __('Shortened module graph data'); if (!config_update_value ('show_group_name', get_parameter('show_group_name'))) $error_update[] = __('Show the group name instead the group icon.'); - if (!config_update_value ('custom_graph_widht', (int) get_parameter('custom_graph_widht', 1))) + if (!config_update_value ('custom_graph_width', (int) get_parameter('custom_graph_width', 1))) $error_update[] = __('Default line thickness for the Custom Graph.'); if (!config_update_value ('render_proc', (bool) get_parameter('render_proc', false))) $error_update[] = __('Render data of module type is proc.'); @@ -1248,8 +1248,8 @@ function config_process_config () { config_update_value ('show_group_name', 0); } - if (!isset($config['custom_graph_widht'])) { - config_update_value ('custom_graph_widht', 1); + if (!isset($config['custom_graph_width'])) { + config_update_value ('custom_graph_width', 1); } if (!isset($config['render_proc'])) { config_update_value ('render_proc', 0); diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 1940d8ec3a..4d87133f5c 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -118,8 +118,8 @@ function html_print_side_layer ($params) { // Check mandatory values, if any of them is missed, return '' $mandatory = array('icon_closed', 'body_text'); - foreach($mandatory as $man) { - if(!isset($params[$man])) { + foreach ($mandatory as $man) { + if (!isset($params[$man])) { return ''; } } @@ -141,15 +141,15 @@ function html_print_side_layer ($params) { 'icon_open' => $params['icon_closed'] ); - foreach($defaults as $token => $value) { - if(!isset($params[$token])) { + foreach ($defaults as $token => $value) { + if (!isset($params[$token])) { $params[$token] = $value; } } //z-index is 1 because 2 made the calendar show under the side_layer - switch($params['position']) { + switch ($params['position']) { case 'left': $round_class = 'menu_sidebar_radius_right'; $body_float = 'left'; @@ -166,29 +166,36 @@ function html_print_side_layer ($params) { $button_float = 'left'; break; } - + $out_html = ''; - + $out_js = "