diff --git a/htdocs/admin/commande.php b/htdocs/admin/commande.php
index 86460d4d70e..73086b1287c 100644
--- a/htdocs/admin/commande.php
+++ b/htdocs/admin/commande.php
@@ -68,7 +68,10 @@ if ($_GET["action"] == 'setmod')
$commande_addon_var = $_GET["value"];
}
}
-
+if ($_GET["action"] == 'setpdf')
+{
+ if (dolibarr_set_const($db, "COMMANDE_ADDON_PDF",$_GET["value"])) $commande_addon_var_pdf = $_GET["value"];
+}
$dir = "../includes/modules/commande/";
@@ -131,6 +134,63 @@ if ($handle)
print '';
+/*
+ * PDF
+ */
+print '
';
+print_titre("Modèles de commande pdf");
+
+print '
| '.$langs->trans("Name").' | '; +print ''.$langs->trans("Description").' | '; +print ''.$langs->trans("Activated").' | '; +print ''.$langs->trans("Default").' | '; +print "|
| '; + echo "$name"; + print " | \n"; + require_once($dir.$file); + $obj = new $classname($db); + + print $obj->description; + + print ' | '; + + if ($commande_addon_var_pdf == "$name") + { + print ' '; + print ' | '; + print img_tick(); + } + else + { + print ' '; + // print $commande_addon_var_pdf."iii"; + print ' | '; + print ''.$langs->trans("Default").''; + } + print " |