|
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'TestPrint.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style media=print>
.noprint{display:none;}
</style>
<script language=javascript>
function printsetup(){
// 打印页面设置
wb.execwb(8,1);
}
function printpreview(){
// 打印页面预览
wb.execwb(7,1);
}
function printit()
{
if (confirm('确定打印吗?')) {
wb.execwb(6,6)
}
}
</script>
</head>
<body>
<div align=center>
<object id=wb height=0 width=0
classid=clsid:8856f961-340a-11d0-a96b-00c04fd705a2 name=wb></object>
<div align="center">黑龙江省代收罚款收据</div>
<div align="center">收款日期: 年 月 日 (2006)No 0110053</div>
<table style="border-collapse:collapse;" border="1" bordercolor="black" cellspacing="0" width="600">
<tr>
<td align="center" width="15%" height="20">
行政机关
</td>
<td width="30%">
<input type="text">
</td>
<td width="25%"> 处罚决定书号码 </td>
<td width="30%"><input type="text" style=border-style: 0></td>
</tr>
<tr>
<td> 交款单位</td>
<td colspan="3"> <input type="text"></td>
</tr>
<tr>
<td>项目 </td>
<td> <input type="text"> </td>
<td>
<table width="100%" height="100%" style="border-collapse:collapse;" border="1" bordercolor="black" cellpadding="0" cellspacing="0">
<tr>
<td> 亿</td>
<td> 千</td>
<td>百</td>
<td> 十 </td>
<td>万</td>
<td>千</td>
<td>百</td>
<td> 十</td>
<td>元</td>
<td> 角</td>
<td> 分 </td>
</tr>
</table>
</td>
<td> 备注</td>
</tr>
</table>
<input class="noprint" onclick=javascript:printit() type=button value=打印 name=button_print />
<input class="noprint" onclick=javascript:printsetup(); type=button value=打印页面设置 name=button_setup />
<input class="noprint" onclick=javascript:printpreview(); type=button value=打印预览 name=button_show />
</div>
</body>
</html> |
|