}
     }
     foreach ($protectedPost as $field => $value) {
         $temp_field = explode('_', $field);
         if (array_key_exists($temp_field[0] . '_' . $temp_field[1], $info_account_id) or $temp_field[0] == 'TAG') {
             //cas of checkbox
             if (isset($temp_field[2])) {
                 $data_fields_account[$temp_field[0] . "_" . $temp_field[1]] .= $temp_field[2] . "&&&";
             } else {
                 $data_fields_account[$field] = $value;
             }
         }
     }
     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']));
// Web: http://www.ocsinventory-ng.org
//
// This code is open source and may be copied and modified as long as the source
// code is always made freely available.
// Please refer to the General Public Licence http://www.gnu.org/ or Licence.txt
//====================================================================================
require_once 'require/function_search.php';
require_once 'require/function_admininfo.php';
$form_name = "lock_affect";
echo open_form($form_name);
echo "<div align=center>";
$list_id = multi_lot($form_name, $l->g(601));
if (isset($list_id) and $list_id != '') {
    //cas of TAG INFO
    if (isset($protectedPost['Valid_modif']) and $protectedPost['Valid_modif'] != '') {
        $info_account_id = admininfo_computer();
        foreach ($protectedPost as $field => $value) {
            if (substr($field, 0, 5) == "check") {
                $temp = substr($field, 5);
                if (array_key_exists($temp, $info_account_id)) {
                    //cas of checkbox
                    foreach ($protectedPost as $field2 => $value2) {
                        $casofcheck = explode('_', $field2);
                        if ($casofcheck[0] . '_' . $casofcheck[1] == $temp) {
                            if (isset($casofcheck[2])) {
                                $data_fields_account[$temp] .= $casofcheck[2] . "&&&";
                            }
                        }
                    }
                    if (!isset($data_fields_account[$temp])) {
                        $data_fields_account[$temp] = $protectedPost[$temp];