diff --git a/htdocs/barcode/codeinit.php b/htdocs/barcode/codeinit.php index 2beb45caee2..c046d58220c 100644 --- a/htdocs/barcode/codeinit.php +++ b/htdocs/barcode/codeinit.php @@ -285,8 +285,6 @@ if ($action == 'initbarcodeproducts' && $user->hasRight('produit', 'lire')) { * View */ -$form = new Form($db); - llxHeader('', $langs->trans("MassBarcodeInit"), '', '', 0, 0, '', '', '', 'mod-barcode page-codeinit'); print load_fiche_titre($langs->trans("MassBarcodeInit"), '', 'title_setup.png'); @@ -318,9 +316,10 @@ if (isModEnabled('societe')) { print ''; $nbthirdpartyno = $nbthirdpartytotal = 0; + print '
'; + print load_fiche_titre($langs->trans("BarcodeInitForThirdparties"), '', 'company'); - print '
'."\n"; $sql = "SELECT count(rowid) as nb FROM ".MAIN_DB_PREFIX."societe where barcode IS NULL or barcode = ''"; $resql = $db->query($sql); if ($resql) { @@ -362,11 +361,13 @@ if (isModEnabled('societe')) { } $moretagsthirdparty1 = (($disabledthirdparty || $disabledthirdparty1) ? ' disabled title="'.dol_escape_htmltag($titleno).'"' : ''); - print '
'; + print ''; $moretagsthirdparty2 = (($nbthirdpartyno == $nbthirdpartytotal) ? ' disabled' : ''); print '   '; print ''; - print '



'; + print '

'; + print '
'; + print '
'; print ''; } @@ -380,8 +381,9 @@ if (isModEnabled('product') || isModEnabled('service')) { $nbproductno = $nbproducttotal = 0; + print '
'; + print load_fiche_titre($langs->trans("BarcodeInitForProductsOrServices"), '', 'product'); - print '
'."\n"; $sql = "SELECT count(rowid) as nb, fk_product_type, datec"; $sql .= " FROM ".MAIN_DB_PREFIX."product"; @@ -441,19 +443,24 @@ if (isModEnabled('product') || isModEnabled('service')) { $moretagsproduct2 = (($nbproductno == $nbproducttotal) ? ' disabled' : ''); print '   '; print ''; - print '



'; + print '

'; + print '
'; + print '
'; print ''; } +print '
'; + print load_fiche_titre($langs->trans("BarCodePrintsheet"), '', 'generic'); -print '
'."\n"; print $langs->trans("ClickHereToGoTo").' : '.$langs->trans("BarCodePrintsheet").''; - - +print '
'."\n"; print '
'; +print '
'; + + // End of page llxFooter(); $db->close();