You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 rivejä
1.8 KiB

  1. <?php
  2. define('IN_CB', true);
  3. include('include/header.php');
  4. registerImageKey('code', 'BCGcode93');
  5. $vals = array();
  6. for($i = 0; $i <= 127; $i++) {
  7. $vals[] = '%' . sprintf('%02X', $i);
  8. }
  9. $characters = array(
  10. 'NUL', 'SOH', 'STX', 'ETX', 'EOT', 'ENQ', 'ACK', 'BEL', 'BS', 'TAB', 'LF', 'VT', 'FF', 'CR', 'SO', 'SI', 'DLE', 'DC1', 'DC2', 'DC3', 'DC4', 'NAK', 'SYN', 'ETB', 'CAN', 'EM', 'SUB', 'ESC', 'FS', 'GS', 'RS', 'US',
  11. '&nbsp;', '!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?',
  12. '@', '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', '[', '\\', ']', '^', '_',
  13. '`', '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', '{', '|', '}', '~', 'DEL'
  14. );
  15. ?>
  16. <div id="validCharacters">
  17. <h3>Valid Characters</h3>
  18. <?php $c = count($characters); for ($i = 0; $i < $c; $i++) { echo getButton($characters[$i], $vals[$i]); } ?>
  19. </div>
  20. <div id="explanation">
  21. <h3>Explanation</h3>
  22. <ul>
  23. <li>Known also as USS Code 93.</li>
  24. <li>Code 93 was designed to provide a higher density and data security enhancement to Code 39.</li>
  25. <li>Used primarily by Canadian postal office to encode supplementary delivery information.</li>
  26. <li>Similar to Code 39, Code 93 has the same 43 characters plus 5 special ones to encode the ASCII 0 to 127.</li>
  27. <li>This symbology composed of 2 check digits ("C" and "K").</li>
  28. <li>Your browser may not be able to write the special characters (NUL, SOH, etc.) but you can write them with the code.</li>
  29. </ul>
  30. </div>
  31. <?php
  32. include('include/footer.php');
  33. ?>