2013-02-06 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_graph.php, include/functions_ui.php,
	operation/reporting/reporting_viewer.php,
	operation/agentes/snapshot_view.php: improved the code style.
	
	* include/functions_html.php: added other parameter in print
	checkbox for to avoid to put a hidden input.
	
	Fixes: #3602766




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7596 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-02-06 14:03:32 +00:00
parent 4006fbe500
commit 5767594f30
6 changed files with 118 additions and 102 deletions

View File

@ -1,3 +1,14 @@
2013-02-06 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_graph.php, include/functions_ui.php,
operation/reporting/reporting_viewer.php,
operation/agentes/snapshot_view.php: improved the code style.
* include/functions_html.php: added other parameter in print
checkbox for to avoid to put a hidden input.
Fixes: #3602766
2013-02-06 Miguel de Dios <miguel.dedios@artica.es> 2013-02-06 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php: uploaded the lost character key. * include/functions_config.php: uploaded the lost character key.

View File

@ -268,7 +268,8 @@ function grafico_modulo_sparse_data_chart (&$chart, &$chart_data_extra, &$long_i
if ($data[$data_i]['datos'] > $interval_max) { if ($data[$data_i]['datos'] > $interval_max) {
$interval_max = $data[$data_i]['datos']; $interval_max = $data[$data_i]['datos'];
} else if ($data[$data_i]['datos'] < $interval_min) { }
else if ($data[$data_i]['datos'] < $interval_min) {
$interval_min = $data[$data_i]['datos']; $interval_min = $data[$data_i]['datos'];
} }
$total += $data[$data_i]['datos']; $total += $data[$data_i]['datos'];

View File

@ -1318,9 +1318,11 @@ function html_print_checkbox_extended ($name, $value, $checked, $disabled, $scri
* *
* @return string HTML code if return parameter is true. * @return string HTML code if return parameter is true.
*/ */
function html_print_checkbox ($name, $value, $checked = false, $return = false, $disabled = false, $script = '') { function html_print_checkbox ($name, $value, $checked = false, $return = false, $disabled = false, $script = '', $disabled_hidden = false) {
$output = html_print_checkbox_extended ($name, $value, (bool) $checked, $disabled, $script, '', true); $output = html_print_checkbox_extended ($name, $value, (bool) $checked, $disabled, $script, '', true);
if (!$disabled_hidden) {
$output .= html_print_input_hidden($name . '_sent', 1, true); $output .= html_print_input_hidden($name . '_sent', 1, true);
}
if ($return === false) if ($return === false)
echo $output; echo $output;

View File

@ -158,8 +158,10 @@ echo html_print_image("images/wait.gif", true, array("border" => '0'));
echo '<strong>'.__('Loading').'...</strong>'; echo '<strong>'.__('Loading').'...</strong>';
echo '</div>'; echo '</div>';
/* We must add javascript here. Otherwise, the date picker won't /*
work if the date is not correct because php is returning. */ * We must add javascript here. Otherwise, the date picker won't
* work if the date is not correct because php is returning.
*/
ui_require_jquery_file ("ui-timepicker-addon"); ui_require_jquery_file ("ui-timepicker-addon");
?> ?>