mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
fixed visual errors and console
This commit is contained in:
parent
025cc01830
commit
713fbd5368
@ -757,7 +757,7 @@ $table->data[2][1] = '<b>'.__('Auth user').'</b>';
|
|||||||
$table->data[2][2] = html_print_input_text ('snmp3_auth_user', $snmp3_auth_user, '', 15, 60, true);
|
$table->data[2][2] = html_print_input_text ('snmp3_auth_user', $snmp3_auth_user, '', 15, 60, true);
|
||||||
$table->data[2][3] = '<b>'.__('Auth password').'</b>';
|
$table->data[2][3] = '<b>'.__('Auth password').'</b>';
|
||||||
$table->data[2][4] = html_print_input_password ('snmp3_auth_pass', $snmp3_auth_pass, '', 15, 60, true);
|
$table->data[2][4] = html_print_input_password ('snmp3_auth_pass', $snmp3_auth_pass, '', 15, 60, true);
|
||||||
$table->data[2][4] .= html_print_input_hidden('active_snmp_v3', 0, true);
|
$table->data[2][4] .= html_print_input_hidden_extended('active_snmp_v3', 0, 'active_snmp_v3_awse', true);
|
||||||
|
|
||||||
$table->data[5][0] = '<b>'.__('Privacy method').'</b>';
|
$table->data[5][0] = '<b>'.__('Privacy method').'</b>';
|
||||||
$table->data[5][1] = html_print_select(array('DES' => __('DES'), 'AES' => __('AES')), 'snmp3_privacy_method', $snmp3_privacy_method, '', '', '', true);
|
$table->data[5][1] = html_print_select(array('DES' => __('DES'), 'AES' => __('AES')), 'snmp3_privacy_method', $snmp3_privacy_method, '', '', '', true);
|
||||||
|
@ -474,7 +474,7 @@ $table->data[2][1] = '<b>'.__('Auth user').'</b>';
|
|||||||
$table->data[2][2] = html_print_input_text ('snmp3_auth_user', $snmp3_auth_user, '', 15, 60, true);
|
$table->data[2][2] = html_print_input_text ('snmp3_auth_user', $snmp3_auth_user, '', 15, 60, true);
|
||||||
$table->data[2][3] = '<b>'.__('Auth password').'</b>';
|
$table->data[2][3] = '<b>'.__('Auth password').'</b>';
|
||||||
$table->data[2][4] = html_print_input_password ('snmp3_auth_pass', $snmp3_auth_pass, '', 15, 60, true);
|
$table->data[2][4] = html_print_input_password ('snmp3_auth_pass', $snmp3_auth_pass, '', 15, 60, true);
|
||||||
$table->data[2][4] .= html_print_input_hidden('active_snmp_v3', 0, true);
|
$table->data[2][4] .= html_print_input_hidden_extended('active_snmp_v3', 0, 'active_snmp_v3_awsie', true);
|
||||||
|
|
||||||
$table->data[5][0] = '<b>'.__('Privacy method').'</b>';
|
$table->data[5][0] = '<b>'.__('Privacy method').'</b>';
|
||||||
$table->data[5][1] = html_print_select(array('DES' => __('DES'), 'AES' => __('AES')), 'snmp3_privacy_method', $snmp3_privacy_method, '', '', '', true);
|
$table->data[5][1] = html_print_select(array('DES' => __('DES'), 'AES' => __('AES')), 'snmp3_privacy_method', $snmp3_privacy_method, '', '', '', true);
|
||||||
|
@ -134,19 +134,30 @@ $table_simple->id = 'simple';
|
|||||||
$table_simple->width = '100%';
|
$table_simple->width = '100%';
|
||||||
$table_simple->class = 'databox';
|
$table_simple->class = 'databox';
|
||||||
$table_simple->data = array ();
|
$table_simple->data = array ();
|
||||||
$table_simple->colspan = array ();
|
|
||||||
$table_simple->style = array ();
|
$table_simple->style = array ();
|
||||||
$table_simple->style[0] = 'font-weight: bold; width: 15%;';
|
$table_simple->style[0] = 'font-weight: bold; width: 25%;';
|
||||||
$table_simple->style[1] = 'width: 35%';
|
$table_simple->style[1] = 'width: 25%';
|
||||||
$table_simple->style[2] = 'font-weight: bold; width: 25%;';
|
$table_simple->style[2] = 'font-weight: bold; width: 25%;';
|
||||||
$table_simple->style[3] = 'width: 25%';
|
$table_simple->style[3] = 'width: 25%';
|
||||||
$table_simple->cellclass = array();
|
$table_simple->cellclass = array();
|
||||||
|
|
||||||
|
$table_simple->colspan = array ();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#$table_simple->colspan[4][1] = 3;
|
|
||||||
$table_simple->colspan[5][1] = 3;
|
|
||||||
$table_simple->colspan[6][1] = 3;
|
$table_simple->colspan[6][1] = 3;
|
||||||
|
|
||||||
|
$table_simple->rowspan = array ();
|
||||||
|
if(strstr($page, "policy_modules")){
|
||||||
|
$table_simple->rowspan[3][2] = 3;
|
||||||
|
$table_simple->colspan[3][2] = 2;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$table_simple->rowspan[4][2] = 3;
|
||||||
|
$table_simple->colspan[4][2] = 2;
|
||||||
|
$table_simple->colspan[5][1] = 3;
|
||||||
|
}
|
||||||
|
|
||||||
$table_simple->data[0][0] = __('Name');
|
$table_simple->data[0][0] = __('Name');
|
||||||
$table_simple->data[0][1] = html_print_input_text_extended ('name',
|
$table_simple->data[0][1] = html_print_input_text_extended ('name',
|
||||||
io_safe_input(html_entity_decode($name)), 'text-name', '', 45, 100, $disabledBecauseInPolicy, '', $largeClassDisabledBecauseInPolicy, true);
|
io_safe_input(html_entity_decode($name)), 'text-name', '', 45, 100, $disabledBecauseInPolicy, '', $largeClassDisabledBecauseInPolicy, true);
|
||||||
@ -183,7 +194,6 @@ if (!$in_policy) {
|
|||||||
'parent_module_id', $parent_module_id, '', __('Not assigned'), '0', true, false, true);
|
'parent_module_id', $parent_module_id, '', __('Not assigned'), '0', true, false, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$table_simple->data[2][0] = __('Type').' ' . ui_print_help_icon ('module_type', true);
|
$table_simple->data[2][0] = __('Type').' ' . ui_print_help_icon ('module_type', true);
|
||||||
$table_simple->data[2][0] .= html_print_input_hidden ('id_module_type_hidden', $id_module_type, true);
|
$table_simple->data[2][0] .= html_print_input_hidden ('id_module_type_hidden', $id_module_type, true);
|
||||||
|
|
||||||
@ -291,11 +301,11 @@ if (modules_is_string_type($id_module_type) || $edit) {
|
|||||||
}
|
}
|
||||||
$table_simple->data[4][1] .= '<br /><em>'.__('Inverse interval').'</em>';
|
$table_simple->data[4][1] .= '<br /><em>'.__('Inverse interval').'</em>';
|
||||||
$table_simple->data[4][1] .= html_print_checkbox ("warning_inverse", 1, $warning_inverse, true, $disabledBecauseInPolicy);
|
$table_simple->data[4][1] .= html_print_checkbox ("warning_inverse", 1, $warning_inverse, true, $disabledBecauseInPolicy);
|
||||||
|
|
||||||
if (!modules_is_string_type($id_module_type) || $edit) {
|
if (!modules_is_string_type($id_module_type) || $edit) {
|
||||||
$table_simple->data[4][2] = '<svg id="svg_dinamic" width="800" height="300"> </svg>';
|
$table_simple->data[4][2] = '<svg id="svg_dinamic" width="800" height="300"> </svg>';
|
||||||
$table_simple->colspan[4][2] = 2;
|
|
||||||
$table_simple->rowspan[4][2] = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$table_simple->data[5][0] = __('Critical status').' ' . ui_print_help_icon ('critical_status', true);
|
$table_simple->data[5][0] = __('Critical status').' ' . ui_print_help_icon ('critical_status', true);
|
||||||
if (!modules_is_string_type($id_module_type) || $edit) {
|
if (!modules_is_string_type($id_module_type) || $edit) {
|
||||||
$table_simple->data[5][1] .= '<span id="minmax_critical"><em>'.__('Min. ').'</em>';
|
$table_simple->data[5][1] .= '<span id="minmax_critical"><em>'.__('Min. ').'</em>';
|
||||||
@ -314,9 +324,8 @@ if (modules_is_string_type($id_module_type) || $edit) {
|
|||||||
$table_simple->data[5][1] .= '<br /><em>'.__('Inverse interval').'</em>';
|
$table_simple->data[5][1] .= '<br /><em>'.__('Inverse interval').'</em>';
|
||||||
$table_simple->data[5][1] .= html_print_checkbox ("critical_inverse", 1, $critical_inverse, true, $disabledBecauseInPolicy);
|
$table_simple->data[5][1] .= html_print_checkbox ("critical_inverse", 1, $critical_inverse, true, $disabledBecauseInPolicy);
|
||||||
|
|
||||||
/* FF stands for Flip-flop */
|
//FF stands for Flip-flop
|
||||||
$table_simple->data[6][0] = __('FF threshold').' ' . ui_print_help_icon ('ff_threshold', true);
|
$table_simple->data[6][0] = __('FF threshold').' ' . ui_print_help_icon ('ff_threshold', true);
|
||||||
$table_simple->colspan[5][1] = 3;
|
|
||||||
|
|
||||||
$table_simple->data[6][1] = html_print_radio_button ('each_ff', 0, '', $each_ff, true, $disabledBecauseInPolicy) . ' ' . __('All state changing') . ' : ';
|
$table_simple->data[6][1] = html_print_radio_button ('each_ff', 0, '', $each_ff, true, $disabledBecauseInPolicy) . ' ' . __('All state changing') . ' : ';
|
||||||
$table_simple->data[6][1] .= html_print_input_text ('ff_event', $ff_event, '', 5, 15, true,
|
$table_simple->data[6][1] .= html_print_input_text ('ff_event', $ff_event, '', 5, 15, true,
|
||||||
@ -341,7 +350,7 @@ else {
|
|||||||
$table_simple->data[7][1] = html_print_checkbox ("history_data", 1, $history_data, true, $disabledBecauseInPolicy);
|
$table_simple->data[7][1] = html_print_checkbox ("history_data", 1, $history_data, true, $disabledBecauseInPolicy);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Advanced form part */
|
//Advanced form part
|
||||||
$table_advanced = new stdClass();
|
$table_advanced = new stdClass();
|
||||||
$table_advanced->id = 'advanced';
|
$table_advanced->id = 'advanced';
|
||||||
$table_advanced->width = '100%';
|
$table_advanced->width = '100%';
|
||||||
|
@ -22,9 +22,12 @@ echo "<script type='text/javascript' src='$snmp_browser_path'/>";
|
|||||||
//This line does not run with the dinamic loader editor in policies.
|
//This line does not run with the dinamic loader editor in policies.
|
||||||
//ui_require_javascript_file ('pandora_snmp_browser');
|
//ui_require_javascript_file ('pandora_snmp_browser');
|
||||||
|
|
||||||
|
//WARNING REPEAT input hidden errors in console
|
||||||
// Save some variables for javascript functions
|
// Save some variables for javascript functions
|
||||||
html_print_input_hidden ('ajax_url', ui_get_full_url("ajax.php"), false);
|
//html_print_input_hidden ('ajax_url', ui_get_full_url("ajax.php"), false);
|
||||||
html_print_input_hidden ('search_matches_translation', __("Search matches"), false);
|
//html_print_input_hidden ('search_matches_translation', __("Search matches"), false);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Define a custom action to save the OID selected in the SNMP browser to the form
|
// Define a custom action to save the OID selected in the SNMP browser to the form
|
||||||
html_print_input_hidden ('custom_action', urlencode (base64_encode(' <a href="javascript:setOID()"><img src="' . ui_get_full_url("images") . '/input_filter.disabled.png" title="' . __("Use this OID") . '" style="vertical-align: middle;"></img></a>')), false);
|
html_print_input_hidden ('custom_action', urlencode (base64_encode(' <a href="javascript:setOID()"><img src="' . ui_get_full_url("images") . '/input_filter.disabled.png" title="' . __("Use this OID") . '" style="vertical-align: middle;"></img></a>')), false);
|
||||||
@ -219,7 +222,7 @@ $data[1] = html_print_input_text ('snmp3_auth_user', $snmp3_auth_user, '', 15, 6
|
|||||||
$data[2] = __('Auth password') . ui_print_help_tip(__("The pass length must be eight character minimum."), true);
|
$data[2] = __('Auth password') . ui_print_help_tip(__("The pass length must be eight character minimum."), true);
|
||||||
$data[3] = html_print_input_password ('snmp3_auth_pass', $snmp3_auth_pass, '', 15, 60, true, $disabledBecauseInPolicy,
|
$data[3] = html_print_input_password ('snmp3_auth_pass', $snmp3_auth_pass, '', 15, 60, true, $disabledBecauseInPolicy,
|
||||||
false, $largeclassdisabledBecauseInPolicy);
|
false, $largeclassdisabledBecauseInPolicy);
|
||||||
$data[3] .= html_print_input_hidden('active_snmp_v3', 0, true);
|
$data[3] .= html_print_input_hidden_extended('active_snmp_v3', 0, 'active_snmp_v3_mmen', true);
|
||||||
if ($snmp_version != 3) $table_simple->rowstyle['field_snmpv3_row1'] = 'display: none;';
|
if ($snmp_version != 3) $table_simple->rowstyle['field_snmpv3_row1'] = 'display: none;';
|
||||||
push_table_simple($data, 'field_snmpv3_row1');
|
push_table_simple($data, 'field_snmpv3_row1');
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ $data[0] = __('Auth user');
|
|||||||
$data[1] = html_print_input_text ('snmp3_auth_user', $snmp3_auth_user, '', 15, 60, true);
|
$data[1] = html_print_input_text ('snmp3_auth_user', $snmp3_auth_user, '', 15, 60, true);
|
||||||
$data[2] = __('Auth password');
|
$data[2] = __('Auth password');
|
||||||
$data[3] = html_print_input_password ('snmp3_auth_pass', $snmp3_auth_pass, '', 15, 60, true);
|
$data[3] = html_print_input_password ('snmp3_auth_pass', $snmp3_auth_pass, '', 15, 60, true);
|
||||||
$data[3] .= html_print_input_hidden('active_snmp_v3', 0, true);
|
$data[3] .= html_print_input_hidden_extended('active_snmp_v3', 0, 'active_snmp_v3_mncfn', true);
|
||||||
push_table_row($data, 'field_snmpv3_row1');
|
push_table_row($data, 'field_snmpv3_row1');
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
|
@ -604,7 +604,7 @@ function snmp_browser_print_container ($return = false, $width = '100%', $height
|
|||||||
$table3->data[2][2] = html_print_input_text ('snmp3_browser_auth_user', '', '', 15, 60, true);
|
$table3->data[2][2] = html_print_input_text ('snmp3_browser_auth_user', '', '', 15, 60, true);
|
||||||
$table3->data[2][3] = '<b>'.__('Auth password').'</b>';
|
$table3->data[2][3] = '<b>'.__('Auth password').'</b>';
|
||||||
$table3->data[2][4] = html_print_input_password ('snmp3_browser_auth_pass', '', '', 15, 60, true);
|
$table3->data[2][4] = html_print_input_password ('snmp3_browser_auth_pass', '', '', 15, 60, true);
|
||||||
$table3->data[2][4] .= html_print_input_hidden('active_snmp_v3', 0, true);
|
$table3->data[2][4] .= html_print_input_hidden_extended('active_snmp_v3', 0, 'active_snmp_v3_fsb', true);
|
||||||
|
|
||||||
$table3->data[5][0] = '<b>'.__('Privacy method').'</b>';
|
$table3->data[5][0] = '<b>'.__('Privacy method').'</b>';
|
||||||
$table3->data[5][1] = html_print_select(array('DES' => __('DES'), 'AES' => __('AES')), 'snmp3_browser_privacy_method', '', '', '', '', true);
|
$table3->data[5][1] = html_print_select(array('DES' => __('DES'), 'AES' => __('AES')), 'snmp3_browser_privacy_method', '', '', '', '', true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user