<?php include(pe_tpl('header.html'));?>
<div class="right fr">
	<div class="now">
		<div class="fl now1"></div>
		<div class="fl now2">
			<span class="fl">产品分类</span>
			<span class="fr fabu mat8"><a href="admin.php?mod=packagetype&act=add">添加分类</a></span>
		</div>
		<div class="fl now3"></div>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list mat5">
	<tr>
		<td class="bgtt" align="center" width="40">ID号</td>
		<td class="bgtt" align="center" width="50">排序</td>
		<td class="bgtt" align="center">分类名称</td>
		<td class="bgtt" align="center" width="200">所属分类</td>
		<td class="bgtt" align="center" width="70">操作</td>
	</tr>
	<?php foreach($type_list as $v):?>
	<tr>
		<td align="center"><?php echo $v['id'] ?></td>
		<td align="center"><input type="text" name="info[<?php echo $v['id'] ?>]" value="<?php echo $v['listorder'] ?>" class="inputtext inputtext_50" /></td>
		<td><?php echo $v['name'] ?></td>
		<td align="center">一级分类</td>
		<td align="center">
			<a href="admin.php?mod=packagetype&act=edit&id=<?php echo $v['id'] ?>" class="admin_edit">修改</a>
			<a href="admin.php?mod=packagetype&act=delete&id=<?php echo $v['id'] ?>" class="admin_del" onclick="return doone('删除')">删除</a>
		</td>
	</tr>
	<?php endforeach;?>
	<tr>
		<td class="bgtt" colspan="5"><button href="admin.php?mod=packagetype&act=order" onclick="pe_doall(this,'form')">批量排序</button></td>
	</tr>
	</table>
	</form>
</div>
<?php include(pe_tpl('footer.html'));?>