diff --git a/pandora_console/include/ajax/module.php b/pandora_console/include/ajax/module.php
index 1e529c487c..278774b8cd 100755
--- a/pandora_console/include/ajax/module.php
+++ b/pandora_console/include/ajax/module.php
@@ -1155,7 +1155,9 @@ if (check_login()) {
);
}
+ $data[2] .= '';
$data[2] .= ui_print_truncate_text($module['nombre'], 'module_medium', false, true, true, '…', 'font-size: 9pt;');
+ $data[2] .= '';
if (empty($module['extended_info']) === false) {
$data[2] .= ui_print_help_tip($module['extended_info'], true, '/images/default_list.png');
}
diff --git a/pandora_console/operation/search_modules.getdata.php b/pandora_console/operation/search_modules.getdata.php
index e83c6035ef..a278ca8cd0 100644
--- a/pandora_console/operation/search_modules.getdata.php
+++ b/pandora_console/operation/search_modules.getdata.php
@@ -19,17 +19,25 @@ require_once $config['homedir'].'/include/functions_users.php';
$searchModules = check_acl($config['id_user'], 0, 'AR');
-$selectModuleNameUp = '';
-$selectModuleNameDown = '';
-$selectAgentNameUp = '';
-$selectAgentNameDown = '';
+if ($config['style'] === 'pandora_black') {
+ $selectModuleNameUp = '';
+ $selectModuleNameDown = '';
+ $selectAgentNameUp = '';
+ $selectAgentNameDown = '';
+} else {
+ $selectModuleNameUp = '_black';
+ $selectModuleNameDown = '_black';
+ $selectAgentNameUp = '_black';
+ $selectAgentNameDown = '_black';
+}
+
$is_admin = (bool) db_get_value('is_admin', 'tusuario', 'id_user', $config['id_user']);
switch ($sortField) {
case 'module_name':
switch ($sort) {
case 'up':
- $selectModuleNameUp = $selected;
+ $selectModuleNameUp = $selected_module;
$order = [
'field' => 'module_name',
'order' => 'ASC',
@@ -37,7 +45,7 @@ switch ($sortField) {
break;
case 'down':
- $selectModuleNameDown = $selected;
+ $selectModuleNameDown = $selected_module;
$order = [
'field' => 'module_name',
'order' => 'DESC',
@@ -49,7 +57,7 @@ switch ($sortField) {
case 'agent_name':
switch ($sort) {
case 'up':
- $selectAgentNameUp = $selected;
+ $selectAgentNameUp = $selected_module;
$order = [
'field' => 'agent_name',
'order' => 'ASC',
@@ -57,7 +65,7 @@ switch ($sortField) {
break;
case 'down':
- $selectAgentNameDown = $selected;
+ $selectAgentNameDown = $selected_module;
$order = [
'field' => 'agent_name',
'order' => 'DESC',
@@ -67,7 +75,7 @@ switch ($sortField) {
break;
default:
- $selectModuleNameUp = $selected;
+ $selectModuleNameUp = $selected_module;
$order = [
'field' => 'module_name',
'order' => 'ASC',
diff --git a/pandora_console/operation/search_modules.php b/pandora_console/operation/search_modules.php
index 6d35064b68..41d545928f 100644
--- a/pandora_console/operation/search_modules.php
+++ b/pandora_console/operation/search_modules.php
@@ -30,10 +30,9 @@ if (!$modules || !$searchModules) {
$table->cellspacing = 4;
$table->width = '98%';
$table->class = 'info_table';
-
$table->head = [];
- $table->head[0] = __('Module').' '.html_print_image('images/sort_up.png', true, ['style' => $selectModuleNameUp]).''.html_print_image('images/sort_down.png', true, ['style' => $selectModuleNameDown]).'';
- $table->head[1] = __('Agent').' '.html_print_image('images/sort_up.png', true, ['style' => $selectAgentNameUp]).''.html_print_image('images/sort_down.png', true, ['style' => $selectAgentNameDown]).'';
+ $table->head[0] = __('Module').' '.html_print_image('images/sort_up'.$selectModuleNameUp.'.png', true).''.html_print_image('images/sort_down'.$selectModuleNameDown.'.png', true).'';
+ $table->head[1] = __('Agent').' '.html_print_image('images/sort_up'.$selectAgentNameUp.'.png', true).''.html_print_image('images/sort_down'.$selectAgentNameDown.'.png', true).'';
$table->head[2] = __('Type');
$table->head[3] = __('Interval');
$table->head[4] = __('Status');
@@ -80,6 +79,9 @@ if (!$modules || !$searchModules) {
$module['datos'] = modules_get_last_value($module['id_agente_modulo']);
$module['module_name'] = $module['nombre'];
+ $linked_module_name = '';
+ $linked_module_name .= $module['module_name'];
+ $linked_module_name .= '';
// To search the monitor status
$status_sql = sprintf('SELECT estado from tagente_estado where id_agente_modulo ='.$module['id_agente_modulo']);
$status_sql = db_process_sql($status_sql);
@@ -226,7 +228,7 @@ if (!$modules || !$searchModules) {
array_push(
$table->data,
[
- $module['module_name'],
+ $linked_module_name,
$agentCell,
$typeCell,
$intervalCell,
diff --git a/pandora_console/operation/search_results.php b/pandora_console/operation/search_results.php
index cef9788be0..76638e3525 100644
--- a/pandora_console/operation/search_results.php
+++ b/pandora_console/operation/search_results.php
@@ -60,7 +60,7 @@ $order = null;
$sortField = get_parameter('sort_field');
$sort = get_parameter('sort', 'none');
$selected = 'border: 1px solid black;';
-
+$selected_module = '_green';
if ($searchMain) {
$main_tab = [
'text' => "".html_print_image(