Clean the source code style.

This commit is contained in:
mdtrooper 2015-06-08 09:32:01 +02:00
parent b96fdad6d8
commit 819b1d5d77
14 changed files with 76 additions and 64 deletions

View File

@ -181,7 +181,8 @@ if ($get_module_detail) {
"modules_format_time",
"align" => "left",
"width" => "50px");
}else{
}
else {
$columns["Timestamp"] = array(
"utimestamp",
"modules_format_timestamp",
@ -904,7 +905,8 @@ if ($list_modules) {
$salida = format_numeric($module["datos"]);
break;
}
}else{
}
else {
$salida = format_numeric($module["datos"]);
}
// Show units ONLY in numeric data types

View File

@ -1627,14 +1627,17 @@ function modules_get_agentmodule_data ($id_agent_module, $period,
case 21:
case 31:
if ( $config["render_proc"] ) {
$sql = sprintf ("SELECT IF(datos >= 1, 'OK', 'FAIL') as data, utimestamp
$sql = sprintf ("
SELECT IF(datos >= 1, 'OK', 'FAIL') as data, utimestamp
FROM tagente_datos
WHERE id_agente_modulo = %d
AND utimestamp > %d AND utimestamp <= %d
ORDER BY utimestamp %s",
$id_agent_module, $datelimit, $date, $order);
}else{
$sql = sprintf ("SELECT datos AS data, utimestamp
}
else {
$sql = sprintf ("
SELECT datos AS data, utimestamp
FROM tagente_datos
WHERE id_agente_modulo = %d
AND utimestamp > %d AND utimestamp <= %d
@ -1643,7 +1646,8 @@ function modules_get_agentmodule_data ($id_agent_module, $period,
}
break;
default:
$sql = sprintf ("SELECT datos AS data, utimestamp
$sql = sprintf ("
SELECT datos AS data, utimestamp
FROM tagente_datos
WHERE id_agente_modulo = %d
AND utimestamp > %d AND utimestamp <= %d

View File

@ -5292,7 +5292,8 @@ function reporting_get_stats_alerts($data, $links = false) {
__('Defined and fired alerts') .
'</legend>' .
html_print_table($table_al, true) . '</fieldset>';
}else{
}
else {
$table_al->class = "tactical_view";
$table_al->style = array();
$output = '<fieldset class="tactical_set">

View File

@ -2652,7 +2652,8 @@ function reporting_get_total_servers ($num_servers) {
__('Node overview') .
'</legend>' .
html_print_table($table_node, true) . '</fieldset>';
}else{
}
else {
$table_node->style = array();
$table_node->class = "tactical_view";
$node_overview = '<fieldset class="tactical_set">

View File

@ -100,7 +100,8 @@ if (!defined('METACONSOLE')){
$table->cellspacing = 0;
$table->cellpadding = 0;
$table->class = "databox filters";
}else{
}
else {
$filters = '<form class="filters_form" method="post" action="index.php?sec=estado&amp;sec2=operation/agentes/status_monitor&amp;refr=' . $refr . '&amp;ag_group=' .
$ag_group . '&amp;ag_freestring=' . $ag_freestring . '&amp;ag_modulename=' . $ag_modulename . '&amp;status=' . $status . '&amp;sort_field=' .
$sortField . '&amp;sort=' . $sort .'&amp;pure=' . $config['pure'] . $ag_custom_fields_params . '">';
@ -1247,7 +1248,8 @@ foreach ($result as $row) {
$salida = format_numeric($row["datos"]);
break;
}
}else{
}
else {
$salida = format_numeric($row["datos"]);
}

View File

@ -180,7 +180,8 @@ enterprise_hook('open_meta_frame');
if (defined ('METACONSOLE')){
$class = "databox data";
}else{
}
else {
$class = "databox filters";
}

View File

@ -183,7 +183,8 @@ if (defined('METACONSOLE')) {
echo "<div class='view_tree'>";
ui_toggle($form_html, __('Show Options'));
echo "<br>";
}else{
}
else {
//echo "<br>";
ui_toggle($form_html, __('Tree search'));
}