初始版本
This commit is contained in:
62
application/views/scm/ori/exportExp.php
Executable file
62
application/views/scm/ori/exportExp.php
Executable file
@@ -0,0 +1,62 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1500px" class="list">
|
||||
<tr><td class='H' align="center" colspan="8"><h3>其他支出单记录</h3></td></tr>
|
||||
</table>
|
||||
<table class="table" width="1500" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="100" align="center">单据日期</th>
|
||||
<th width="150" align="center">单据编号</th>
|
||||
<th width="120" align="center">供应商</th>
|
||||
<th width="60" align="center">结算账户</th>
|
||||
<th width="60" align="center">付款金额</th>
|
||||
<th width="200" align="center">支出类别</th>
|
||||
<th width="60" align="center">金额</th>
|
||||
<th width="100" align="center">备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i = 1;
|
||||
$n = 1;
|
||||
$amount = 0;
|
||||
foreach($list as $arr=>$row) {
|
||||
$postData = unserialize($row['postData']);
|
||||
$n = isset($postData['entries']) ? count($postData['entries'])+1 : 1;
|
||||
?>
|
||||
<tr target="id">
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['billDate']?></td>
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['contactNo'].' '.$row['contactName'];?></td>
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['accountNumber'].' '.$row['accountName']?></td>
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['amount']?></td>
|
||||
|
||||
<?php
|
||||
$i = 1;
|
||||
foreach($postData['entries'] as $arr1=>$row1) {
|
||||
$amount += abs($row1['amount']);
|
||||
if ($i==1) {
|
||||
?>
|
||||
|
||||
<td ><?php echo $category[$row1['categoryId']]?></td>
|
||||
<td ><?php echo $row1['amount']?></td>
|
||||
<td ><?php echo $row1['description']?></td>
|
||||
</tr>
|
||||
<?php } else {?>
|
||||
<tr target="id">
|
||||
<td ><?php echo $category[$row1['categoryId']]?></td>
|
||||
<td ><?php echo $row1['amount']?></td>
|
||||
<td ><?php echo $row1['description']?></td>
|
||||
</tr>
|
||||
<?php }$i++;}?>
|
||||
<tr target="id">
|
||||
<td >合计</td>
|
||||
<td ><?php echo $amount?></td>
|
||||
<td ></td>
|
||||
</tr>
|
||||
<?php $amount = 0;$n = 1;}?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
64
application/views/scm/ori/exportInc.php
Executable file
64
application/views/scm/ori/exportInc.php
Executable file
@@ -0,0 +1,64 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table width="1500px" class="list">
|
||||
<tr><td class='H' align="center" colspan="8"><h3>其他收入单记录</h3></td></tr>
|
||||
</table>
|
||||
<table class="table" width="1500" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="100" align="center">单据日期</th>
|
||||
<th width="150" align="center">单据编号</th>
|
||||
<th width="120" align="center">客户名称</th>
|
||||
<th width="60" align="center">结算账户</th>
|
||||
<th width="60" align="center">收款金额</th>
|
||||
<th width="200" align="center">收入类型</th>
|
||||
<th width="60" align="center">金额</th>
|
||||
<th width="100" align="center">备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i = 1;
|
||||
$n = 1;
|
||||
$amount = 0;
|
||||
foreach($list as $arr=>$row) {
|
||||
$postData = unserialize($row['postData']);
|
||||
$n = isset($postData['entries']) ? count($postData['entries'])+1 : 1;
|
||||
?>
|
||||
<tr target="id">
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['billDate']?></td>
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['billNo']?></td>
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['contactNo'].' '.$row['contactName'];?></td>
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['accountNumber'].' '.$row['accountName']?></td>
|
||||
<td rowspan="<?php echo $n?>" ><?php echo $row['amount']?></td>
|
||||
|
||||
<?php
|
||||
$i = 1;
|
||||
foreach($postData['entries'] as $arr1=>$row1) {
|
||||
$amount += abs($row1['amount']);
|
||||
if ($i==1) {
|
||||
?>
|
||||
|
||||
<td ><?php echo $category[$row1['categoryId']]?></td>
|
||||
<td ><?php echo $row1['amount']?></td>
|
||||
<td ><?php echo $row1['description']?></td>
|
||||
</tr>
|
||||
<?php } else {?>
|
||||
<tr target="id">
|
||||
<td ><?php echo $category[$row1['categoryId']]?></td>
|
||||
<td ><?php echo $row1['amount']?></td>
|
||||
<td ><?php echo $row1['description']?></td>
|
||||
</tr>
|
||||
<?php }$i++;}?>
|
||||
<tr target="id">
|
||||
<td >合计</td>
|
||||
<td ><?php echo $amount?></td>
|
||||
<td ></td>
|
||||
</tr>
|
||||
|
||||
<?php $amount = 0;$n = 1;}?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
108
application/views/scm/ori/initExp.php
Executable file
108
application/views/scm/ori/initExp.php
Executable file
@@ -0,0 +1,108 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=20150427" rel="stylesheet" type="text/css">
|
||||
|
||||
<style>
|
||||
#bottomField{line-height:30px;}
|
||||
#bottomField label{width: 75px;display: inline-block;}
|
||||
.con-footer{padding:10px 0 0 0;}
|
||||
.con-footer .pl0 {padding-left: 0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
|
||||
<div class="bills">
|
||||
<div class="con-header">
|
||||
<dl class="cf">
|
||||
<dd class="pct30">
|
||||
<label>供应商:</label>
|
||||
<span class="ui-combo-wrap" id="customer">
|
||||
<input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date">
|
||||
<i class="ui-icon-ellipsis"></i></span></dd>
|
||||
<dd class="pct25 tc">
|
||||
<label>单据日期:</label>
|
||||
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-08-25">
|
||||
</dd>
|
||||
<dd id="identifier" class="pct25 tc">
|
||||
<label>单据编号:</label>
|
||||
<span id="number"><?php echo str_no('QTZC')?></span></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
<div class="con-footer cf">
|
||||
<ul id="amountArea" class="cf">
|
||||
<li id="accountWrap" class="dn pl0">
|
||||
<label>结算账户:</label>
|
||||
<span class="ui-combo-wrap" id="account" style="padding:0;">
|
||||
<input type="text" class="input-txt" autocomplete="off"><i class="trigger"></i>
|
||||
</span>
|
||||
<a id="accountInfo" class="ui-icon ui-icon-folder-open" style="display:none;"></a>
|
||||
</li>
|
||||
<li>
|
||||
<label>付款金额:</label>
|
||||
<input type="text" id="amount" class="ui-input ui-input-dis" disabled>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="c999 cf">
|
||||
<li>
|
||||
<label class="dn">制单人:</label>
|
||||
<span id="userName"></span>
|
||||
</li>
|
||||
<!-- <li>
|
||||
<label>审核人:</label>
|
||||
<span id="checkName"></span>
|
||||
</li> -->
|
||||
<!-- <li>
|
||||
<label class="dn">最后修改时间:</label>
|
||||
<span id="modifyTime"></span>
|
||||
</li> -->
|
||||
</ul>
|
||||
</div>
|
||||
<div class="cf" id="bottomField">
|
||||
<div class="fr" id="toolBottom"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="initCombo" class="dn">
|
||||
<input type="text" class="textbox categoryAuto" name="category" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/other-expense.js?ver=201508241556"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
65
application/views/scm/ori/initExpList.php
Executable file
65
application/views/scm/ori/initExpList.php
Executable file
@@ -0,0 +1,65 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph con" value="请输入单据号或供应商名或备注">
|
||||
</li>
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" id="beginDate" value="2015-05-04" class="ui-input ui-datepicker-input">
|
||||
<i>-</i>
|
||||
<input type="text" id="endDate" value="2015-05-10" class="ui-input ui-datepicker-input">
|
||||
</li>
|
||||
<li><a class="ui-btn" id="search">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><a class="ui-btn ui-btn-sp" id="add">新增</a>
|
||||
<a class="ui-btn" id="print" target="_blank" href="javascript:void(0);">打印</a>
|
||||
<a class="ui-btn" id="export" target="_blank" href="javascript:void(0);">导出</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/other-expense-list.js?ver=20151027"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
106
application/views/scm/ori/initInc.php
Executable file
106
application/views/scm/ori/initInc.php
Executable file
@@ -0,0 +1,106 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link href="<?php echo base_url()?>statics/css/<?php echo sys_skin()?>/bills.css?ver=20150827" rel="stylesheet" type="text/css">
|
||||
<style>
|
||||
#bottomField{line-height:30px;}
|
||||
#bottomField label{width: 75px;display: inline-block;}
|
||||
.con-footer{padding:10px 0 0 0;}
|
||||
.con-footer .pl0 {padding-left: 0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<span id="config" class="ui-icon ui-state-default ui-icon-config"></span>
|
||||
<div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
|
||||
<div class="bills">
|
||||
<div class="con-header">
|
||||
<dl class="cf">
|
||||
<dd class="pct30">
|
||||
<label>客户:</label>
|
||||
<span class="ui-combo-wrap" id="customer">
|
||||
<input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date">
|
||||
<i class="ui-icon-ellipsis"></i></span></dd>
|
||||
<dd class="pct25 tc">
|
||||
<label>单据日期:</label>
|
||||
<input type="text" id="date" class="ui-input ui-datepicker-input" value="2015-08-25">
|
||||
</dd>
|
||||
<dd id="identifier" class="pct25 tc">
|
||||
<label>单据编号:</label>
|
||||
<span id="number"><?php echo str_no('QTSR');?></span></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
<div class="con-footer cf">
|
||||
<ul id="amountArea" class="cf">
|
||||
<li id="accountWrap" class="dn pl0">
|
||||
<label>结算账户:</label>
|
||||
<span class="ui-combo-wrap" id="account" style="padding:0;">
|
||||
<input type="text" class="input-txt" autocomplete="off"><i class="trigger"></i>
|
||||
</span>
|
||||
<a id="accountInfo" class="ui-icon ui-icon-folder-open" style="display:none;"></a>
|
||||
</li>
|
||||
<li>
|
||||
<label>收款金额:</label>
|
||||
<input type="text" id="amount" class="ui-input ui-input-dis" disabled>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="c999 cf">
|
||||
<li>
|
||||
<label class="dn">制单人:</label>
|
||||
<span id="userName"></span>
|
||||
</li>
|
||||
<!-- <li>
|
||||
<label>审核人:</label>
|
||||
<span id="checkName"></span>
|
||||
</li> -->
|
||||
<!-- <li>
|
||||
<label class="dn">最后修改时间:</label>
|
||||
<span id="modifyTime"></span>
|
||||
</li> -->
|
||||
</ul>
|
||||
</div>
|
||||
<div class="cf" id="bottomField">
|
||||
<div class="fr" id="toolBottom"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="initCombo" class="dn">
|
||||
<input type="text" class="textbox categoryAuto" name="category" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/other-income.js?ver=201508241556"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
67
application/views/scm/ori/initIncList.php
Executable file
67
application/views/scm/ori/initIncList.php
Executable file
@@ -0,0 +1,67 @@
|
||||
<?php $this->load->view('header');?>
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph con" value="请输入单据号或客户名或备注">
|
||||
</li>
|
||||
<li>
|
||||
<label>日期:</label>
|
||||
<input type="text" id="beginDate" value="2015-05-04" class="ui-input ui-datepicker-input">
|
||||
|
||||
<i>-</i>
|
||||
<input type="text" id="endDate" value="2015-05-10" class="ui-input ui-datepicker-input">
|
||||
</li>
|
||||
<li><a class="ui-btn" id="search">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><a class="ui-btn ui-btn-sp" id="add">新增</a>
|
||||
<a class="ui-btn" id="print" target="_blank" href="javascript:void(0);">打印</a>
|
||||
<a class="ui-btn" id="export" target="_blank" href="javascript:void(0);">导出</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/other-income-list.js?ver=20151027"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
112
application/views/scm/ori/toPdf.php
Executable file
112
application/views/scm/ori/toPdf.php
Executable file
@@ -0,0 +1,112 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title><?php echo $transType==153402 ? '其他支出单' :'其他收入单'?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<style></style>
|
||||
</head>
|
||||
<body>
|
||||
<?php for($t=1; $t<=$countpage; $t++){?>
|
||||
<table width="800" align="center">
|
||||
|
||||
<tr height="15px">
|
||||
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;height:50px;"></td>
|
||||
</tr>
|
||||
<tr height="15px">
|
||||
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;"><?php echo $system['companyName']?></td>
|
||||
</tr>
|
||||
<tr height="15px">
|
||||
<td align="center" style="font-family:'宋体'; font-size:18px; font-weight:normal;height:25px;"><?php echo $transType==153402 ? '其他支出单' :'其他收入单'?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table width="800" align="center">
|
||||
<tr height="15" align="left" >
|
||||
<td width="250" style="font-family:'宋体'; font-size:14px;height:20px;">供应商:<?php echo $contactNo.' '.$contactName?> </td>
|
||||
<td width="10" ></td>
|
||||
<td width="200" >单据日期:<?php echo $billDate?></td>
|
||||
<td width="230" >单据编号:<?php echo $billNo?></td>
|
||||
<td width="30" ></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table width="800" border="1" cellpadding="2" cellspacing="1" align="center" style="border-collapse:collapse;border:solid #000000;border-width:1px 0 0 1px;">
|
||||
|
||||
<tr style="height:20px">
|
||||
<td width="50" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">序号</td>
|
||||
<td width="250" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center"><?php echo $transType==153402 ? '支出类别' :'收入类别'?></td>
|
||||
<td width="150" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">金额</td>
|
||||
<td width="250" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;" align="center">备注</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$i = ($t-1)*$num + 1;
|
||||
foreach($list as $arr=>$row) {
|
||||
if ($row['i']>=(($t-1)*$num + 1) && $row['i'] <=$t*$num) {
|
||||
?>
|
||||
<tr style="height:20px">
|
||||
<td width="50" style="border:solid #000000;border-width:0 1px 1px 0;height:15px;font-family:'宋体'; font-size:12px;" align="center"><?php echo $row['i']?></td>
|
||||
<td width="250"><?php echo $row['categoryName'];?></td>
|
||||
<td width="150" align="right"><?php echo str_money($row['amount'],2)?></td>
|
||||
<td width="250" align="left"><?php echo $row['description']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$s = $row['i'];
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
//补全
|
||||
if ($t==$countpage) {
|
||||
for ($m=$s+1;$m<=$t*$num;$m++) {
|
||||
?>
|
||||
<tr style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:12px;">
|
||||
|
||||
<td width="50" style="border:solid #000000;border-width:0 1px 1px 0;height:15px;font-family:'宋体'; font-size:12px;" align="center"><?php echo $m?></td>
|
||||
<td width="250" ></td>
|
||||
<td width="150" align="center"></td>
|
||||
<td width="250" align="center"></td>
|
||||
|
||||
</tr>
|
||||
<?php }}?>
|
||||
|
||||
<?php if ($t==$countpage) {?>
|
||||
<tr style="height:20px">
|
||||
<td colspan="2" align="right" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px;height:15px;font-family:'宋体'; font-size:12px;">合计:</td>
|
||||
<td width="150" align="right" ><?php echo str_money(abs($totalAmount),2)?></td>
|
||||
<td width="250" align="center"></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr target="id">
|
||||
<td colspan="4" style="border:solid #000000;border-width:0 1px 1px 0;padding:2px; font-family:'宋体'; font-size:14px;height:15px;">合计 金额大写: <?php echo str_num2rmb(abs($totalAmount))?> </td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
<table width="800" align="center">
|
||||
<tr height="25" align="left">
|
||||
<td align="left" width="250" style="font-family:'宋体'; font-size:14px;height:25px;">结算账户: <?php echo $accountName?></td>
|
||||
<td width="250" style="font-family:'宋体'; font-size:14px;height:25px;"><?php echo $transType==153402 ? '付款金额' :'收款金额'?>: <?php echo str_money(abs($totalAmount),2)?></td>
|
||||
<td width="250" style="font-family:'宋体'; font-size:14px;height:25px;">制单人:<?php echo $userName?></td>
|
||||
<td width="100" ></td>
|
||||
<td width="100" ></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<?php echo $t==$countpage?'':'<br><br>';}?>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user