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;
|
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.
|
* Powerful debug function that also shows a backtrace.
|
||||||
*
|
*
|
||||||
|
|
|
@ -676,9 +676,16 @@ else {
|
||||||
}
|
}
|
||||||
$comments_help_tip = "";
|
$comments_help_tip = "";
|
||||||
if (!empty($event_user_comment_str)) {
|
if (!empty($event_user_comment_str)) {
|
||||||
|
|
||||||
|
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);
|
$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>';
|
$data[$i] = '<span id="comment_header_' . $event['id_evento'] . '">' . $comments_help_tip . '</span>';
|
||||||
$table->cellclass[count($table->data)][$i] = $myclass;
|
$table->cellclass[count($table->data)][$i] = $myclass;
|
||||||
$i++;
|
$i++;
|
||||||
|
|
Loading…
Reference in New Issue