25require_once
'../main.inc.php';
26require_once DOL_DOCUMENT_ROOT.
'/imports/class/import.class.php';
37$langs->load(
"exports");
39if (!$user->socid == 0) {
44$import->load_arrays($user);
53llxHeader(
'', $langs->trans(
"ImportArea"),
'EN:Module_Imports_En|FR:Module_Imports|ES:Módulo_Importaciones');
57print $langs->trans(
"FormatedImportDesc1").
'<br>';
61print
'<div class="center">';
62if (count($import->array_import_code)) {
63 print
dolGetButtonTitle($langs->trans(
'NewImport'),
'',
'fa fa-plus-circle', DOL_URL_ROOT.
'/imports/import.php?leftmenu=import');
70print
'<div class="div-table-responsive-no-min">';
71print
'<table class="noborder centpercent">';
72print
'<tr class="liste_titre">';
73print
'<td colspan="2">'.$langs->trans(
"AvailableFormats").
'</td>';
74print
'<td>'.$langs->trans(
"LibraryShort").
'</td>';
75print
'<td class="right">'.$langs->trans(
"LibraryVersion").
'</td>';
78include_once DOL_DOCUMENT_ROOT.
'/core/modules/import/modules_import.php';
80$list = $model->listOfAvailableImportFormat($db);
82foreach ($list as $key) {
83 print
'<tr class="oddeven">';
84 print
'<td width="16">'.img_picto_common($model->getDriverLabelForKey($key), $model->getPictoForKey($key)).
'</td>';
85 $text = $model->getDriverDescForKey($key);
87 print
'<td>'.$form->textwithpicto($model->getDriverLabelForKey($key), $text).
'</td>';
88 print
'<td>'.$model->getLibLabelForKey($key).
'</td>';
89 print
'<td class="nowrap right">'.$model->getLibVersionForKey($key).
'</td>';
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Parent class for import file readers.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
dolGetButtonTitle($label, $helpText='', $iconClass='fa fa-file', $url='', $id='', $status=1, $params=array())
Function dolGetButtonTitle : this kind of buttons are used in title in list.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.