new function that adds a border to the image if the status is warning - #2723

This commit is contained in:
tatiana.llorente@artica.es 2018-09-10 13:22:02 +02:00
parent f0e1d61f6d
commit d36c10fa08
3 changed files with 25 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1952,6 +1952,23 @@ function ui_print_help_tip ($text, $return = false, $img = 'images/tip.png', $is
echo $output;
}
function ui_print_help_tip_border ($text, $return = false, $img = 'images/tip_border.png', $is_relative = false) {
$output =
'<a href="javascript:" class="tip" >' .
html_print_image (
$img,
true,
array('title' => $text),
false,
$is_relative && is_metaconsole()
) .
'</a>';
if ($return)
return $output;
echo $output;
}
/**
* Powerful debug function that also shows a backtrace.
*

View File

@ -676,7 +676,14 @@ else {
}
$comments_help_tip = "";
if (!empty($event_user_comment_str)) {
$comments_help_tip = ui_print_help_tip($event_user_comment_str, true);
if($myclass == 'datos_yellow'){
$comments_help_tip = ui_print_help_tip_border($event_user_comment_str, true);
}
else{
$comments_help_tip = ui_print_help_tip($event_user_comment_str, true);
}
}
$data[$i] = '<span id="comment_header_' . $event['id_evento'] . '">' . $comments_help_tip . '</span>';