change default custom logo and fix module search view bug data column

This commit is contained in:
enriquecd 2016-10-04 15:28:12 +02:00
parent c8fe3b9268
commit a8c583cbe5
5 changed files with 10 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -1046,12 +1046,8 @@ function config_process_config () {
if (!isset ($config["custom_logo"])) { if (!isset ($config["custom_logo"])) {
if(enterprise_installed()){
config_update_value ('custom_logo', 'pandora_logo_head_4.png'); config_update_value ('custom_logo', 'pandora_logo_head_4.png');
}
else{
config_update_value ('custom_logo', 'pandora_logo_head_3.png');
}
} }
if (!isset ($config["custom_logo_login"])) { if (!isset ($config["custom_logo_login"])) {
config_update_value ('custom_logo_login', 'login_logo.png'); config_update_value ('custom_logo_login', 'login_logo.png');

View File

@ -76,7 +76,7 @@ $(document).ready (function () {
// Creacion de ventana modal y botones // Creacion de ventana modal y botones
$(".publienterprise").click (function () { $(".publienterprise").click (function () {
$('body').append( "<div id='opacidad' style='position:fixed;background:black;opacity:0.6;z-index:1'></div>" ); $('body').append( "<div id='opacidad'></div>" );
jQuery.get ("ajax.php", jQuery.get ("ajax.php",
{ {
"page": "general/alert_enterprise", "page": "general/alert_enterprise",

View File

@ -105,15 +105,15 @@ else {
} }
elseif ($status_sql['estado'] == 0) { elseif ($status_sql['estado'] == 0) {
$statusCell = ui_print_status_image(STATUS_MODULE_OK, $statusCell = ui_print_status_image(STATUS_MODULE_OK,
__('NORMAL') . ": " . $module["datos"], true); __('NORMAL') . ": " . modules_get_last_value($module["id_agente_modulo"]), true);
} }
elseif ($status_sql['estado'] == 1) { elseif ($status_sql['estado'] == 1) {
$statusCell = ui_print_status_image(STATUS_MODULE_CRITICAL, $statusCell = ui_print_status_image(STATUS_MODULE_CRITICAL,
__('CRITICAL') . ": " . $module["datos"], true); __('CRITICAL') . ": " . modules_get_last_value($module["id_agente_modulo"]), true);
} }
elseif ($status_sql['estado'] == 2) { elseif ($status_sql['estado'] == 2) {
$statusCell = ui_print_status_image(STATUS_MODULE_WARNING, $statusCell = ui_print_status_image(STATUS_MODULE_WARNING,
__('WARNING') . ": " . $module["datos"], true); __('WARNING') . ": " . modules_get_last_value($module["id_agente_modulo"]), true);
} }
else { else {
$last_status = modules_get_agentmodule_last_status($module['id_agente_modulo']); $last_status = modules_get_agentmodule_last_status($module['id_agente_modulo']);
@ -122,21 +122,21 @@ else {
$statusCell = ui_print_status_image( $statusCell = ui_print_status_image(
STATUS_MODULE_OK, STATUS_MODULE_OK,
__('UNKNOWN') . " - " . __('Last status') . __('UNKNOWN') . " - " . __('Last status') .
" " . __('NORMAL') .": " . $module["datos"], " " . __('NORMAL') .": " . modules_get_last_value($module["id_agente_modulo"]),
true); true);
break; break;
case 1: case 1:
$statusCell = ui_print_status_image( $statusCell = ui_print_status_image(
STATUS_MODULE_CRITICAL, STATUS_MODULE_CRITICAL,
__('UNKNOWN') . " - " . __('Last status') . __('UNKNOWN') . " - " . __('Last status') .
" " . __('CRITICAL') . ": " . $module["datos"], " " . __('CRITICAL') . ": " . modules_get_last_value($module["id_agente_modulo"]),
true); true);
break; break;
case 2: case 2:
$statusCell = ui_print_status_image( $statusCell = ui_print_status_image(
STATUS_MODULE_WARNING, STATUS_MODULE_WARNING,
__('UNKNOWN') . " - " . __('Last status') . __('UNKNOWN') . " - " . __('Last status') .
" " . __('WARNING') . ": " . $module["datos"], " " . __('WARNING') . ": " . modules_get_last_value($module["id_agente_modulo"]),
true); true);
break; break;
} }
@ -176,8 +176,8 @@ else {
array("border" => "0", "alt" => "")) . "</a>"; array("border" => "0", "alt" => "")) . "</a>";
} }
if (is_numeric($module["datos"])) { if (is_numeric(modules_get_last_value($module["id_agente_modulo"]))) {
$dataCell = format_numeric($module["datos"]); $dataCell = format_numeric(modules_get_last_value($module["id_agente_modulo"]));
} }
else { else {
$dataCell = ui_print_module_string_value( $dataCell = ui_print_module_string_value(