mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch '2723-Fallo-hint-en-eventos' into 'develop'
new function that adds a border to the image if the status is warning - #2723 See merge request artica/pandorafms!1743
This commit is contained in:
commit
9b4eeb5c84
BIN
pandora_console/images/tip_border.png
Executable file
BIN
pandora_console/images/tip_border.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
@ -1968,6 +1968,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.
|
||||||
*
|
*
|
||||||
|
@ -680,7 +680,14 @@ else {
|
|||||||
}
|
}
|
||||||
$comments_help_tip = "";
|
$comments_help_tip = "";
|
||||||
if (!empty($event_user_comment_str)) {
|
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>';
|
$data[$i] = '<span id="comment_header_' . $event['id_evento'] . '">' . $comments_help_tip . '</span>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user