<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<html>
<head>
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<script language="javascript"
src="/inc/pCalendar/fPopUpCalendarDlg.js">
</script>
<script language="javascript" src="/js/common.js"></script>
<script language="javascript" src="/js/frameworkobject.js"></script>
<script language="javascript" src="/js/framework.js"></script>
<style media="print">.noprint { DISPLAY: none }</style>
</head>
<body>
<!-- 插入打印控件 -->
<OBJECT ID="jatoolsPrinter"
CLASSID="CLSID:B43D3361-D975-4BE2-87FE-057188254255"
codebase="/jatoolsP.cab#version=1,1,6,5" height="0"
width="0"></OBJECT>
<INPUT TYPE=hidden name=thepath id=thepath value="">
<form name="outLayForm" method="post" action="/outLay.do">
<table width="100%" border="0" cellspacing="0" cellpadding="0"
class="tableframe">
<tr class="listrow" >
</font>
<td align="right" class="listcellrow"><input type="button" name="query" value="查询" οnclick="javascript:query_chart();" class="button">
<input type="button" value="打印" class="button"οnclick="javascript:doPrint('打印...');" />
<input type="button" value="打印预览" class="button"οnclick="javascript:doPrint('打印预览...');" />
<input type="button" name="back" value="返回" class="button"
onClick="doback()"></td></tr></table>
<div id='page1'>
<table class="printtable">
<tr class="line">
<td colspan="5">
xxxxxx俱乐部管理系统
</td>
</tr>
<tr class="line">
<td colspan="3">
消费项
</td>
<td colspan="2">
消费金额
</td>
</tr>
<tr class="line">
<td colspan="3">
报名费
</td>
<td colspan="2">
200
</td>
</tr>
<tr class="line">
<td colspan="3">
点餐
</td>
<td colspan="2">
150
</td>
</tr>
<tr class="line">
<td colspan="3">
xxx
</td>
<td colspan="2">
200
</td>
</tr>
<tr class="line">
<td colspan="3">
xxx
</td>
<td colspan="2">
150
</td>
</tr>
<tr class="line">
<td>
小计
</td>
<td colspan="4">
750
</td>
</tr>
<tr class="line">
<td>
收费时间
</td>
<td colspan="4">
2012/7/15 0:00:00
</td>
</tr>
<tr class="line">
<td>
会员
</td>
<td colspan="4">
xxxxx
</td>
</tr>
<tr class="line">
<td >
扣除
</td>
<td colspan="3">
A积分
</td>
<td colspan="2">
700
</td>
</tr>
<tr class="line">
<td >
</td>
<td colspan="3">
B积分
</td>
<td colspan="2">
50
</td>
</tr>
<tr class="line">
<td >
剩余
</td>
<td colspan="3">
A积分
</td>
<td colspan="2">
700
</td>
</tr>
<tr class="line">
<td >
</td>
<td colspan="3">
B积分
</td>
<td colspan="2">
50
</td>
</tr>
<tr class="line">
<td colspan="5">
地址:xxxxxxxx
</td>
</tr>
<tr class="line">
<td colspan="5">
服务电话:xxxxxxxx
</td>
</tr>
</table>
<table width="500" height="78" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="128" height="28" bgcolor="#CC99CC">用户名</td>
<td width="135" bgcolor="#CC99CC">密码</td>
<td width="179" bgcolor="#CC99CC">单位</td>
<td width="189" bgcolor="#CC99CC">联系方式</td>
</tr>
<tr>
<td height="21">zz</td>
<td>123</td>
<td>顶顶顶顶顶顶</td>
<td><p>565555555</p> </td>
</tr>
<tr>
<td height="19">李四</td>
<td>456</td>
<td>对方答复</td>
<td><img src="001.jpg" width="235" height="93" /></td>
</tr>
</table>
</div>
</form>
</body>
<script language="javascript">
function doback(){
var url="/outLay.do?method=list";
location.href = url
}
function doclick(){
var name = document.forms[0].item("orgName");
var totalOutlay = document.forms[0].item("totalOutlay");
if(name==null||name.value==""){
alert("单位名称不能为空");return false;
}
if(totalOutlay==null||totalOutlay.value==""){
alert("总支出不能为空");return false;
}
document.forms[0].action="/outLay.do?method=save";
document.forms[0].submit();
}
</script>
<script type="text/javascript">
function doPrint(how)
{ if(typeof(jatoolsPrinter.page_div_prefix)=='undefined'){
alert("请将此系统设置为可信任的站点,然后安装jatools ActiveX控件!")
return ;
}
//打印文档对象
var myreport ={
documents: document, // 打印页面(div)们在本文档中
copyrights : '杰创软件拥有版权 www.jatools.com' // 版权声明必须
};
// 调用打印方法
if(how == '打印预览...')
jatoolsPrinter.printPreview(myreport ); // 打印预览
else if(how == '打印...')
jatoolsPrinter.print(myreport ,true); // 打印前弹出打印设置对话框
else
jatoolsPrinter.print(myreport ,false); // 不弹出对话框打印
}
function query_chart(){
document.forms[0].action="/outLay.do?method=chart";
document.forms[0].submit();
}
</script>
</html>
使用手册参考地址 http://www.jatools.com/print/guide.htm#04
<html>
<head>
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<script language="javascript"
src="/inc/pCalendar/fPopUpCalendarDlg.js">
</script>
<script language="javascript" src="/js/common.js"></script>
<script language="javascript" src="/js/frameworkobject.js"></script>
<script language="javascript" src="/js/framework.js"></script>
<style media="print">.noprint { DISPLAY: none }</style>
</head>
<body>
<!-- 插入打印控件 -->
<OBJECT ID="jatoolsPrinter"
CLASSID="CLSID:B43D3361-D975-4BE2-87FE-057188254255"
codebase="/jatoolsP.cab#version=1,1,6,5" height="0"
width="0"></OBJECT>
<INPUT TYPE=hidden name=thepath id=thepath value="">
<form name="outLayForm" method="post" action="/outLay.do">
<table width="100%" border="0" cellspacing="0" cellpadding="0"
class="tableframe">
<tr class="listrow" >
</font>
<td align="right" class="listcellrow"><input type="button" name="query" value="查询" οnclick="javascript:query_chart();" class="button">
<input type="button" value="打印" class="button"οnclick="javascript:doPrint('打印...');" />
<input type="button" value="打印预览" class="button"οnclick="javascript:doPrint('打印预览...');" />
<input type="button" name="back" value="返回" class="button"
onClick="doback()"></td></tr></table>
<div id='page1'>
<table class="printtable">
<tr class="line">
<td colspan="5">
xxxxxx俱乐部管理系统
</td>
</tr>
<tr class="line">
<td colspan="3">
消费项
</td>
<td colspan="2">
消费金额
</td>
</tr>
<tr class="line">
<td colspan="3">
报名费
</td>
<td colspan="2">
200
</td>
</tr>
<tr class="line">
<td colspan="3">
点餐
</td>
<td colspan="2">
150
</td>
</tr>
<tr class="line">
<td colspan="3">
xxx
</td>
<td colspan="2">
200
</td>
</tr>
<tr class="line">
<td colspan="3">
xxx
</td>
<td colspan="2">
150
</td>
</tr>
<tr class="line">
<td>
小计
</td>
<td colspan="4">
750
</td>
</tr>
<tr class="line">
<td>
收费时间
</td>
<td colspan="4">
2012/7/15 0:00:00
</td>
</tr>
<tr class="line">
<td>
会员
</td>
<td colspan="4">
xxxxx
</td>
</tr>
<tr class="line">
<td >
扣除
</td>
<td colspan="3">
A积分
</td>
<td colspan="2">
700
</td>
</tr>
<tr class="line">
<td >
</td>
<td colspan="3">
B积分
</td>
<td colspan="2">
50
</td>
</tr>
<tr class="line">
<td >
剩余
</td>
<td colspan="3">
A积分
</td>
<td colspan="2">
700
</td>
</tr>
<tr class="line">
<td >
</td>
<td colspan="3">
B积分
</td>
<td colspan="2">
50
</td>
</tr>
<tr class="line">
<td colspan="5">
地址:xxxxxxxx
</td>
</tr>
<tr class="line">
<td colspan="5">
服务电话:xxxxxxxx
</td>
</tr>
</table>
<table width="500" height="78" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="128" height="28" bgcolor="#CC99CC">用户名</td>
<td width="135" bgcolor="#CC99CC">密码</td>
<td width="179" bgcolor="#CC99CC">单位</td>
<td width="189" bgcolor="#CC99CC">联系方式</td>
</tr>
<tr>
<td height="21">zz</td>
<td>123</td>
<td>顶顶顶顶顶顶</td>
<td><p>565555555</p> </td>
</tr>
<tr>
<td height="19">李四</td>
<td>456</td>
<td>对方答复</td>
<td><img src="001.jpg" width="235" height="93" /></td>
</tr>
</table>
</div>
</form>
</body>
<script language="javascript">
function doback(){
var url="/outLay.do?method=list";
location.href = url
}
function doclick(){
var name = document.forms[0].item("orgName");
var totalOutlay = document.forms[0].item("totalOutlay");
if(name==null||name.value==""){
alert("单位名称不能为空");return false;
}
if(totalOutlay==null||totalOutlay.value==""){
alert("总支出不能为空");return false;
}
document.forms[0].action="/outLay.do?method=save";
document.forms[0].submit();
}
</script>
<script type="text/javascript">
function doPrint(how)
{ if(typeof(jatoolsPrinter.page_div_prefix)=='undefined'){
alert("请将此系统设置为可信任的站点,然后安装jatools ActiveX控件!")
return ;
}
//打印文档对象
var myreport ={
documents: document, // 打印页面(div)们在本文档中
copyrights : '杰创软件拥有版权 www.jatools.com' // 版权声明必须
};
// 调用打印方法
if(how == '打印预览...')
jatoolsPrinter.printPreview(myreport ); // 打印预览
else if(how == '打印...')
jatoolsPrinter.print(myreport ,true); // 打印前弹出打印设置对话框
else
jatoolsPrinter.print(myreport ,false); // 不弹出对话框打印
}
function query_chart(){
document.forms[0].action="/outLay.do?method=chart";
document.forms[0].submit();
}
</script>
</html>
使用手册参考地址 http://www.jatools.com/print/guide.htm#04