<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase.php');?>
<div class="pad10">	
	<form class="layui-form" method="post" lay-filter="component-form-group">
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label" style="line-height:25px;">地址展示</label>
				<div class="layui-input-block " >
					<input type="radio" name="shop[shop_addr_type]" value="0" title="按查询人定位的距离" <?php if(empty($shopInfo['shop_addr_type']) || $shopInfo['shop_addr_type'] == 0){ echo 'checked';} ?>>
					<input type="radio" name="shop[shop_addr_type]" value="1" title="优先查询人所在省份" <?php if($shopInfo['shop_addr_type'] == 1){ echo 'checked';} ?>>
				</div>
			</div>
		</div>
		<table class="layui-table" style="width:1200px">
			<thead>
				<tr>
					<th width="40px"><a href="javascript:;" class="add_btn a_blue">添加</a></th>
					<th width="250px;">代理商名称<span class="red">[必填]</span></th>
					<th width="120px;">电话<span class="red">[必填]</span></th>
					<th width="350px;">所在地区<span class="red">[必填]</span></th>
					<th>详细地址<span class="red">[必填]</span></th>
					<th width="60px;">顺序</th>
				</tr>
			</thead>
			<tbody id="daili-list">
				
			</tbody>
			<tfoot>
				<tr>
					<td colspan="6" class="center">
						<button class="layui-btn" lay-submit="" name="submit" value="1" lay-filter="component-form-demo1">保存</button>&nbsp;&nbsp;
						<button type="button" class="layui-btn layui-btn-normal" id="upload-daili-btn"><i class="layui-icon" style="position:unset;line-height:unset">&#xe67c;</i>批量导入</button>
						<a class="a_blue" href="<?php echo mvc::$cfg['SELF_URL'].'static/daili.xls?ver='.time();?>" target="_blank">导入模板.xls</a>
					</td>
				</tr>
			</tfoot>
		</table>
	</form>
</div>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>
<script type="text/javascript">
var HASADDRS = <?php echo json_encode($addArr);?>;
$(document).ready(function(){
	DAILI.initEvent(HASADDRS);
});
</script>
