Cambio formato stampa barcode
This commit is contained in:
parent
c16050ec2d
commit
6e29a4e248
|
@ -31,16 +31,11 @@ echo '<style>
|
||||||
}
|
}
|
||||||
</style>';
|
</style>';
|
||||||
|
|
||||||
$width_factor = 0.33 * 110;
|
|
||||||
$height_factor = 25.93;
|
|
||||||
|
|
||||||
$size = $settings['width'] / $width_factor;
|
|
||||||
$height = $settings['height'] / $height_factor / $size;
|
|
||||||
|
|
||||||
$number = 1; // 32
|
$number = 1; // 32
|
||||||
for ($i = 0; $i < $number; ++$i) {
|
for ($i = 0; $i < $number; ++$i) {
|
||||||
echo '
|
echo '
|
||||||
<div class="barcode-cell">
|
<div class="barcode-cell">
|
||||||
<barcode code="'.$articolo->barcode.'" type="EAN13" height="'.$height.'" size="'.$size.'" class="barcode" />
|
<barcode code="'.$articolo->barcode.'" type="C39" height="2" size="0.65" class="barcode" />
|
||||||
|
<p><b>'.$articolo->barcode.'</b></p>
|
||||||
</div>';
|
</div>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue