<?php 	
	$obj = new COM("DLL_ActiveXDLL.Make");
	$file = __FILE__;
    $obj->PDF417SetColorDepth($_POST['Text6']);
	$obj->PDF417($_POST['Text1'], $file, $_POST['Text2'], $_POST['Text3'], $_POST['Text4'],$_POST['Text5']);
     $obj->PDF417MixText($_POST['Text8'],$_POST['Text9'],$_POST['Text10'],$_POST['Text11'],$_POST['Text12'],$_POST['Text7']);
	$text = $_POST['Text1'];
	$nRow = $_POST['Text2'];
	$nErr = $_POST['Text3'];
	$nRatio = $_POST['Text4'];
    $nHeight = $_POST['Text5'];
    $nColor = $_POST['Text6'];
    $szText=$_POST['Text8'];
    $lFontSize=$_POST['Text9'];
    $lTxtHeight=$_POST['Text10'];
    $lHmargin=$_POST['Text11'];
    $lVmargin=$_POST['Text12'];
    $lTxtCntOneLine=$_POST['Text7'];
?>
<html>
<head><title>PDF417-DLL演示</title>
<style type="text/css">
<!--
.style3 {font-size: 12px}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body><center>
<table align="center"></table>
<form>   
<p><h2>欢迎使用PDF417条码生成DLL（海量）</h2></sp>
<table width="400" border="2" >
  <!--DWLayoutTable-->
	<tr><td width="60" height="25" align="center" valign="middle"><span class="style3">参数设置</span></td>
		<td align="center" valign="middle" width="130"><span class="style3">列数
		  <input type="text" value=<?php echo $nRow?> size="3" name="Text2">
		</span></td>
		<td align="center" valign="middle" width="101"><span class="style3">校验等级
		  <input type="text" value="<?php echo $nErr?>" size="3" name="Text3">
		</span></td>
		<td align="center" valign="middle" width="91"><span class="style3">长宽比
		  <input type="text" value="<?php echo $nRatio?>" size="3" name="Text4">
		</span></td>
	</tr>
	<tr>
	  <td height="23" colspan="2" align="center">高度
	    <input name="Text5" type="text" id="Text5" size="3" value=<?php echo $nHeight?>></td>
	  <td colspan="2" align="center">颜色
	    <input name="Text6" type="text" id="Text6" size="3" value="<?php echo $nColor?>"></td>
	  </tr>
	<tr>
	  <td height="23" colspan="2" align="center"><span class="style3">条码信息</span></td>
	  <td colspan="2" align="center"><span class="style3">条码预览</span></td>
	</tr>
	<tr>
	  <td colspan="2" align="center"><span class="style3">
	      <textarea rows="5" name="Text1"><?php echo $text?></textarea>
	  </span></td>
	  <td colspan="2" align="center"><span class="style3">
	      <img src="temp.bmp" width="160" height="80">
	  </span></td>
	</tr>
	<tr align="center">
	  <td colspan="4">文字</td>
	  </tr>
	<tr>
	  <td colspan="4">每行字数
	    <input name="textfield" type="text" size="5" value="<?php echo $lTxtCntOneLine?>"></td>
	  </tr>
	<tr>
	  <td colspan="4">文字信息
	    <input name="textfield2" type="text" size="25" value="<?php echo $szText?>"></td>
	  </tr>
	<tr>
	  <td colspan="2">字体大小
	    <input name="textfield3" type="text" size="5" value="<?php echo $lFontSize?>"></td>
	  <td colspan="2">文字高度
	    <input name="textfield4" type="text" size="5" value="<?php echo $lTxtHeight?>"></td>
	  </tr>
	<tr>
	  <td colspan="2">水平留白
	    <input name="textfield5" type="text" size="5" value="<?php echo $lHmargin?>"></td>
	  <td colspan="2">垂直留白
	    <input name="textfield6" type="text" size="5" value="<?php echo $lVmargin?>"></td>
	  </tr>
</table>
</form> </center></body>
</html>