} } updateinfo_snmp($systemid, $data_fields_account); //search all admininfo for this computer $info_account_id = admininfo_snmp($systemid); } unset($action_updown); //UP/DOWN if (isset($protectedPost['UP']) and $protectedPost['UP'] != '') { $action_updown = 'UP'; } if (isset($protectedPost['DOWN']) and $protectedPost['DOWN'] != '') { $action_updown = 'DOWN'; } if (isset($action_updown)) { $new_order = find_new_order($action_updown, $protectedPost[$action_updown], 'SNMP', $protectedPost['onglet']); if ($new_order) { // $array_info_account=find_info_accountinfo($new_order['NEW']); update_accountinfo_config($new_order['OLD'], array('SHOW_ORDER' => $new_order['NEW_VALUE'])); update_accountinfo_config($new_order['NEW'], array('SHOW_ORDER' => $new_order['OLD_VALUE'])); } } //print_r($info_account_id); if (!isset($protectedPost['onglet']) or $protectedPost['onglet'] == '' or !is_numeric($protectedPost['onglet'])) { $protectedPost['onglet'] = $list_tab['FIRST']; } unset($list_tab['FIRST']); echo "<br>"; echo open_form($form_name); onglet($list_tab, $form_name, "onglet", 6); echo '<div class="mlt_bordure" >';
} } updateinfo_computer($systemid, $data_fields_account); //search all admininfo for this computer $info_account_id = admininfo_computer($systemid); } unset($action_updown); //UP/DOWN if (isset($protectedPost['UP']) and $protectedPost['UP'] != '') { $action_updown = 'UP'; } if (isset($protectedPost['DOWN']) and $protectedPost['DOWN'] != '') { $action_updown = 'DOWN'; } if (isset($action_updown)) { $new_order = find_new_order($action_updown, $protectedPost[$action_updown], 'COMPUTERS', $protectedPost['onglet']); if ($new_order) { // $array_info_account=find_info_accountinfo($new_order['NEW']); update_accountinfo_config($new_order['OLD'], array('SHOW_ORDER' => $new_order['NEW_VALUE'])); update_accountinfo_config($new_order['NEW'], array('SHOW_ORDER' => $new_order['OLD_VALUE'])); } } if (!isset($protectedPost['onglet']) or $protectedPost['onglet'] == '' or !is_numeric($protectedPost['onglet'])) { $protectedPost['onglet'] = $list_tab['FIRST']; } unset($list_tab['FIRST']); echo open_form($form_name); if (!$show_all_column) { onglet($list_tab, $form_name, "onglet", 6); $sql_admin_info = "select ID,TYPE,NAME,COMMENT,NAME_ACCOUNTINFO,SHOW_ORDER,DEFAULT_VALUE from accountinfo_config where ID_TAB = %s and account_type='COMPUTERS'\n\t\t\t\t\t\t\t\torder by SHOW_ORDER ASC"; $arg_admin_info = array($protectedPost['onglet']);