{#include file="sys/admin_header.htm"#}
<div class="admin_main_nr_dbox">
<div class="pagetit">
	<div class="ptit"> {#$pageheader#}</div>
	{#include file="gifts/admin_gifts_nav.htm"#}
  <div class="clear"></div>
</div>

  <form id="form1" name="form1" method="post" action="?act=del_category">
  {#$inputtoken#}
    <table width="100%" border="0" cellpadding="0" cellspacing="0" id="list" class="link_lan"  >
    <tr>
      <td height="26" class="admin_list_tit admin_list_first" >
      <label id="chkAll"><input type="checkbox" name=" " title="全选/反选" id="chk"/>分类名称</label></td>
	  <td   align="center"  class="admin_list_tit">状态</td>
	  <td   align="center"  class="admin_list_tit">分类前缀</td>
	    <td   align="center"  class="admin_list_tit">积分</td>
	  <td   align="center"  class="admin_list_tit">叠加次数</td>
	  <td   align="center"  class="admin_list_tit">有效期</td>
      <td width="150"   class="admin_list_tit">操作</td>
    </tr>
	 {#foreach from=$category item=list#}
     <tr>
      <td   class="admin_list admin_list_first" >
      <input type="checkbox" name="id[]" value="{#$list.t_id#}"   />
	  {#$list.t_name#}
	  <span style="color:#CCCCCC">(id:{#$list.t_id#})</span>	  </td>
	   <td align="center"  class="admin_list">
	    {#if $list.t_effective=="1"#}
			可用
			   {#else#}
			     <span style="color:#999999">不可用</span>
			   {#/if#}
			    </td>
				<td align="center"  class="admin_list">
	   {#$list.t_pre#}
			    </td>
				<td align="center"  class="admin_list">

		{#$list.t_amount#}
	
			    </td>
				<td align="center"  class="admin_list">
	    {#if $list.t_repeat=="0"#}
		不限制
		{#else#}
		{#$list.t_repeat#}
		{#/if#}
			    </td>
			    <td align="center"  class="admin_list">
	    {#if $list.t_starttime=="0" && $list.t_endtime=="0"#} 
		不限制
		{#else#}
			 {#if $list.t_starttime=="0"#} 
			不限制
			{#else#}
			{#$list.t_starttime|date_format:"%Y-%m-%d"#}
			{#/if#}
			--
			{#if $list.t_endtime=="0"#} 
			不限制
			{#else#}
			{#$list.t_endtime|date_format:"%Y-%m-%d"#}
			{#/if#}
		{#/if#}
		</td>
      <td class="admin_list">
	 <a href="?act=edit_category&id={#$list.t_id#}">修改</a>&nbsp;&nbsp;
			 </td>
    </tr>
	 {#/foreach#}
	</table>
	   {#if !$category#}
<div class="admin_list_no_info">没有任何信息！</div>
{#/if#}
	<table width="100%" border="0" cellspacing="10"  class="admin_list_btm">
<tr>
        <td>
        <input name="ButADD" type="button" class="admin_submit" id="ButADD" value="添加分类"  onclick="window.location='?act=category_add'"/>
		<input name="ButDel" type="submit" class="admin_submit" id="ButDel"  value="删除所选" onclick="return confirm('你确定要删除吗？')"/>
		</td>
        <td width="305" align="right">
	  
	    </td>
      </tr>
  </table>
  </form>
</div>
{#include file="sys/admin_footer.htm"#}
</body>
</html>