* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program 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 this program. If not, see . */ /** * \file htdocs/imports/index.php * \ingroup import * \brief Home page of import wizard */ require_once '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/imports/class/import.class.php'; // Load translation files required by the page $langs->load("exports"); if (!$user->socid == 0) { accessforbidden(); } $import = new Import($db); $import->load_arrays($user); /* * View */ $form = new Form($db); llxHeader('', $langs->trans("ImportArea"), 'EN:Module_Imports_En|FR:Module_Imports|ES:Módulo_Importaciones'); print load_fiche_titre($langs->trans("ImportArea")); print $langs->trans("FormatedImportDesc1").'
'; print '
'; print '
'; if (count($import->array_import_code)) { print dolGetButtonTitle($langs->trans('NewImport'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/imports/import.php?leftmenu=import'); } print '
'; print '
'; // List of available import format print '
'; print ''; print ''; print ''; print ''; print ''; print ''; include_once DOL_DOCUMENT_ROOT.'/core/modules/import/modules_import.php'; $model = new ModeleImports(); $list = $model->listOfAvailableImportFormat($db); foreach ($list as $key) { print ''; print ''; $text = $model->getDriverDescForKey($key); // @phan-suppress-next-line PhanPluginSuspiciousParamPosition print ''; print ''; print ''; print ''; } print '
'.$langs->trans("AvailableFormats").''.$langs->trans("LibraryShort").''.$langs->trans("LibraryVersion").'
'.img_picto_common($model->getDriverLabelForKey($key), $model->getPictoForKey($key)).''.$form->textwithpicto($model->getDriverLabelForKey($key), $text).''.$model->getLibLabelForKey($key).''.$model->getLibVersionForKey($key).'
'; print '
'; // End of page llxFooter(); $db->close();