mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Clean the source code style.
This commit is contained in:
parent
b96fdad6d8
commit
819b1d5d77
@ -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
|
||||
|
@ -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
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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&sec2=operation/agentes/status_monitor&refr=' . $refr . '&ag_group=' .
|
||||
$ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=' .
|
||||
$sortField . '&sort=' . $sort .'&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"]);
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,8 @@ enterprise_hook('open_meta_frame');
|
||||
|
||||
if (defined ('METACONSOLE')){
|
||||
$class = "databox data";
|
||||
}else{
|
||||
}
|
||||
else {
|
||||
$class = "databox filters";
|
||||
}
|
||||
|
||||
|
@ -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'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user