<!-- include 'header' -->
<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">
					<ul>
						<!-- include 'invoiceMenu' -->
					</ul>
				</div>
			</div>
			<div class="adminContent autoHeight">

				<div class="borad-menu">
				</div>
				<div class="borad-news">
					<div class="saeaList">
					
						<div class="clearfix">
							
							<legend><div class="fR"></div>待打印 <div class="fR"><a href="/invoicePrintStayAchieve">查看更多</a></div></legend>
							<!-- if !empty({{toPrint}}) -->
							<table class="table table-bordered table-condensed">
								<tbody>
								<tr><th class="taC">开票流水号</th><th class="taC">开票单位（抬头）</th><th class="taC">开票金额</th><th class="taC">提交开票</th><th class="taC">完成审批</th><th class="taC" width="120">操作</th></tr>
								<!-- loop toPrint -->
                                <tr>
                                    <td><a href="#invdetail" node-invoice='INFO' data-isKey="{{invoiceList' value.iidKey}}" data-toggle="modal">{{invoiceList' value.invoiceSerial}}</a></td>
                                    <td>
                                    <!-- if !empty({{invoiceList' value.invoiceType}}) -->
                                   	{{invoiceList' value.invoiceCompany}}
                                    <!-- else -->
                                    {{invoiceList' value.invoiceTitle}}
                                    <!-- endif -->
                                    </td>
                                    <td>
                                    <!-- if !empty({{invoiceList' value.invoiceType}}) -->
                                    <b>￥{{invoiceList' value.invoicePrice}}</b><sup>专</sup>
                                    <!-- else -->
                                    <b>￥{{invoiceList' value.invoicePrice}}</b>
                                    <!-- endif -->
                                    </td>
                                    <td>{{invoiceList' value.categoryName}}{{invoiceList' value.userName}} {{invoiceList' value.date}}</td>
                                    <td>{{invoiceList' value.lastApprover.username}}&nbsp;{{invoiceList' value.lastApprover.date}}</td>
                                    <td><a class="button btn-block" href="/invoicePrintDetail/{{invoiceList' vlaue.iidKey}}.html" >打印发票</a></td>
                                </tr>
                                <!-- endloop -->
								</tbody>
							</table>
							<!-- else -->
							<blockquote><p class="colGray">暂时没有需要打印的发票</p></blockquote>
							<!-- endif -->
						</div>
						
						
						<div class="clearfix"><!-- /invoicePrintAchieve -->
							<legend><div class="fR"><a href="/invoicePrintStayAchieve/1/PRINTED">查看更多</a></div>最近打印发票</legend>
							<!-- if !empty({{printed}}) -->
							<table class="table table-bordered table-condensed">
								<tbody>
								<tr><th class="taC">开票流水号</th><th class="taC">开票单位（抬头）</th><th class="taC">开票金额</th><th class="taC">提交开票</th><th class="taC">发票号</th><th class="taC">打印发票</th></tr>
								<!-- loop printed -->
                                <tr>
                                    <td><a href="#invdetail" node-invoice='INFO' data-isKey="{{invoiceList' value.iidKey}}" data-toggle="modal">{{invoiceList' value.invoiceSerial}}</a></td>
                                    <td>
                                    <!-- if !empty({{invoiceList' value.invoiceType}}) -->
                                   	{{invoiceList' value.invoiceCompany}}
                                    <!-- else -->
                                    {{invoiceList' value.invoiceTitle}}
                                    <!-- endif -->
                                    </td>
                                    <td>
                                    <!-- if !empty({{invoiceList' value.invoiceType}}) -->
                                    <b>￥{{invoiceList' value.invoicePrice}}</b><sup>专</sup>
                                    <!-- else -->
                                    <b>￥{{invoiceList' value.invoicePrice}}</b>
                                    <!-- endif -->
                                    </td>
                                    <td>{{invoiceList' value.categoryName}}{{invoiceList' value.userName}} {{invoiceList' value.date}}</td>
                                    <td>{{invoiceList' value.invoiceNo}}</td>
                                    <td>{{invoiceList' value.printer}}&nbsp;{{invoiceList' value.printTime}}</td>
                                </tr>
                                <!-- endloop -->
								</tbody>
							</table>
							<!-- else -->
							<blockquote><p class="colGray">暂时没有已打印的发票</p></blockquote>
							<!-- endif -->
						</div>
						
					</div>
				</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 hide fade" id="editprint">
    <div class="modal-header">
    <h3>修改打印信息</h3>
    </div>
    <div class="modal-body">
		<form class="form-horizontal">
			<div class="control-group">
				<label class="control-label"><span class="colRed">*</span>发票号</label>
				<div class="controls">
					No.<input value="07957263" type="text">
				</div>
			</div>
		</form>
    </div>
    <div class="modal-footer">
        <a href="#" class="button" data-dismiss="modal" aria-hidden="true">确定</a>
        <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
    </div>
</div>
    <!--弹出内容-->                         	
<script type="text/javascript">autoFlashHeight();</script>	
</body>