diff --git a/htdocs/admin/expedition.php b/htdocs/admin/expedition.php index 8a6429fd4a9..6ce16e60dae 100644 --- a/htdocs/admin/expedition.php +++ b/htdocs/admin/expedition.php @@ -24,10 +24,10 @@ */ /** - \file htdocs/admin/expedition.php - \ingroup expedition - \brief Page d'administration/configuration du module Expedition - \version $Revision$ + \file htdocs/admin/expedition.php + \ingroup expedition + \brief Page d'administration/configuration du module Expedition + \version $Revision$ */ require("./pre.inc.php"); @@ -106,25 +106,6 @@ if ($_GET["action"] == 'setdef') * */ -$def = array(); - -$sql = "SELECT nom FROM ".MAIN_DB_PREFIX."propal_model_pdf"; -$resql = $db->query($sql); -if ($resql) -{ - $i = 0; - while ($i < $db->num_rows($resql)) - { - $array = $db->fetch_array($resql); - array_push($def, $array[0]); - $i++; - } -} -else -{ - print $db->error(); -} - $dir = DOL_DOCUMENT_ROOT."/expedition/mods/"; /* @@ -166,18 +147,11 @@ if(is_dir($dir)) { print ''; - if (in_array($name, $def)) - { - print img_tick(); - print "\n"; - print ''.$langs->trans("Disable").''; - } - else - { + print " "; print "\n"; print ''.$langs->trans("Activate").''; - } + print ''; @@ -208,6 +182,8 @@ print ''; print '
'; /* + * + * PDF * */ @@ -217,7 +193,6 @@ print ''; print ''; print ''; print ''; -print ''; print "\n"; clearstatcache(); @@ -243,21 +218,7 @@ if(is_dir($dir)) print $obj->description; - print '
'.$langs->trans("Name").''.$langs->trans("Description").''.$langs->trans("Active").''.$langs->trans("Default").'
'; - - if (in_array($name, $def)) - { - print img_tick(); - print "\n"; - print ''.$langs->trans("Disable").''; - } - else - { - print " "; - print "\n"; - print ''.$langs->trans("Activate").''; - } - + print ''; if ($expedition_addon_var_pdf == "$name")