24require_once
'../main.inc.php';
25require_once DOL_DOCUMENT_ROOT.
'/exports/class/export.class.php';
28$langs->load(
"exports");
31$export->load_arrays($user);
44$help_url =
'EN:Module_Exports_En|FR:Module_Exports|ES:Módulo_Exportaciones|DE:Modul_DatenExporte';
46llxHeader(
'', $langs->trans(
"ExportsArea"), $help_url);
50print $langs->trans(
"FormatedExportDesc1").
'<br>';
54print
'<div class="center">';
55if (count($export->array_export_code)) {
56 print
dolGetButtonTitle($langs->trans(
'NewExport'),
'',
'fa fa-plus-circle', DOL_URL_ROOT.
'/exports/export.php?leftmenu=export',
'', $user->hasRight(
'export',
'creer'));
65print
'<div class="div-table-responsive-no-min">';
66print
'<table class="noborder centpercent">';
67print
'<tr class="liste_titre">';
68print
'<td colspan="2">'.$langs->trans(
"AvailableFormats").
'</td>';
69print
'<td>'.$langs->trans(
"LibraryShort").
'</td>';
70print
'<td class="right">'.$langs->trans(
"LibraryVersion").
'</td>';
73include_once DOL_DOCUMENT_ROOT.
'/core/modules/export/modules_export.php';
75$liste = $model->listOfAvailableExportFormat($db);
77foreach ($liste as $key => $val) {
78 if (preg_match(
'/__\(Disabled\)__/', $liste[$key])) {
79 $liste[$key] = preg_replace(
'/__\(Disabled\)__/',
'('.$langs->transnoentitiesnoconv(
"Disabled").
')', $liste[$key]);
82 print
'<tr class="oddeven">';
83 print
'<td width="16">'.img_picto_common($model->getDriverLabelForKey($key), $model->getPictoForKey($key)).
'</td>';
84 $text = $model->getDriverDescForKey($key);
85 $label = $liste[$key];
86 print
'<td>'.$form->textwithpicto($label, $text).
'</td>';
87 print
'<td>'.$model->getLibLabelForKey($key).
'</td>';
88 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()
Empty header.
Parent class for export modules.
load_fiche_titre($titre, $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.
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.