{#include file="sys/admin_header.htm"#}
<script type="text/javascript">
$(document).ready(function()
{
	//点击批量取消	
	$("#ButDel").click(function(){
		if (confirm('你确定要删除吗？'))
		{
			$("form[name=form1]").attr("action","?act=del_category");
			$("form[name=form1]").submit()
		}
	});
		
});
</script>
<div class="admin_main_nr_dbox">
<div class="pagetit">
	<div class="ptit"> {#$pageheader#}</div>
	{#include file="category/admin_category_nav.htm"#}
  <div class="clear"></div>
</div>
<div class="toptip">
	<h2>提示：</h2>
	<p>
正式运营后删除分类会导致与此分类关联的信息类别丢失，修改不会受影响。
</p>
</div>
  <form id="form1" name="form1" method="post" action="?act=category_save">
  {#$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"/>{#$group.g_name#}
	<span style="color: #999999; font-size:11px;">({#$group.g_alias#})</span> 
	  </label>
	  </td>
	  <td width="30%"   align="center"  class="admin_list_tit">排序</td>
      <td width="30%"   class="admin_list_tit">操作</td>
    </tr>
{#foreach from=$category item=li#}
     <tr>
      <td   class="admin_list admin_list_first" >
      <input type="checkbox" name="id[]" value="{#$li.c_id#}"   />
	  <input name="c_id[]" type="hidden" value="{#$li.c_id#}" />
	  <input name="c_name[]" type="text"  value="{#$li.c_name#}" class="input_text_200"/>
	  <span style="color:#CCCCCC">(id:{#$li.c_id#})</span>
	  </td>
	   <td align="center"  class="admin_list">	   
		 <input name="c_order[]" type="text"  value="{#$li.c_order#}" class="input_text_50"/>
			 </td>
      <td class="admin_list">
	 <a href="?act=edit_category&id={#$li.c_id#}">修改</a>
	 &nbsp;&nbsp;
	 <a onclick="return confirm('删除后无法恢复，你确定要删除吗？')" href="?act=del_category&id={#$li.c_id#}&{#$urltoken#}">删除</a>
		</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>
		{#if $category#}
		<input name="ButSave" type="submit" class="admin_submit" id="ButSave" value="保存修改"/>
		{#/if#}
        <input name="ButADD" type="button" class="admin_submit" id="ButADD" value="添加分类"  onclick="window.location='?act=add_category&alias={#$group.g_alias#}'"/>
		<input name="ButDel" type="button" class="admin_submit" id="ButDel"  value="删除所选" />
		<input name="location" type="button" class="admin_submit"   value="返回分类组" onclick="window.location='?act=grouplist'" />
		</td>
        <td width="305" align="right">
	  
	    </td>
      </tr>
  </table>
  </form>
</div>
{#include file="sys/admin_footer.htm"#}
</body>
</html>