\n";
+print "\n";
+print ' | '.$langs->trans("Name")." | \n";
+print " ".$langs->trans("Description")." | \n";
+print ''.$langs->trans("Activated")." | \n";
+print ''.$langs->trans("Default")." | \n";
+print ''.$langs->trans("Info").' | ';
+print "
\n";
+
+clearstatcache();
+
$handle=opendir($dir);
-$var=True;
+
+$var=true;
while (($file = readdir($handle))!==false)
{
if (eregi('\.modules\.php$',$file) && substr($file,0,4) == 'pdf_')
- {
- $var = !$var;
- $name = substr($file, 4, strlen($file) -16);
- $classname = substr($file, 0, strlen($file) -12);
-
- $var=!$var;
- print "\n | ";
- print "$name";
- print " | \n \n";
- require_once($dir.$file);
- $obj = new $classname($db);
-
- print $obj->description;
-
- print " | \n \n";
-
- if (in_array($name, $def))
{
- print img_tick();
- print " | \n ";
- print ''.$langs->trans("Disable").'';
- }
- else
- {
- print " ";
- print " | \n ";
- print ''.$langs->trans("Activate").'';
- }
+ $name = substr($file, 4, strlen($file) -16);
+ $classname = substr($file, 0, strlen($file) -12);
- print " | \n ";
+ $var=!$var;
+ print " |
\n | ";
+ print "$name";
+ print " | \n \n";
+ require_once($dir.$file);
+ $module = new $classname($db);
+ print $module->description;
+ print " | \n";
+
+ // Activé
+ if (in_array($name, $def))
+ {
+ print "\n";
+ if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF != "$name")
+ {
+ print '';
+ print img_tick($langs->trans("Disable"));
+ print '';
+ }
+ else
+ {
+ print img_tick($langs->trans("Enabled"));
+ }
+ print " | ";
+ }
+ else
+ {
+ print "\n";
+ print ''.$langs->trans("Activate").'';
+ print " | ";
+ }
- if ($commande_fournisseur_addon_var_pdf == "$name")
- {
- print img_tick();
+ // Defaut
+ print "";
+ if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF == "$name")
+ {
+ print img_tick($langs->trans("Default"));
+ }
+ else
+ {
+ print ''.$langs->trans("Default").'';
+ }
+ print ' | ';
+
+ // Info
+ $htmltooltip = ''.$langs->trans("Type").': '.($module->type?$module->type:$langs->trans("Unknown"));
+ $htmltooltip.='
'.$langs->trans("Width").': '.$module->page_largeur;
+ $htmltooltip.='
'.$langs->trans("Height").': '.$module->page_hauteur;
+ $htmltooltip.='
'.$langs->trans("FeaturesSupported").':';
+ $htmltooltip.='
'.$langs->trans("Logo").': '.yn($module->option_logo);
+ $htmltooltip.='
'.$langs->trans("PaymentMode").': '.yn($module->option_modereg);
+ $htmltooltip.='
'.$langs->trans("PaymentConditions").': '.yn($module->option_condreg);
+ print 'tooltip_properties($htmltooltip).'>'.img_help(0).' | ';
+
+ print "
\n";
}
- else
- {
- print ''.$langs->trans("Activate").'';
- }
- print '';
- }
}
closedir($handle);
print '
';
+
llxFooter('$Date$ - $Revision$');
?>
diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql
index 2d6a791821b..b452ea7984c 100644
--- a/mysql/migration/2.0.0-2.1.0.sql
+++ b/mysql/migration/2.0.0-2.1.0.sql
@@ -7,6 +7,7 @@
drop table if exists llx_commande_model_pdf;
+drop table if exists llx_commande_fournisseur_model_pdf;
alter table llx_commande add column note_public text after note;
@@ -169,6 +170,7 @@ delete from llx_document_model where nom='rouge' and type='order';
delete from llx_document_model where nom='azur' and type='order';
delete from llx_document_model where nom='orange' and type='propal';
+
alter table llx_actioncomm add column fk_commande integer after propalrowid;
diff --git a/mysql/tables/llx_commande_fournisseur_model_pdf.sql b/mysql/tables/llx_commande_fournisseur_model_pdf.sql
deleted file mode 100644
index f3d637bf728..00000000000
--- a/mysql/tables/llx_commande_fournisseur_model_pdf.sql
+++ /dev/null
@@ -1,30 +0,0 @@
--- ===================================================================
--- Copyright (C) 2001-2003 Rodolphe Quiedeville