There are 8 types of barcode you could render with KoolUI Barcode: EAN13, EAN8, UPC, Code39, Code128, GS1 128, MSI, QRCode. To set a type or subtype please use the following command:
$ui = KoolUI->newUI(
array(
'id' => 'KBarcode1',
'type' => 'UPC',
'subtype' => 'A',
'value' => '1 23456 78999'
)
);
span style="color: #ff0000;">"../../../../KoolControls""/KoolUIControl/KoolUIControl.php"'width' => '300px',
'height' => '100px',
'templateSelector' => 'KBarcode t0',
'showChecksum''type' => ' ean13 ',
'value' => '4 003994 15548''width' => '200px',
'type' => 'ean8',
'value' => '9638507''width' => '300px',
'type' => 'upc',
'subtype' => 'a',
'value' => '1 23456 78999''width' => '200px',
'type' => 'upc',
'subtype' => 'e',
'value' => '654321''width' => '400px',
'type' => 'code39',
'value' => 'WIKIPEDIA',
'showChecksum''width' => '300px',
'type' => 'code128',
'subtype' => 'b',
'value' => 'Wikipedia',
'showChecksum''width' => '500px',
'type' => 'gs1128',
'value' => '01 95012345678903 3103 000123',
'showChecksum''width' => '300px',
'type' => 'msi',
'subtype' => 'mod10',
'value' => '1234567',
'showChecksum''width' => '200px',
'type' => 'QRCode',
'fontSize' => 15,
'value' => 'http://en.m.wikipedia.org''id' ] = 'KoolBarcode' . $i;
$ui->set( $data[ $i ] );
$ui->process();
$data[ $i ]['basedHtml''startupJS'] = $ui->getStartupJS();
}
$s = '<script type="text/javascript">var exampleData = {data};</script>''{data}'"form1" method="post"'barcodeDiv''typeDiv''typeDiv''inputDiv'>
Value: <input type='text''inputDiv'>
Width: <input type='text''inputDiv'>
Height: <input type='text''inputDiv'>
Show checksum: <input type='checkbox''clear10px''form1''basedHtml''startupJS''id''Barcode type: ' +
kBarcode.getBarcodeControlName( exampleData[ i ]['type''Subtype: ' + ( exampleData[ i ]['subtype''NA''px';
setting.height = inputs[ 2 ].value + 'px''focusout' : 'change'