From bea6859e362bec56b24d2dbda83192320221c25e Mon Sep 17 00:00:00 2001 From: vgilc Date: Thu, 12 Jan 2012 15:05:25 +0000 Subject: [PATCH] 2012-01-12 Vanessa Gil * godmode/netflow/nf_edit.php godmode/netflow/nf_edit.php: Added column group to report list. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5361 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/godmode/netflow/nf_edit.php | 19 ++++++++++++------ pandora_console/godmode/netflow/nf_report.php | 20 +++++++++++++------ 3 files changed, 33 insertions(+), 12 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 4febf7204e..361910a13a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2012-01-12 Vanessa Gil + + * godmode/netflow/nf_edit.php + godmode/netflow/nf_edit.php: Added column group + to report list. + 2012-01-12 Vanessa Gil * include/functions_graph.php include/functions_netflow.php: translate netflow titles. diff --git a/pandora_console/godmode/netflow/nf_edit.php b/pandora_console/godmode/netflow/nf_edit.php index 95be1c1856..09d3ff88a1 100644 --- a/pandora_console/godmode/netflow/nf_edit.php +++ b/pandora_console/godmode/netflow/nf_edit.php @@ -106,18 +106,21 @@ $filters = db_get_all_rows_sql($sql); if ($filters === false) $filters = array (); -$table->width = '70%'; +$table->width = '90%'; $table->head = array (); $table->head[0] = __('Name'); -$table->head[1] = __('Action') . +$table->head[1] = __('Group'); +$table->head[2] = __('Action') . html_print_checkbox('all_delete', 0, false, true, false, 'check_all_checkboxes();'); $table->style = array (); $table->style[0] = 'font-weight: bold'; $table->align = array (); +$table->align[1] = 'center'; $table->align[2] = 'center'; $table->size = array (); -$table->size[0] = '90%'; -$table->size[1] = '80px'; +$table->size[0] = '60%'; +$table->size[1] = '30%'; +$table->size[2] = '80px'; $table->data = array (); $total_filters = db_get_all_rows_filter ('tnetflow_filter', false, 'COUNT(*) AS total'); @@ -129,8 +132,12 @@ foreach ($filters as $filter) { $data = array (); $data[0] = ''.$filter['id_name'].''; - - $data[1] = "" . html_print_image('images/cross.png', true, array('title' => __('Delete'))) . "" . html_print_checkbox_extended ('delete_multiple[]', $filter['id_sg'], false, false, '', 'class="check_delete"', true); diff --git a/pandora_console/godmode/netflow/nf_report.php b/pandora_console/godmode/netflow/nf_report.php index 232dd9f576..ef8bd24b83 100644 --- a/pandora_console/godmode/netflow/nf_report.php +++ b/pandora_console/godmode/netflow/nf_report.php @@ -93,21 +93,24 @@ $reports = db_get_all_rows_sql($sql); if ($reports === false) $reports = array(); -$table->width = '80%'; +$table->width = '90%'; $table->head = array (); $table->head[0] = __('Report name'); $table->head[1] = __('Description'); -$table->head[2] = __('Action') . +$table->head[2] = __('Group'); +$table->head[3] = __('Action') . html_print_checkbox('all_delete', 0, false, true, false, 'check_all_checkboxes();'); $table->style = array (); $table->style[0] = 'font-weight: bold'; $table->align = array (); $table->align[2] = 'center'; +$table->align[3] = 'center'; $table->size = array (); -$table->size[0] = '50%'; -$table->size[1] = '40%'; -$table->size[2] = '50px'; +$table->size[0] = '40%'; +$table->size[1] = '30%'; +$table->size[2] = '20%'; +$table->size[3] = '50px'; $table->data = array (); $total_reports = db_get_all_rows_filter ('tnetflow_report', false, 'COUNT(*) AS total'); @@ -123,7 +126,12 @@ $total_reports = $total_reports[0]['total']; $data[1] = $report['description']; - $data[2] = "" . html_print_image('images/cross.png', true, array('title' => __('Delete'))) . "" . html_print_checkbox_extended ('delete_multiple[]', $report['id_report'], false, false, '', 'class="check_delete"', true);