PHP Classes

File: libs/Barcode/html/BCGcode39.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Barcode/html/BCGcode39.php   Download  
File: libs/Barcode/html/BCGcode39.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 7 years ago
Size: 1,407 bytes
 

Contents

Class file image Download
<?php
define
('IN_CB', true);
include(
'include/header.php');

$default_value['checksum'] = '';
$checksum = isset($_POST['checksum']) ? $_POST['checksum'] : $default_value['checksum'];
registerImageKey('checksum', $checksum);
registerImageKey('code', 'BCGcode39');

$characters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '-', '.', '&nbsp;', '$', '/', '+', '%');
?>

<ul id="specificOptions">
    <li class="option">
        <div class="title">
            <label for="checksum">Checksum</label>
        </div>
        <div class="value">
            <?php echo getCheckboxHtml('checksum', $checksum, array('value' => 1)); ?>
</div>
    </li>
</ul>

<div id="validCharacters">
    <h3>Valid Characters</h3>
    <?php foreach ($characters as $character) { echo getButton($character); } ?>
</div>

<div id="explanation">
    <h3>Explanation</h3>
    <ul>
        <li>Known also as USS Code 39, 3 of 9.</li>
        <li>Code 39 can encode alphanumeric characters.</li>
        <li>The symbology is used in non-retail environment.</li>
        <li>Code 39 is designed to encode 26 upper case letters, 10 digits and 7 special characters.</li>
        <li>Code 39 has a checksum but it's rarely used.</li>
    </ul>
</div>

<?php
include('include/footer.php');
?>