Merge branch '1168-icon-in-agents-know-if-is-in-planned-downtime-dev' into 'develop'

Added image to planned downtime

See merge request !772
This commit is contained in:
vgilc 2017-09-11 09:32:49 +02:00
commit fecd2b14e4
2 changed files with 13 additions and 0 deletions

View File

@ -561,10 +561,23 @@ if ($agents !== false) {
'<span style="font-size: 7pt" title="' . $agent["nombre"] . '">'.$agent["alias"].'</span>' .
"</a>";
echo "</strong>";
$in_planned_downtime = db_get_value_filter('id', 'tplanned_downtime_agents', array('id_agent' => $agent["id_agente"]));
if ($agent["disabled"]) {
ui_print_help_tip(__('Disabled'));
if (!$in_planned_downtime) {
echo "</em>";
}
}
if ($in_planned_downtime) {
ui_print_help_tip (__('Agent in planned downtime'), false, 'images/minireloj-16.png');
echo "</em>";
}
echo '</span><div class="left actions" style="visibility: hidden; clear: left">';
if (check_acl ($config["id_user"], $agent["id_grupo"], "AW")) {
echo '<a href="index.php?sec=gagente&

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B