From 2e9fb633a8d131844b4f5a30b3b0fbb53f0e67ce Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 9 Dec 2014 15:57:15 +0100 Subject: [PATCH] Working in the massive action for the tags in policies. Ticket: #1576 --- pandora_console/include/functions_html.php | 17 +++++++++++++---- pandora_console/include/functions_tags.php | 7 ++++--- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 0caae8d64b..4360409e56 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -1466,13 +1466,22 @@ function html_print_table (&$table, $return = false) { if (!isset ($style[$key])) { $style[$key] = ''; } - - $output .= ''. $item .''."\n"; + + $output .= '' . + $item . '' . "\n"; } - $output .= ''."\n"; + $output .= '' . "\n"; } } - $output .= ''."\n"; + $output .= '' . "\n"; if ($return) return $output; diff --git a/pandora_console/include/functions_tags.php b/pandora_console/include/functions_tags.php index 5c52988ecd..4ab0aa5656 100644 --- a/pandora_console/include/functions_tags.php +++ b/pandora_console/include/functions_tags.php @@ -532,7 +532,8 @@ function tags_get_policy_module_tags ($id_policy_module) { if (empty($id_policy_module)) return false; - $tags = db_get_all_rows_filter('ttag_policy_module', array('id_policy_module' => $id_policy_module), false); + $tags = db_get_all_rows_filter('ttag_policy_module', + array('id_policy_module' => $id_policy_module), false); if ($tags === false) return false; @@ -559,8 +560,8 @@ function tags_get_all_tags ($return_url = false) { $return = array(); foreach ($tags as $tag) { $return[$tag['id_tag']] = $tag['name']; - if($return_url) { - $return[$tag['id_tag']] .= ' '.$tag['url']; + if ($return_url) { + $return[$tag['id_tag']] .= ' ' . $tag['url']; } }