24 require_once
'../main.inc.php';
25 require_once DOL_DOCUMENT_ROOT.
'/imports/class/import.class.php';
28 $langs->load(
"exports");
30 if (!$user->socid == 0)
34 $import->load_arrays($user);
41 $form =
new Form($db);
43 llxHeader(
'', $langs->trans(
"ImportArea"),
'EN:Module_Imports_En|FR:Module_Imports|ES:Módulo_Importaciones');
47 print $langs->trans(
"FormatedImportDesc1").
'<br>';
51 print '<div class="center">';
52 if (count($import->array_import_code))
54 print dolGetButtonTitle($langs->trans(
'NewImport'),
'',
'fa fa-plus-circle', DOL_URL_ROOT.
'/imports/import.php?leftmenu=import');
61 print '<div class="div-table-responsive-no-min">';
62 print '<table class="noborder centpercent">';
63 print '<tr class="liste_titre">';
64 print '<td colspan="2">'.$langs->trans(
"AvailableFormats").
'</td>';
65 print '<td>'.$langs->trans(
"LibraryShort").
'</td>';
66 print '<td class="right">'.$langs->trans(
"LibraryVersion").
'</td>';
69 include_once DOL_DOCUMENT_ROOT.
'/core/modules/import/modules_import.php';
71 $liste = $model->liste_modeles($db);
73 foreach ($liste as $key)
75 print '<tr class="oddeven">';
76 print '<td width="16">'.img_picto_common($model->getDriverLabelForKey($key), $model->getPictoForKey($key)).
'</td>';
77 $text = $model->getDriverDescForKey($key);
78 print '<td>'.$form->textwithpicto($model->getDriverLabelForKey($key), $text).
'</td>';
79 print '<td>'.$model->getLibLabelForKey($key).
'</td>';
80 print '<td class="nowrap right">'.$model->getLibVersionForKey($key).
'</td>';
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.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
Parent class for import file readers.
print
Draft customers invoices.