From 6827e5fbd4579fec00a3e6b1380296c506fa9cc4 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 10 May 2010 10:04:50 +0000 Subject: [PATCH] 2010-05-10 Sergio Martin * godmode/agentes/massive_operations.php: Fixed the header using now the print_header function for bug: 2999269 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2680 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++ .../godmode/agentes/massive_operations.php | 82 +++++++++++-------- 2 files changed, 52 insertions(+), 36 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 9c21263924..be74ebd47a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-05-10 Sergio Martin + + * godmode/agentes/massive_operations.php: Fixed the + header using now the print_header function for + bug: 2999269 + 2010-05-09 Raúl Mateos * godmode/setup/file_manager.php: Changed deprecated split() function to diff --git a/pandora_console/godmode/agentes/massive_operations.php b/pandora_console/godmode/agentes/massive_operations.php index 8906034b8f..7d37584241 100644 --- a/pandora_console/godmode/agentes/massive_operations.php +++ b/pandora_console/godmode/agentes/massive_operations.php @@ -29,47 +29,57 @@ require_once ('include/functions_modules.php'); $tab = (string) get_parameter ('tab', 'copy_modules'); -$img_style = array ("class" => "top", "width" => 16); +/* Copy modules */ +$copymoduletab['text'] = '' + . print_image ("images/copy.png", true, array ("title" => __('Copy modules'))) + . ""; +if($tab == 'copy_modules') + $copymoduletab['active'] = true; +else + $copymoduletab['active'] = false; + +/* Edit Modules */ +$editmoduletab['text'] = '' + . print_image ("images/edit.png", true, array ("title" => __('Edit modules'))) + . ""; +if($tab == 'edit_modules') + $editmoduletab['active'] = true; +else + $editmoduletab['active'] = false; + +/* Delete Modules */ +$deletemoduletab['text'] = '' + . print_image ("images/delete_modules.png", true, array ("title" => __('Delete modules'))) + . ""; +if($tab == 'delete_modules') + $deletemoduletab['active'] = true; +else + $deletemoduletab['active'] = false; -echo '"; - -echo '
 
'; - -echo '

'.__('Agent configuration'). ' » '. __('Massive operations').'

'; switch ($tab) { case 'delete_alerts': require_once ('godmode/agentes/massive_delete_alerts.php');