mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
#12376 fixed color group and fixed status color in heatmap
This commit is contained in:
parent
cacb524ece
commit
7223423dc7
@ -148,11 +148,16 @@ class Groups extends Element
|
|||||||
$cont = 1;
|
$cont = 1;
|
||||||
foreach ($modules as $key => $value) {
|
foreach ($modules as $key => $value) {
|
||||||
$module_id = $value['id_agente_modulo'];
|
$module_id = $value['id_agente_modulo'];
|
||||||
$db_status = modules_get_agentmodule_status($module_id);
|
$module_status = db_get_row(
|
||||||
|
'tagente_estado',
|
||||||
|
'id_agente_modulo',
|
||||||
|
$module_id,
|
||||||
|
);
|
||||||
|
|
||||||
$module_value = modules_get_last_value($module_id);
|
$module_value = modules_get_last_value($module_id);
|
||||||
$status = '';
|
$status = '';
|
||||||
$title = '';
|
$title = '';
|
||||||
modules_get_status($module_id, $db_status, $module_value, $status, $title);
|
modules_get_status($module_id, $module_status['estado'], $module_value, $status, $title);
|
||||||
switch ($status) {
|
switch ($status) {
|
||||||
case STATUS_MODULE_NO_DATA:
|
case STATUS_MODULE_NO_DATA:
|
||||||
// Not init status.
|
// Not init status.
|
||||||
|
@ -246,7 +246,7 @@
|
|||||||
<div class="subtitle">
|
<div class="subtitle">
|
||||||
<?php echo __('Active alerts'); ?>
|
<?php echo __('Active alerts'); ?>
|
||||||
</div>
|
</div>
|
||||||
<a href="index.php?sec=galertas&sec2=godmode/alerts/alert_list"><?php echo $Alerts->getActiveAlerts(); ?></a>
|
<a href="index.php?sec=galertas&sec2=godmode/alerts/alert_list&status_alert=all_enabled"><?php echo $Alerts->getActiveAlerts(); ?></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if ($Alerts->checkAclUserList() === true) : ?>
|
<?php if ($Alerts->checkAclUserList() === true) : ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user