<!-- include 'header' -->
 <script src="<?= WEB_SITE_GLOBAL ?>js/receipt.js"></script>
<body>
	<div class="mainLayout">
		<div class="mainMenu">
			<div class="menuItem">
				<a href="#" class="mLogo">CLD</a>
				<ul>
					<!-- include 'menuReceipt' -->
				</ul>
			</div>
		</div>
		<div class="warpContent">
			<div class="subMenu fL">
				<div class="menuItem">
					<ul>
						<!-- include 'receipt_menu' -->
					</ul>
				</div>
			</div>
			<div class="adminContent autoHeight" style="height: 821px;">
			
			
			
				<legend><div class="fR"></div>以下是您的费用</legend>
				<div class="demandCate">
				<form action="/expenses" id="up" method="post">
					<input type="hidden" name="item" <!-- if {{item}}=="" --> value="all" <!-- else --> value="{{item}}" <!-- endif -->  />
					
					<ul class="cateList ">
						<li>
						<a href="/expenses" <!-- if {{item}}=="all"||{{item}}=="" --> class="now" <!-- endif --> >所有</a>
						<a href="/expenses/expenses" <!-- if {{item}}=="expenses" --> class="now" <!-- endif --> >借款申请</a>
						<a href="/expenses/receipts" <!-- if {{item}}=="receipts" --> class="now" <!-- endif --> >报销单</a>
						<a href="/expenses/remits" <!-- if {{item}}=="remits" --> class="now" <!-- endif --> >对公汇款</a>
						<a href="/expenses/train" <!-- if {{item}}=="train" --> class="now" <!-- endif --> >培训班结算</a>
						</li>
					
	  					<li>
	  					<select name="year" id="Y" onchange="receiptYear();">
	  					{{dateHtml}}
	  					</select> 
	  					<select name="moth" id="M" onchange="receiptMoth();">
	  					<option value="">所有月份</option>
	  					{{mothHtml}}
	  					</select>
	  					</li>
	  					<li>报销总计：￥{{stList.rePrice}}</li>
	  					<li>同意支付：<span class="colGreen">￥{{stList.agPrice}}</span></li>
	  					<li>审批中：￥{{stList.skPrice}}</li>
	  			</ul>
	  			</form>
	  		</div>
	  		
	  		<div class="saeaList">
				<div class="entry">
					<table class="table table-bordered table-condensed">
						<thead><tr><th width="100" class="taC">费用类型</th><th width="100" class="taC">费用金额</th><th width="120" class="taC">费用所在办事处</th><th width="120" class="taC">费用单号</th><th class="taC">费用说明</th><th width="100" class="taC">状态</th><th width="80" class="taC">操作</th></tr></thead>
						<tbody>
						<!-- loop receiptList -->
						<tr>
							<td>
							<!-- if {{receiptList' value.Rtype}}==1 -->
			  					借款申请
			  				<!-- elseif {{receiptList' value.Rtype}}==2 -->
			  					对公汇款
			  				<!-- elseif {{receiptList' value.Rtype}}==0 -->	
			  					报销单
			  				<!-- elseif {{receiptList' value.Rtype}}==3 -->	
			  					培训班结算
			  				<!-- endif -->
							</td>
							<td class="taR ">
							<b class="colOrange">￥{{receiptList' value.sum}}</b>
							<!-- if {{receiptList' value.Rtype}}==1 -->
			  					<b <!-- if {{receiptList' value.sum}}>{{receiptList' value.loanSum}} --> class="colRed" <!-- else --> class="colGreen" <!-- endif --> > 
			  					￥{{receiptList' value.loanSum}}</b>
			  				<!-- endif -->
							</td>
							<td>{{receiptList' value.category}}</td>
							<td>{{receiptList' value.receiptOrder}}<p class="colGray">{{receiptList' value.date}}</p></td>
							<td>{{receiptList' value.explanation}}</td>
							<td>
							<!-- if {{receiptList' value.status}}==1 -->
								执行中
								<p class="colGray">{{receiptList' value.pastDate}}</p>
							<!-- elseif {{receiptList' value.status}}==2 -->
								审批中
							<!-- elseif {{receiptList' value.status}}==3 -->
							终止
							<!-- elseif {{receiptList' value.status}}==4 -->
							撤回
							<!-- elseif {{receiptList' value.status}}==5 -->
							待提交
							<!-- elseif {{receiptList' value.status}}==6 -->
							执行中
							<!-- elseif {{receiptList' value.status}}==7 -->
							待提交
							<!-- elseif {{receiptList' value.status}}==8 and {{receiptList' value.Rtype}}==1  -->
							借款完成
							<!-- elseif ({{receiptList' value.status}}==8 and {{receiptList' value.Rtype}}!=1 ) or {{receiptList' value.status}}==9 -->
							费用完成
							<!-- endif -->
							
							</td>
							<td>
							<!-- if {{receiptList' value.Rtype}}==3 -->
								<a href="/receiptTrain/info/{{receiptList' value.ridKey}}.html" target="_blank">详情</a>
								
							<!-- else -->	
			  					<a href="/expensesCollect/{{receiptList' value.rid}}" target="_blank">详情</a>
			  				<!-- endif -->
							</td>
						</tr>
						<!-- endloop -->
						
						</tbody>
					</table>
				</div>
			</div>
	  		
	  		
	  		
	  		
		</div>
	</div>
	<!--弹出-->
<div class="modal hide fade" id="addCallout">
    <div class="modal-header">
    <h3>添加批注</h3>
    </div>
    <div class="modal-body">
    <form class="">
	    	<div class="control-group">
				<div class="controls clearfix">
					<label>
	                	批注内容
	              	</label>
	              	<textarea rows="8" class="span6"></textarea>
				</div>
	    	</div>
    </form>
    </div>
	<div class="modal-footer">
	    <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">取消</a>
	   	<a href="#" class="button">确定</a>
	</div>
</div>
    <!--弹出内容-->
<script type="text/javascript">autoFlashHeight();</script>	
</body>