<!-- include 'header' -->
<link href="<?= WEB_SITE_GLOBAL ?>css/datepicker.min.css" rel="stylesheet" type="text/css">
<script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.min.js"></script>
<script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.zh.js"></script>
<script src="<?= WEB_SITE_GLOBAL ?>js/invoice.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">
					<!-- include 'invoiceMenu' -->
				</div>
			</div>
			<div class="adminContent autoHeight">
				<legend>
					已打印发票
				</legend>
				<div class="demandCate">
				<form action="/invoicePrintStayAchieve/1/{{status}}"  id="iaa" method="get" >
				
				
					<ul class="cateList">
						<li><a <!-- if {{status}}=='ALL' --> class="now" <!-- endif --> href="/invoicePrintStayAchieve/1/ALL">所有</a>
	  					<a <!-- if {{status}}=='TOPRINT' --> class="now" <!-- endif --> href="/invoicePrintStayAchieve/1/TOPRINT">待打印</a>
	  					<a <!-- if {{status}}=='PRINTED' --> class="now" <!-- endif --> href="/invoicePrintStayAchieve/1/PRINTED" >已打印</a></li>
	  					
	  					
	  					
	  					<li>
							<select name="invoiceType" node-invoiceType >
								<option <!-- if {{invoiceType}}=='ALL' --> selected <!-- endif --> value="ALL">类型</option>
								<option <!-- if {{invoiceType}}=='ORDINARY' --> selected <!-- endif --> value="ORDINARY">普通发票</option>
								<option <!-- if {{invoiceType}}=='SPECIAL' --> selected <!-- endif --> value="SPECIAL">专用发票</option>
							</select>
						</li>
						<li>
							<select name="invoiceTrain" node-invoiceTrain >
								<option <!-- if {{invoiceTrain}}=='ALL' --> selected <!-- endif --> value="ALL">所有</option>
								<option <!-- if {{invoiceTrain}}=='ORDINARY' --> selected <!-- endif --> value="ORDINARY">个人发票</option>
								<option <!-- if {{invoiceTrain}}=='TRAIN' --> selected <!-- endif --> value="TRAIN">培训班发票</option>
							</select>
						</li>
						<!-- if {{invoiceTrain}}=='TRAIN' -->
						<li>
						<select name="invoiceTrainName" node-invoiceTrainName style="width:150px;">
								<option <!-- if {{invoiceTrainName}}=='ALL' --> selected <!-- endif --> value="ALL"">所有</option>
								<!-- loop trainList -->
								<option <!-- if {{invoiceTrainName}}=={{trainList' value.itidKey}} --> selected <!-- endif --> value="{{trainList' value.itidKey}}">{{trainList' value.trainName}}</option>
								<!-- endloop -->
								
							</select>
							
						</li>
						<!-- endif -->
	  					
	  					
	  					
	  					<li>
							<div class="search">
								<div class="input-append">
									<input class="datepicker-here span3" name="date" value="{{date}}" placeholder="按时间筛选" type="text" data-range="true" data-multiple-dates-separator=" : " data-language="zh">
									<button class="btn btn-small" type="submit">查询</button>
								</div>
							</div></li>
	  					
						<li>
							<div class="search">
								<div class="input-append">
									
								<input class="span3" type="text" name="MebSea"  data-irmMebSea value="{{MebSeaEn}}" placeholder="发票抬头、开票金额、发票号">
								<button class="btn btn-small" node-iramMebSea type="submit">搜索</button>
								
								</div>
							</div></li>
					</ul>
					</form>
				</div>
				<div class="saeaList">
					<table class="table table-hover">
						<tbody>
						<tr class="thead"><th>开票流水号</th><th>开票单位（抬头）</th> <th>纳税人识别码</th> <th>注册地址`电话</th><th>开户银行`账号</th> <th>备注</th><th>开票内容</th> <th>数量</th><th>单价</th> <th>开票金额</th><th>提交开票</th><th>发票号</th><th>打印发票</th></tr>
						
						<!-- loop list -->
						<tr>
							<td><a href="#invdetail" node-invoice='INFO' data-isKey="{{pendingInvoice' value.iidKeyK}}" data-toggle="modal">{{list' value.invoiceSerial}}</a></td>
							<td><!-- if !empty({{list' value.invoiceType}}) -->
	                                   	{{list' value.invoiceCompany}}
	                                    <!-- else -->
	                                    {{list' value.invoiceTitle}}
	                                    <!-- endif --></td>
	                                    
	                          <td>{{list' value.TIN}}</td>   
	                          <td>{{list' value.address}} {{list' value.phone}}</td>             
	                           <td>{{list' value.bank}} {{list' value.bankAccount}}</td>                      
	                                
	                                 <td>{{list' value.remark}}</td>    
	                         <td>{{list' value.invoiceElement}}</td>  
	                                
	                                
	                         <td>{{list' value.invoiceQuantity}}</td>    
	                         <td>{{list' value.invoiceUnitPrice}}</td>           
	                                    
							<td>
							<!-- if !empty({{list' value.invoiceType}}) -->
	                        <b>￥{{list' value.invoicePrice}}</b><sup>专</sup>
	                          <!-- else -->
	                          <b>￥{{list' value.invoicePrice}}</b>
	                          <!-- endif -->
							</td>
							
							
							
							<td>{{list' value.categoryName}}{{list' value.userName}} {{list' value.date}}</td>
							<td>
							  {{invoiceList' value.invoiceNo}}
							</td>
							<td>
							<!-- if {{list' value.printStatus}}==0 -->
							<a  node-invoice='PRINT' data-isKey="{{pendingInvoice' value.iidKeyK}}" href="#printInvice" data-toggle="modal">打印发票</a>
							<!-- else -->
							{{invoiceList' value.operationLog.username}}&nbsp;{{invoiceList' value.printTime}}
							<!-- endif -->
							</td>
						</tr>
						<!-- endloop -->
						
						
						</tbody>
					</table>
				</div>
						  		<!--翻页-->
				<div class="demandPage">
					<ul class="pagination fL">
	  							<!-- if {{page.previous}}==0 -->
								<li><a href="javascript:void(0)" title="上一页">&lt;</a></li>
								<!-- else -->
								<li><a href="/invoicePrintStayAchieve/{{page.previous}}{{get}}" title="上一页">&lt;</a></li>
								<!-- endif -->	
								
	  							<!-- if {{page.on_page}}>=3 -->
	  							<li><a href="/invoicePrintStayAchieve/1{{get}}" title="上一页">1</a></li>
	  							<li class="point"><span>...</span></li>
	  							<!-- endif -->
	  							
	  							{{page.page}}
	  							
	  							<!-- if {{page.on_page}}<3 && {{page.total_page}}>5 -->
	  							<li><a href="/invoicePrintStayAchieve/4{{get}}" >4</a></li>
	  							<li><a href="/invoicePrintStayAchieve/5{{get}}" >5</a></li>
	  							<!-- endif -->
	  							
	  							<!-- if {{page.total_page}}>3 -->
	  							<li class="point"><span>...</span></li>
			  					<!-- endif -->
			  					
			  					<!-- if {{page.next}}=={{page.on_page}} -->
								<li><a href="javascript:void(0)" title="下一页">&gt;</a></li>
								<!-- else -->
								<li><a href="/invoicePrintStayAchieve/{{page.next}}{{get}}" title="下一页">&gt;</a></li>
								<!-- endif -->
			  					
			  		</ul>
			  	</div>				
			</div>
		</div>
	</div>
	
	<div loading-msg='true' style="position:absolute;  left:50%;  top:50%;  "></div>
	
	<div class="modal  fade" id="invdetail">
		
		<div id="nc"></div>
	</div>
	
	<div class="modal  fade" id="printInvice">
		
		<div id="prIn">2222</div>
	</div>
	
<script type="text/javascript">autoFlashHeight();</script>	
</body>