diff --git a/htdocs/admin/incoterm.php b/htdocs/admin/incoterm.php deleted file mode 100644 index 9daa48b952f..00000000000 --- a/htdocs/admin/incoterm.php +++ /dev/null @@ -1,89 +0,0 @@ -load("admin"); -$langs->load("incoterm"); -$langs->load("errors"); - -if (! $user->admin) accessforbidden(); - -$action = GETPOST('action','alpha'); -$error = false; - -/* - * Actions - */ - if ($action == 'switch_incoterm') - { - $value = dolibarr_get_const($db, 'INCOTERM_ACTIVATE'); - - if (!empty($value)) $res = dolibarr_set_const($db, 'INCOTERM_ACTIVATE', 0); - else $res = dolibarr_set_const($db, 'INCOTERM_ACTIVATE', 1); - - - if (!$res) $error++; - - if (!$error) - { - setEventMessage($langs->trans("SetupSaved")); - } - else - { - setEventMessage($langs->trans("Error"),'errors'); - } - } - -/* - * View - */ -$form=new Form($db); - -llxHeader("",""); - -$linkback=''.$langs->trans("BackToModuleList").''; -print_fiche_titre($langs->trans("IncotermSetup"),$linkback,'setup'); -print '
'; - - -$h = 0; - -$head[$h][0] = DOL_URL_ROOT."/admin/incoterm.php"; -$head[$h][1] = $langs->trans("Setup"); -$h++; - -dol_fiche_head($head, $hselected, $langs->trans("ModuleSetup")); - -print ''; -print ''; -print ''; -print ''; -print ''; -print ''; - -print ''; -print ''; -print ''; -print ''; -print ''; - -print ''; - -print '
'.$langs->trans("IncotermSetupTitle1").''.$langs->trans("IncotermSetupTitle2").'
'.$langs->trans('IncotermFunctionDesc').''; - -if (!empty($conf->global->INCOTERM_ACTIVATE)) { - print img_picto($langs->trans("Enabled"),'switch_on'); -} else { - print img_picto($langs->trans("Disabled"),'switch_off'); -} - -print '
'; - - - -llxFooter(); -$db->close(); - - -