<?php include_once(mvc::$cfg['PATH_TPL'].'public/topSeller.php');?>
<div class="maintb">
	<?php include_once(mvc::$cfg['PATH_TPL'].'seller/leftMenu.php');?>
	<div class="main_middle">
		<div class="mod-main ">
			<div class="mod-main-nav-box " id="my_mod-main-nav-box">
				<a href="/seller/proDescTplManage?order=add" target="_blank"><button type="button" class="btn btn-default">新增配件模版</button></a>
			</div>			
			<table class="table table-bordered martb10" id="my_list">
				<thead>
					<tr>
						<th width="85px">操作</th>
						<th width="400px;">模版名称</th>
						<th width="300px;">备注</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" target="_blank" href="/seller/proDescTplManage?order=edit&pdtId=<?php echo $v['pdt_id'];?>" >编辑</a>
							<a class="a_blue mar5 delAddr" addid="<?php echo $v['addr_id'];?>" href="javascript:;" onclick="MESSAGE.confirm('确定要删除吗?','delPdt(<?php echo $v['pdt_id'];?>)')">删除</a>
						</td>
						<td><?php echo $v['pdt_name'];?></td>
						<td><?php echo $v['pdt_remark'];?></td>
						<td><?php echo date("Y-m-d H:i",$v['pdt_add_time']);?></td>
					</tr>
				 <?php }?>
				<?php }else{?>
					<tr>
						<td colspan="4" class="center">还没有配件模版，点击<a href="/seller/proDescTplManage?order=add" class="orange">这里</a>去设置</td>
					</tr>
				<?php }?>
				</tbody>
			</table>
		</div>
		<div class="clear"></div>
	</div>
</div>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footAll.php');?>