$newcode=$code; break; } } //print("Switch pos=$pos (code=".$_GET["field"].") and newpos=$newpos (code=$newcode)"); if ($newcode) // Si newcode trouve (protection contre resoumission de page) { $array_match_file_to_database[$_GET["field"]]=$newpos; $array_match_file_to_database[$newcode]=$pos; $_SESSION["dol_array_match_file_to_database"]=$serialized_array_match_file_to_database; } } */ if ($action == 'builddoc') { // Build import file $result = $objimport->build_file($user, $_POST['model'], $datatoimport, $array_match_file_to_database); if ($result < 0) { $mesg = '<div class="error">' . $objimport->error . '</div>'; } else { $mesg = '<div class="ok">' . $langs->trans("FileSuccessfullyBuilt") . '</div>'; } } if ($action == 'deleteprof') { if ($_GET["id"]) { $objimport->fetch($_GET["id"]); $result = $objimport->delete($user); } } // Save import config to database if ($action == 'add_import_model') { if ($import_name) {
$newcode=$code; break; } } //print("Switch pos=$pos (code=".$_GET["field"].") and newpos=$newpos (code=$newcode)"); if ($newcode) // Si newcode trouve (protection contre resoumission de page) { $array_match_file_to_database[$_GET["field"]]=$newpos; $array_match_file_to_database[$newcode]=$pos; $_SESSION["dol_array_match_file_to_database"]=$serialized_array_match_file_to_database; } } */ if ($action == 'builddoc') { // Build import file $result = $objimport->build_file($user, GETPOST('model', 'alpha'), $datatoimport, $array_match_file_to_database); if ($result < 0) { setEventMessage($objimport->error, 'errors'); } else { setEventMessage($langs->trans("FileSuccessfullyBuilt")); } } if ($action == 'deleteprof') { if ($_GET["id"]) { $objimport->fetch($_GET["id"]); $result = $objimport->delete($user); } } // Save import config to database if ($action == 'add_import_model') { if ($import_name) {