<?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 mal5"><a href="admin.php?mod=package&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="30">ID号</td>
		<td class="bgtt" align="center">产品名称</td>
		<td class="bgtt" align="center" width="80">套餐管理</td>
		<td class="bgtt" align="center" width="80">所属分类</td>
		<td class="bgtt" align="center" width="50">产品价格</td>
		<td class="bgtt" align="center" width="70">一级提成</td>
		<td class="bgtt" align="center" width="70">二级提成</td>
		<td class="bgtt" align="center" width="70">三级提成</td>
		<td class="bgtt" align="center" width="70">操作</td>
	</tr>
	<?php foreach($info_list as $v):?>
	<?php $num=$db->pe_num('product',array('package_id'=>$v['package_id']));?>
	<tr>
		<td align="center"><?php echo $v['package_id'] ?></td>
		<td align="center">
			<?php if($v['package_domainmark']):?>
			<a href="http://<?php echo $v['package_domainmark'] ?>" target="_blank"><?php echo $v['package_name'] ?></a>	
			<?php else:?>
			<a><?php echo $v['package_name'] ?></a>
			<?php endif;?>
		</td>
		<td align="center" class="pack" title="共 <?php echo $num ?> 个套餐"><i><?php echo $num ?></i><span class="fabu"><a href="admin.php?mod=product&act=list&pid=<?php echo $v['package_id'] ?>">管理套餐</a></span></td>
		<td align="center"><?php echo $types[$v['package_type']]['name'] ?></td>
		<td align="center"><?php echo $v['package_money'] ?></td>
		<td align="center"><?php echo $v['package_tc1_free'] ?></td>
		<td align="center"><?php echo $v['package_tc2_free'] ?></td>
		<td align="center">
			<?php echo $v['package_tc3_free'] ?>
		</td>
		<td align="center">
			<a href="admin.php?mod=package&act=edit&id=<?php echo $v['package_id'] ?>" class="admin_edit">修改</a>
			<a href="admin.php?mod=package&act=delsql&id=<?php echo $v['package_id'] ?>" class="admin_del" onclick="return doone('删除')">删除</a>
		</td>
	</tr>
	<?php endforeach;?>
	<tr>
		<td class="bgtt" colspan="9">&nbsp;</td>
	</tr>
	</table>
	</form>
</div>
<script charset="utf-8" src="<?php echo $pe['host_root'] ?>include/plugin/artdialog/jquery.artDialog.js?skin=chrome"></script>
<script charset="utf-8" src="<?php echo $pe['host_root'] ?>include/plugin/artdialog/plugins/iframeTools.js"></script>
<?php include(pe_tpl('footer.html'));?>