dyn style ui_print_help_tip

This commit is contained in:
fbsanchez 2019-05-29 17:34:11 +02:00
parent 3c730fbedf
commit 121ae89b1d
3 changed files with 9 additions and 18 deletions

View File

@ -2267,6 +2267,7 @@ function ui_print_session_action_icon($action, $return=false)
* @param boolean $return Whether to return an output string or echo now.
* @param string $img Displayed image.
* @param boolean $is_relative Print image in relative way.
* @param string $style Specific style.
*
* @return string HTML code if return parameter is true.
*/
@ -2274,9 +2275,11 @@ function ui_print_help_tip(
$text,
$return=false,
$img='images/tip_help.png',
$is_relative=false
$is_relative=false,
$style=''
) {
$output = '<a href="javascript:" class="tip" >'.html_print_image(
$output = '<a href="javascript:" class="tip" style="'.$style.'" >';
$output .= html_print_image(
$img,
true,
['title' => $text],

View File

@ -2939,7 +2939,6 @@ a.tip {
a.tip > img {
margin-left: 2px;
margin-right: 2px;
position: absolute;
margin-top: -3px;
}

View File

@ -605,14 +605,6 @@ if (!empty($network_interfaces)) {
'class' => 'closed',
'style' => 'cursor:pointer;',
];
$table_interface->head[0] = html_print_image(
'images/arrow_down_green.png',
true,
$options
).'&nbsp;&nbsp;';
$table_interface->head[0] .= '<span style="vertical-align: middle; font-weight:bold;">'.__('Interface information').' (SNMP)</span>';
$table_interface->head_colspan = [];
$table_interface->head_colspan[0] = 8;
$table_interface->data = [];
$event_text_cont = 0;
@ -747,12 +739,6 @@ if (!empty($network_interfaces)) {
?>
<script type="text/javascript">
$(document).ready (function () {
$("#agent_interface_info").find("tbody").hide();
$("#agent_interface_info").find("thead").click (function () {
close_table('#agent_interface_info');
})
.css('cursor', 'pointer');
$("#agent_data_main").find("thead").click (function () {
close_table('#agent_data_main');
})
@ -846,5 +832,8 @@ if ($table_access_rate) {
echo $agent_incidents;
if (isset($table_interface)) {
echo html_print_table($table_interface, true);
ui_toggle(
'<div class="white_table_graph_content">'.html_print_table($table_interface, true).'</div>',
'<b>'.__('Interface information (SNMP)').'</b>'
);
}