25require_once
'../main.inc.php';
26require_once DOL_DOCUMENT_ROOT.
'/exports/class/export.class.php';
37$langs->load(
"exports");
40$export->load_arrays($user);
53$help_url =
'EN:Module_Exports_En|FR:Module_Exports|ES:Módulo_Exportaciones|DE:Modul_DatenExporte';
55llxHeader(
'', $langs->trans(
"ExportsArea"), $help_url,
'', 0, 0,
'',
'',
'',
'mod-exports page-index');
59print $langs->trans(
"FormatedExportDesc1").
'<br>';
63print
'<div class="center">';
64if (count($export->array_export_code)) {
65 print
dolGetButtonTitle($langs->trans(
'NewExport'),
'',
'fa fa-plus-circle', DOL_URL_ROOT.
'/exports/export.php?leftmenu=export',
'', $user->hasRight(
'export',
'lire'));
74print
'<div class="div-table-responsive-no-min">';
75print
'<table class="noborder centpercent">';
76print
'<tr class="liste_titre">';
77print
'<td colspan="2">'.$langs->trans(
"AvailableFormats").
'</td>';
78print
'<td>'.$langs->trans(
"LibraryShort").
'</td>';
79print
'<td class="right">'.$langs->trans(
"LibraryVersion").
'</td>';
82include_once DOL_DOCUMENT_ROOT.
'/core/modules/export/modules_export.php';
84$liste = $model->listOfAvailableExportFormat($db);
86foreach ($liste as $key => $val) {
87 if (preg_match(
'/__\(Disabled\)__/', $liste[$key])) {
88 $liste[$key] = preg_replace(
'/__\(Disabled\)__/',
'('.$langs->transnoentitiesnoconv(
"Disabled").
')', $liste[$key]);
91 print
'<tr class="oddeven">';
92 print
'<td width="16">'.img_picto_common($model->getDriverLabelForKey($key), $model->getPictoForKey($key)).
'</td>';
93 $text = $model->getDriverDescForKey($key);
94 $label = $liste[$key];
96 print
'<td>'.$form->textwithpicto($label, $text).
'</td>';
97 print
'<td>'.$model->getLibLabelForKey($key).
'</td>';
98 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 export modules.
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.
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.