欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

php实现在线生成条形码示例分享(条形码生成器)

程序员文章站 2023-11-11 23:11:16
复制代码 代码如下:            &nbs...
php实现在线生成条形码示例分享(条形码生成器)

复制代码 代码如下:

                 <?php
define('in_cb',true);
include('header.php');

$keys = 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','-','.',' ','$','/','+','%');

$n = $table->numrows();
$table->insertrows($n, 3);
$table->addrowattribute($n,'class','table_title');
$table->addcellattribute($n,0,'align','center');
$table->addcellattribute($n,0,'colspan','2');
$table->settext($n,0,'<font color="#ffffff"><b>specifics configs</b></font>');
$table->settext($n+1,0,'keys');
$text2display = '';
$c = count($keys);
for($i=0;$i<$c;$i++)
    $text2display .= '<input type="button" value="'.$keys[$i].'" style="width:25px" onclick="newkey(this.form,\''.$keys[$i].'\')" /> ';
$table->settext($n+1,1,$text2display);
$table->settext($n+2,0,'explanation');
$table->settext($n+2,1,'<ul style="margin: 0px; padding-left: 25px;"><li>known also as uss code 93.</li><li>code 93 was designed to provide a higher density and data security enhancement to code39.</li><li>used primarily by canadian postal office to encode supplementary delivery information.</li><li>similar to code 39, code 93 has the same 43 characters plus 5 special ones.</li><li>this symbology composed of 2 check digits ("c" and "k").</li></ul>');
$table->draw();

echo '</form>';

include('footer.php');
?>