diff --git a/htdocs/admin/barcode.php b/htdocs/admin/barcode.php index c370c07b73b..2fbfed35536 100644 --- a/htdocs/admin/barcode.php +++ b/htdocs/admin/barcode.php @@ -176,6 +176,71 @@ foreach ($dirbarcode as $reldir) { } } + + +// Select barcode numbering module +if ($conf->product->enabled) { + print load_fiche_titre($langs->trans("BarCodeNumberManager")." (".$langs->trans("Product").")", '', ''); + + print '
| '.$langs->trans("Name").' | '; + print ''.$langs->trans("Description").' | '; + print ''.$langs->trans("Example").' | '; + print ''.$langs->trans("Status").' | '; + print ''.$langs->trans("ShortInfo").' | '; + print "|
| '.(isset($modBarCode->name) ? $modBarCode->name : $modBarCode->nom)." | \n"; + print $modBarCode->info($langs); + print ' | '; + print ''.$modBarCode->getExample($langs)." | \n"; + + if (!empty($conf->global->BARCODE_PRODUCT_ADDON_NUM) && $conf->global->BARCODE_PRODUCT_ADDON_NUM == "$file") { + print ''; + print img_picto($langs->trans("Activated"), 'switch_on'); + print ' | '; + } else { + print ''; + print img_picto($langs->trans("Disabled"), 'switch_off'); + print ' | '; + } + print ''; + $s = $modBarCode->getToolTip($langs, null, -1); + print $form->textwithpicto('', $s, 1); + print ' | '; + print "
| '.$langs->trans("Name").' | '; @@ -211,8 +277,9 @@ if ($resql) { while ($i < $num) { $obj = $db->fetch_object($resql); - print '|
| '; - print $obj->label; + print ' | |
| '; + print dol_escape_htmltag($obj->label); print " | \n";
print $langs->trans('BarcodeDesc'.$obj->encoding);
//print "L'EAN se compose de 8 caracteres, 7 chiffres plus une cle de controle. "; @@ -270,6 +337,7 @@ if ($resql) { } } print " |
| '.$langs->trans("Name").' | '; - print ''.$langs->trans("Description").' | '; - print ''.$langs->trans("Example").' | '; - print ''.$langs->trans("Status").' | '; - print ''.$langs->trans("ShortInfo").' | '; - print "|
| '.(isset($modBarCode->name) ? $modBarCode->name : $modBarCode->nom)." | \n"; - print $modBarCode->info($langs); - print ' | '; - print ''.$modBarCode->getExample($langs)." | \n"; - - if (!empty($conf->global->BARCODE_PRODUCT_ADDON_NUM) && $conf->global->BARCODE_PRODUCT_ADDON_NUM == "$file") { - print ''; - print img_picto($langs->trans("Activated"), 'switch_on'); - print ' | '; - } else { - print ''; - print img_picto($langs->trans("Disabled"), 'switch_off'); - print ' | '; - } - print ''; - $s = $modBarCode->getToolTip($langs, null, -1); - print $form->textwithpicto('', $s, 1); - print ' | '; - print "