Html::back(); } else { if (isset($_POST["delete"])) { Session::checkRight("plugin_manufacturersimports", PURGE); $config->delete($_POST, true); Html::redirect("./config.form.php"); } else { if (isset($_POST["update_model"])) { Session::checkRight("plugin_manufacturersimports", UPDATE); $model->addModel($_POST); Html::back(); } else { if (isset($_POST["delete_model"])) { Session::checkRight("plugin_manufacturersimports", UPDATE); $model->delete($_POST["id"]); Html::back(); } else { Html::header(__('Setup'), '', "tools", "pluginmanufacturersimportsmenu", "config"); $config->checkGlobal(READ); $config->display($_GET); echo "<div align='center'>"; echo "<a href='" . PluginManufacturersimportsConfig::getFormURL(true) . "'>"; echo __('Back'); echo "</a>"; echo "</div>"; Html::footer(); } } } } }
Manufacturersimports is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Manufacturersimports. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; header("Content-Type: text/html; charset=UTF-8"); Html::header_nocache(); $log = new PluginManufacturersimportsLog(); $config = new PluginManufacturersimportsConfig(); Html::header(_n('Suppliers import', 'Suppliers imports', 2, 'manufacturersimports'), $_SERVER['PHP_SELF'], "plugins", "manufacturersimports"); $config->checkGlobal("r"); if (isset($_POST["action"]) && isset($_POST["id"]) && isset($_POST["item"]) && count($_POST["item"])) { switch ($_POST["action"]) { case "import": PluginManufacturersimportsPostImport::massiveimport($_POST); break; case "reinit_once": foreach ($_POST["item"] as $key => $val) { if ($val == 1) { $log->reinitializeImport($_POST["itemtype"], $key); } } Session::addMessageAfterRedirect(__('Operation successful')); Html::redirect($_SERVER['HTTP_REFERER'] . "?itemtype=" . $_POST["itemtype"] . "&manufacturers_id=" . $_POST["manufacturers_id"] . "&start=" . $_POST["start"] . "&imported=" . $_POST["imported"]); break; }
Manufacturersimports is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Manufacturersimports. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; header("Content-Type: text/html; charset=UTF-8"); Html::header_nocache(); $log = new PluginManufacturersimportsLog(); $config = new PluginManufacturersimportsConfig(); Html::header(_n('Suppliers import', 'Suppliers imports', 2, 'manufacturersimports'), $_SERVER['PHP_SELF'], "tools", "pluginmanufacturersimportsmenu"); $config->checkGlobal(UPDATE); if (isset($_POST["action"]) && isset($_POST["id"]) && isset($_POST["item"]) && count($_POST["item"])) { switch ($_POST["action"]) { case "import": PluginManufacturersimportsPostImport::massiveimport($_POST); break; case "reinit_once": foreach ($_POST["item"] as $key => $val) { if ($val == 1) { $log->reinitializeImport($_POST["itemtype"], $key); } } Session::addMessageAfterRedirect(__('Operation successful')); Html::redirect($_SERVER['HTTP_REFERER'] . "?itemtype=" . $_POST["itemtype"] . "&manufacturers_id=" . $_POST["manufacturers_id"] . "&start=" . $_POST["start"] . "&imported=" . $_POST["imported"]); break; }