mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 08:56:48 +01:00
Introduzione stampa barcode
This commit is contained in:
parent
0c3def788b
commit
115c801884
16
templates/barcode/body.php
Executable file
16
templates/barcode/body.php
Executable file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
echo '<style>
|
||||
.barcode {
|
||||
padding: 4mm;
|
||||
padding-bottom: 2.5mm;
|
||||
margin: 0;
|
||||
}
|
||||
</style>';
|
||||
|
||||
$number = 32;
|
||||
for ($i = 0; $i < $number; ++$i) {
|
||||
echo '<barcode code="'.$articolo->barcode.'" type="EAN13" height="1" size="1" class="barcode" />';
|
||||
}
|
4
templates/barcode/header.php
Normal file
4
templates/barcode/header.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
echo '
|
||||
';
|
7
templates/barcode/init.php
Executable file
7
templates/barcode/init.php
Executable file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
use Modules\Articoli\Articolo;
|
||||
|
||||
$articolo = Articolo::find($id_record);
|
@ -445,3 +445,7 @@ ALTER TABLE `zz_hooks` DROP `frequency`;
|
||||
|
||||
-- Fix nome hook Aggiornamenti
|
||||
UPDATE `zz_hooks` SET `name` = 'Aggiornamenti' WHERE `class` = 'Modules\\Aggiornamenti\\UpdateHook';
|
||||
|
||||
-- Aggiunta stampa Barcode
|
||||
INSERT INTO `zz_prints` (`id_module`, `name`, `title`, `filename`, `directory`, `icon`, `options`, `predefined`, `previous`, `enabled`, `default`) VALUES
|
||||
((SELECT `id` FROM `zz_modules` WHERE `name` = 'Articoli'), 'Barcode', 'Barcode', 'Barcode', 'barcode', 'fa fa-print', '', 1, '', 1, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user