new function that adds a border to the image if the status is warning - #2723
This commit is contained in:
parent
f0e1d61f6d
commit
d36c10fa08
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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>';
|
||||
|
|
Loading…
Reference in New Issue