From aa49283379d2b3df3476335667343026b0d3f5d7 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 28 Feb 2012 12:17:57 +0000 Subject: [PATCH] 2012-02-28 Miguel de Dios * operation/events/events.php, operation/agentes/datos_agente.php, operation/agentes/custom_fields.php, operation/agentes/alerts_status.functions.php, operation/search_reports.php, operation/search_modules.php: : cleaned source code style. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5662 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ .../operation/agentes/alerts_status.functions.php | 3 ++- pandora_console/operation/agentes/custom_fields.php | 6 ++++-- pandora_console/operation/events/events.php | 4 ---- pandora_console/operation/search_modules.php | 3 ++- pandora_console/operation/search_reports.php | 3 ++- 6 files changed, 17 insertions(+), 9 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 37e8ee8acd..58a9effce8 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2012-02-28 Miguel de Dios + + * operation/events/events.php, operation/agentes/datos_agente.php, + operation/agentes/custom_fields.php, + operation/agentes/alerts_status.functions.php, operation/search_reports.php, + operation/search_modules.php: : cleaned source code style. + 2012-02-28 Miguel de Dios * godmode/alerts/configure_alert_action.php, diff --git a/pandora_console/operation/agentes/alerts_status.functions.php b/pandora_console/operation/agentes/alerts_status.functions.php index da402c8bd0..812c4cf28f 100755 --- a/pandora_console/operation/agentes/alerts_status.functions.php +++ b/pandora_console/operation/agentes/alerts_status.functions.php @@ -73,7 +73,8 @@ function printFormFilterAlert($id_group, $filter, $free_search, $url, $filter_st if($return) { return $data; - }else{ + } + else { echo $data; } } diff --git a/pandora_console/operation/agentes/custom_fields.php b/pandora_console/operation/agentes/custom_fields.php index 2f5f402a65..fb77f859ae 100644 --- a/pandora_console/operation/agentes/custom_fields.php +++ b/pandora_console/operation/agentes/custom_fields.php @@ -42,7 +42,8 @@ $fields = db_get_all_fields_in_table('tagent_custom_fields'); if($fields === false) { $fields = array(); echo "
". __("No fields defined"). "
"; -} else { +} +else { $table->width = '98%'; $table->head = array (); $table->head[0] = __('Field'); @@ -59,7 +60,8 @@ if($fields === false) { if($field['display_on_front']) { $data[1] = html_print_image('images/tick.png', true); - }else { + } + else { $data[1] = html_print_image('images/delete.png', true); } diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 54f9b975cf..5e15ceff56 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -429,10 +429,6 @@ $(document).ready( function() { $("a.validate_event").click (function () { $tr = $(this).parents ("tr"); - - - - id = this.id.split ("-").pop (); var comment = $('#textarea_comment_'+id).val(); var select_validate = $('#select_validate_'+id).val(); // 1 validate, 2 in process, 3 add comment diff --git a/pandora_console/operation/search_modules.php b/pandora_console/operation/search_modules.php index 1278159acc..960f7d0fb6 100644 --- a/pandora_console/operation/search_modules.php +++ b/pandora_console/operation/search_modules.php @@ -256,7 +256,8 @@ else { if ($module['estado'] == 3){ $option = array ("html_attr" => 'class="redb"'); - } else { + } + else { $option = array (); } $timestampCell = ui_print_timestamp ($module["utimestamp"], true, $option); diff --git a/pandora_console/operation/search_reports.php b/pandora_console/operation/search_reports.php index 67f36690a4..8bae0512ad 100755 --- a/pandora_console/operation/search_reports.php +++ b/pandora_console/operation/search_reports.php @@ -83,7 +83,8 @@ else { foreach ($reports as $report) { if($linkReport) { $reportstring = "" . $report['name'] . ""; - } else { + } + else { $reportstring = $report['name']; } $data = array(