Suite de la fonction générique d'export
This commit is contained in:
parent
8a1d94203d
commit
e9e8da4b70
@ -49,7 +49,7 @@ while (($file = readdir($handle))!==false)
|
|||||||
{
|
{
|
||||||
if (substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS')
|
if (substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS')
|
||||||
{
|
{
|
||||||
if (eregi("(.*)\.class\.php",$file,$reg))
|
if (eregi("^(mod.*)\.class\.php",$file,$reg))
|
||||||
{
|
{
|
||||||
$modulename=$reg[1];
|
$modulename=$reg[1];
|
||||||
|
|
||||||
@ -63,6 +63,7 @@ while (($file = readdir($handle))!==false)
|
|||||||
{
|
{
|
||||||
foreach($module->export_code as $r => $value)
|
foreach($module->export_code as $r => $value)
|
||||||
{
|
{
|
||||||
|
dolibarr_syslog("Exports trouvés pour le module ".$modulename);
|
||||||
$perm=$module->export_permission[$r][0];
|
$perm=$module->export_permission[$r][0];
|
||||||
if (strlen($perms[2]) > 0)
|
if (strlen($perms[2]) > 0)
|
||||||
{
|
{
|
||||||
@ -130,16 +131,23 @@ print '<td>'.$langs->trans("Module").'</td>';
|
|||||||
print '<td>'.$langs->trans("ExportableDatas").'</td>';
|
print '<td>'.$langs->trans("ExportableDatas").'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
$val=true;
|
$val=true;
|
||||||
foreach ($array_export_code as $key => $value)
|
if (sizeof($array_export_code))
|
||||||
{
|
{
|
||||||
$val=!$val;
|
foreach ($array_export_code as $key => $value)
|
||||||
print '<tr '.$bc[$val].'><td>';
|
{
|
||||||
print img_object($array_export_module[$key]->getName(),$array_export_module[$key]->picto).' ';
|
$val=!$val;
|
||||||
print $array_export_module[$key]->getName();
|
print '<tr '.$bc[$val].'><td>';
|
||||||
print '</td><td>';
|
print img_object($array_export_module[$key]->getName(),$array_export_module[$key]->picto).' ';
|
||||||
print $array_export_label[$key];
|
print $array_export_module[$key]->getName();
|
||||||
print '</td></tr>';
|
print '</td><td>';
|
||||||
|
print $array_export_label[$key];
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<tr><td '.$bc[false].' colspan="2">'.$langs->trans("NoExportableData").'</td></tr>';
|
||||||
}
|
}
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user