<!--{include file="<!--{$salepath}-->public/header.tpl"}-->

<body>
			<div class="wrap-container clearfix">
				<div class="column-content-detail">
					<form class="layui-form" action="" id="forms">
                                            <input type="hidden" name="c" value="Supplier">
						<div class="layui-form-item">
							<div class="layui-inline tool-btn">
                                                            <button type="button" class="layui-btn layui-btn-small layui-btn-normal addBtn" data-url="sale.php?c=Supplier&a=add" data-text="新增供应商"><i class="layui-icon">&#xe654;</i></button>
								<button class="layui-btn layui-btn-small layui-btn-danger delBtn"  data-url="sale.php?c=Supplier&a=del"><i class="layui-icon">&#xe640;</i></button>	
                                                        </div>
                                                        <div class="layui-inline">
								<select name="search" lay-filter="status">
									<option value="supplier_name" <!--{if $search=="supplier_name"}-->selected<!--{/if}-->>供应商名称</option>
                                                                        <option value="supplier_number" <!--{if $search=="supplier_number"}-->selected<!--{/if}-->>供应商编号</option>			
								</select>
							</div>
							<div class="layui-inline">
								<input type="text" name="keyword" required lay-verify="required" placeholder="请输入关键字" autocomplete="off" class="layui-input" value="<!--{$keyword}-->">
							</div>
							
							<button type="button" class="layui-btn layui-btn-normal" id="search">搜索</button>
						</div>
					</form>
					<div class="layui-form" id="table-list">
						<table class="layui-table" lay-even lay-skin="nob">
						<colgroup>
								<col width="50">
								<col width="50">
								<col class="hidden-xs" width="50">
								<col width="50">
                                                                <col width="50">
                                                                <col width="50">
                                                                <col class="hidden-xs" width="50">
                                                                <col class="hidden-xs" width="200">
                                                                <col width="150">
								
							</colgroup>
							<thead>
								<tr>
									<th><input type="checkbox" lay-skin="primary" lay-filter="allChoose" data-id=""></th>
									<th>供应商名称</th>
									<th class="hidden-xs">供应商编号</th>
									<th>应付款余额</th>
									<th>预付款余额</th>
                                                                        <th>实际应付</th>
                                                                        <th class="hidden-xs">联系人</th>
                                                                        <th class="hidden-xs">地址</th>
                                                                        <th>操作</th>
								</tr>
							</thead>
							<tbody>
                                                             <!--{if empty($list)}-->
                                                                    <tr>
                                                                           <td colspan="9" style="text-align: center;">没有符合条件的信息！</td>
                                                                    </tr>
                                                       <!--{else}-->
                                                              
                                                               <!--{foreach $list as $key=>$volist}-->
                                                                <tr>
                                                                       <td><input type="checkbox"  lay-skin="primary" data-id="<!--{$volist.id}-->"></td>
									<td><!--{$volist.supplier_name}--></td>
									<td class="hidden-xs">    <!--{$volist.supplier_number}--></td>
                                                                        <td><!--{$volist.ying_money}--></td>
                                                                        <td><!--{$volist.supplier_money}--></td>
                                                                        <!--{if $volist.shi_money < '0'}-->
                                                                        <td style="color: red;"><!--{$volist.shi_money}--></td>
                                                                        <!--{else}-->
                                                                        <td><!--{$volist.shi_money}--></td>
                                                                        <!--{/if}-->
									<td class="hidden-xs"><!--{$volist.supplier_link}--></td>
                                                                        <td class="hidden-xs"><!--{$volist.address}--></td>
									<td>
										<div class="layui-inline">
											<button class="layui-btn layui-btn-small layui-btn-normal addBtn" data-id="<!--{$volist.id}-->" data-url="sale.php?c=Supplier&a=add&id=<!--{$volist.id}-->" data-text='编辑供应商'><i class="layui-icon">&#xe642;</i></button>
											<button class="layui-btn layui-btn-small layui-btn-danger del-btn" data-id="<!--{$volist.id}-->" data-url="sale.php?c=Supplier&a=del"><i class="layui-icon">&#xe640;</i></button>
										</div>
									</td>
  </tr>
                                                               <!--{/foreach}--> 


                                                             
                                                          <!--{/if}-->
								
							
							</tbody>
						</table>
						<div class="page-wrap">
							<ul class="pagination">
                                                            <!--{$showpage}-->
								 <!--<li class="disabled"><span>«</span></li>
								<li class="active"><span>1</span></li>
								<li>
									<a href="#">2</a>
								</li>
								<li>
									<a href="#">»</a>
								</li>-->
							</ul>
						</div>
					</div>
				</div>
		</div>
	
		
		<script src="<!--{$salepath}-->static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="<!--{$salepath}-->static/js/common.js" type="text/javascript" charset="utf-8"></script>
                  <script src="<!--{$salepath}-->static/js/jquery-3.2.1.js" type="text/javascript" charset="utf-8"></script>
                  <script type="text/javascript">
                            $(document).ready(function () { 
                            $("#search").click(function(){
                                    document.getElementById("forms").submit();
                                           
                            }); 
                    }); 

		</script>
	</body>
</html>