Affichage du code barre dans l'onglet

This commit is contained in:
Regis Houssin 2007-09-29 11:35:43 +00:00
parent f51eca0cda
commit e92220bd13
2 changed files with 11 additions and 2 deletions

View File

@ -37,7 +37,7 @@ if (!$user->admin)
if ($_POST["action"] == 'setcoder' && $user->admin)
{
$sqlp = "UPDATE ".MAIN_DB_PREFIX."c_barcode";
$sqlp = "UPDATE ".MAIN_DB_PREFIX."c_barcode_type";
$sqlp.= " SET coder = " . $_POST["coder"];
$sqlp.= " WHERE rowid = ". $_POST["code_id"];
$resql=$db->query($sqlp);

View File

@ -62,13 +62,17 @@ print '<table class="border" width="100%">';
// Reference
print '<tr>';
print '<td width="15%">'.$langs->trans("Ref").'</td><td colspan="2">';
print '<td width="15%">'.$langs->trans("Ref").'</td><td colspan="3">';
print $html->showrefnav($product,'ref');
print '</td>';
print '</tr>';
// Libelle
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="2">'.$product->libelle.'</td>';
// Barcode image
print '<td width="300" align="center" rowspan="5"><img src="'.dol_genbarcode($product->barcode,$product->barcode_type_code,$product->barcode_type_coder).'"></td>';
print '</tr>';
// Prix
@ -93,6 +97,11 @@ print '<tr><td>'.$langs->trans("BarcodeType").'</td><td colspan="2">';
print $product->barcode_type_label;
print '</td></tr>';
// Barcode
print '<tr><td>'.$langs->trans("Barcode").'</td><td colspan="2">';
print $product->barcode;
print '</td></tr>';
print "</table>\n";
print "</div>\n";