<?php include_once(mvc::$cfg['PATH_TPL'].'seller/publicHead.php');?>
<div class="maintb">
	<div class="main_middle shop-server">
		<div class="layui-tab layui-tab-card">
			<ul class="layui-tab-title">
				<li>
					<a href="<?php echo mvc::$cfg['SELF_URL'];?>seller/shopBail" style="color:#000">保证金</a>
				</li>
				<li>
					<a href="<?php echo mvc::$cfg['SELF_URL'];?>seller/shopCustom" style="color:#000">无忧退货</a>
				</li>
				<li class="layui-this">
					<a href="<?php echo mvc::$cfg['SELF_URL'];?>seller/shopServerList">卖家服务</a>
				</li>
			</ul>
			<div class="layui-tab-conten" style="padding:10px">
				<div style="margin-bottom: 10px">
					
					<a href="<?php echo mvc::$cfg['SELF_URL'];?>seller/shopServer"><button type="button" class="layui-btn">新增售后模版</button></a>
				</div>		
				<table class="layui-table" id="my_list">
					<thead>
						<tr>
							<th width="85px">操作</th>
							<th width="400px;">模版名称</th>
							<th width="300px;">备注</th>
							<th width="50px">配件数</th>
							<th>添加时间</th>
						</tr>
					</thead>
					<tbody class="pdtTbody">
					<?php if(!empty($pdtArr)){?>
					 <?php foreach ($pdtArr as $k=>$v){?>
						<tr id="pdtTr<?php echo $v['pdt_id'];?>">
							<td>
								<a class="a_blue marr5" href="<?php echo mvc::$cfg['SELF_URL'];?>seller/shopServer?pdtId=<?php echo $v['pdt_id'];?>" >编辑</a>
								<a class="a_blue mar5 delAddr" addid="<?php echo $v['addr_id'];?>" href="javascript:;" onclick="delCustomPdt(<?php echo $v['pdt_id'];?>);return false;">删除</a>
							</td>
							<td><?php echo $v['pdt_name'];?></td>
							<td><?php echo $v['pdt_remark'];?></td>
							<td><?php echo $v['pronum'];?></td>
							<td><?php echo date("Y-m-d H:i",$v['pdt_add_time']);?></td>
						</tr>
					 <?php }?>
					<?php }else{?>
						<tr>
							<td colspan="5" class="center">还没有售后模版，点击<a href="<?php echo mvc::$cfg['SELF_URL'];?>seller/shopServer" class="orange">这里</a>去设置</td>
						</tr>
					<?php }?>
					</tbody>
				</table>
			</div>
		</div>
		<div class="clear"></div>
	</div>
</div>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>
