From d36c10fa089858a7ca1e2a8fcd4bc8ebe117c4ac Mon Sep 17 00:00:00 2001 From: "tatiana.llorente@artica.es" Date: Mon, 10 Sep 2018 13:22:02 +0200 Subject: [PATCH] new function that adds a border to the image if the status is warning - #2723 --- pandora_console/images/tip_border.png | Bin 0 -> 1281 bytes pandora_console/include/functions_ui.php | 17 +++++++++++++++++ .../operation/events/events.build_table.php | 9 ++++++++- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 pandora_console/images/tip_border.png diff --git a/pandora_console/images/tip_border.png b/pandora_console/images/tip_border.png new file mode 100755 index 0000000000000000000000000000000000000000..a7a9663a311034bc1f1a959ae01f2b80ed700f08 GIT binary patch literal 1281 zcmeAS@N?(olHy`uVBq!ia0vp^d_c_2!3HG#TlXXZDajJoh?3y^w370~qErUQl>DSr z1<%~X^wgl##FWaylc_cg49rTIArU1JzCKpT`MG+DAT@dwxdlMo3=B5*6$OdO*{LN8 zNvY|XdA3ULckfqH$V{%1*XSQL?vFu&J;D8jzb> zlBiITo0C^;Rbi_HHrEQs1_|pcDS(xfWZNo192Makpx~Tel&WB=XRMoSU}&gdW~OIo zVrph)sH0$HU}&Uo07PcGh9*{~W>!Y#3Q(W~w5=#5%__*n4QdyVXRDM^Qc_^0uU}qX zu2*iXmtT~wZ)j<02{OaTNEfI=x41H|B(Xv_uUHvof=g;~a#3bMNoIbY0?5R~r2Ntn zTP2`NAzsKWfE$}v3=Jk=fazBx7U&!58GyV5Q|Rl9UukYGTy=3tP%6T`SPd=?sVqp< z4@xc0FD*(2MqHXQ$f^P>=c3falKi5O{QMkPCx(xwAm%KD6=dz#jPkmR{`v0t4!Q(alvUG zRBsASw-~$P)TknMZjdOc->c+fq}8q)5S5Q z;#SEdZ*QhRk>mfbZ=bT%F{z((>I98wmsHk=i#qOXOMD+WsF zYH4H(+D(XaGwEFK^V~0enTYW256{n3{y8_Zc&E>_)GgMH4hx!ng1s#NUBsI9u2>Q-$sGP^|JjAvv+Ujq7Jca5yD;i+Y??}F>PtGePWJ_H)9D1BQt=W5oIhyugj zuMUd@@7oqA*F16ZP5Qj$@yq$LQ=JbQcWxGVZvSs}M$lT9y_~mJIloo2dTaai%CTFz z?=FSCInK7>Np(|s#F203G&a3YGe5ZU+UdaA#peXD$z3umT|a64@_hT3^ZxkkeHY!p$k3C#FudDT^%1C0@^tlcS?83{1OT=M&XNEC literal 0 HcmV?d00001 diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 54334e4ecf..d43e2a6e22 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -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 = + '' . + html_print_image ( + $img, + true, + array('title' => $text), + false, + $is_relative && is_metaconsole() + ) . + ''; + + if ($return) + return $output; + echo $output; +} + /** * Powerful debug function that also shows a backtrace. * diff --git a/pandora_console/operation/events/events.build_table.php b/pandora_console/operation/events/events.build_table.php index 84b995af28..a26572f9e0 100644 --- a/pandora_console/operation/events/events.build_table.php +++ b/pandora_console/operation/events/events.build_table.php @@ -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] = '' . $comments_help_tip . '';