⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 list_report.tpl

📁 渣渣网络商店系统ZZShop v1.0完整运行程序,MYSQL数据库,APACHE服务器
💻 TPL
字号:
<script language="javascript">
<!--
	function printData()
	{
		var Obj = document.all.divContent;
		var win = window.open('about:blank', 'report');
		
		with(win)
		{
			focus();
			document.open();
			document.writeln('<link rel=stylesheet href="templates/css/style.css">');
			document.writeln("<table width=100% border=0 cellspacing=1 cellpadding=3 bgcolor='black'>");
			document.writeln(Obj.innerHTML);
			document.writeln("</table>");
			document.close();
			
			print();
		}
	}
	
	function doGenXML(Part, StartTime, EndTime)
	{
		window.location = "{CurrentURL}&code=genxml&StartTime=" + StartTime + '&EndTime=' + EndTime + '&Part=' + Part;
	}
	
	function doGenExcel(Part, StartTime, EndTime)
	{
		window.location = "{CurrentURL}&code=genexcel&StartTime=" + StartTime + '&EndTime=' + EndTime + '&Part=' + Part;
	}
	
//-->
</script>
<div id='divContent'>
<table width="100%"  border="0" cellspacing=0 cellpadding=5 class=adminlist>
    <tr>
	<td colspan=6 class='list_content'>
		时间段 {StartTime} - {EndTime}
	</td>
    </tr>
    <tr class="list_title">
        <th>时段</th>
        <th>订单数</th>
        <th>货款金额</th>
        <th>税额</th>
        <th>运费</th>
        <th>总金额</th>
    </tr>
    <!-- beginRow ReportList -->
    <tr class="list_content" align="center">
        <td>{ReportList.Part}</td>
        <td>{ReportList.Count}</td>
        <td>{ReportList.Sub}</td>
        <td>{ReportList.Tax}</td>
        <td>{ReportList.Carriage}</td>
        <td>{ReportList.Total}</td>
    </tr>
    <!-- endRow ReportList -->
    <tr class="list_content" align=center>
        <td>合计</td>
        <td>{SumCount} 笔</td>
        <td>{Currency} {SumSub}</td>
        <td>{Currency} {SumTax}</td>
        <td>{Currency} {SumCarriage}</td>
        <td>{Currency} {SumTotal}</td>
    </tr>
</table>
</div>
<table width=100% border=0 cellspacing=1 cellpadding=3>
    <tr class="list_bottom" align="right">
        <td colspan="6">
            <input type="button" value="导出XML" onClick='doGenXML("{Part}", "{StartTime}", "{EndTime}");'>
            <input type="button" value="导出Excel" onClick='doGenExcel("{Part}", "{StartTime}", "{EndTime}");'>
            <input type="button" value="打印数据" onClick='printData();'>
        </td>
	</tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -