<%@ codepage ="936" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/style<%=sk%>.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../inc/input.js"></script><%
if not isEmpty(request("sortid")) then
sortid=request("sortid")
else
Response.Redirect "type.asp"
Response.End
end if
%>
<script language="javascript">
function confirmdel(id,sortid){
if (confirm("删除中类将删除下属的小类！真的要删除这个中类吗?")) 
window.location.href="Admin_class_ok.asp?action=del_help_type&id="+id+"&sortid="+sortid+""
} 
</script><!--#include file="../../conn/conn.asp" -->
<!--#include file="../../Inc/Commoncode.asp" -->
<!--#include file="../checkvalid.asp" -->
<%If Not FRAdminLevel(804) Then
	Call ErrorMsg()
End If%>
<style type="text/css">
<!--
.style11 {color: #0066CC;
	font-weight: bold;
}
-->
</style>
<table width="98%" border="0" cellspacing="0" cellpadding="0"  align=center class="tableBorder"> 
  <tr> 
     <th height=25 colspan="2" class="tableHeaderText">网站帮助类别管理 </th> 
  </tr> 
  <tr>
    <td colspan="2"><font color="ff6600"><b class="style11">　管理选项</b></font>： <a href="index.asp">管理帮助信息</a> | <a href="addhelp.asp">添加帮助信息</a> | <a href="sort.asp">管理帮助类别</a> | <a href="Admin_Class_Ok.asp?action=add_help_sort">添加帮助类别</a> |   [<a href="javascript:location.reload()">刷新页面</a>] </td>
  </tr>
  <tr> 
     <td colspan="2"><p><B>注意</B>：<BR> 
        <font color="blue">①类别直接与发布的信息相关联，删除类别可能会影响到后台发布的帮助信息。<br>
	    ②点击类别名称进入相应下级分类，点击相应的分类操作属性进行相应操作。</font><br>
		 <font color="red">③如：要添加三级分类——>先点击大类进入二级类——>点击二级类进入三级类——>添加三级类别</font>
[<a href="sort.asp">返回大类</a>]    </td> 
  </tr> 
</table>
<%
Set rssort= Server.CreateObject("ADODB.Recordset") 
sortsql="select * from JOB_help_sort where sortid="&sortid&"" 
rssort.open sortsql,conn,1,1
sortname=rssort("sort")
If rssort.eof and rssort.bof then 
response.write"<SCRIPT language=JavaScript>alert('对不起，参数有误!');"
response.write"this.location.href='javascript:history.back();'</script>"
End if
rssort.close
set rssort=nothing
set rstype=server.createobject("adodb.recordset") 
typesql="select * from JOB_help_type where sortid="&sortid&"" 
rstype.open typesql,conn,1,1 
%>
<br>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=98% align=center class="tableBorder">
	<tr> 
	<th height="22" colspan="2">二级分类列表</th>
	</tr>
<TR> 
<TD width="86%" height=25>&nbsp;所属类别：<a href=sort.asp>帮助大类</a> > <a href=type.asp?sortid=<%=sortid%>><%=sortname%></a></td>
<TD width="14%"><IMG src="../images_new/plus.gif" width="9" height="9">&nbsp;&nbsp;<a href="admin_class_ok.asp?action=add_help_type&sortid=<%=sortid%>"><font color=red><b>添加二级分类</b></font></a></td>
</tr>
<TR>
  <TD colspan="2" align=middle vAlign=top>
  <TABLE width="100%" height="30" border="0" cellpadding="5" cellspacing="5"> 
<TR height=22>
<%
if rstype.eof then
response.Write"<br><br><div align='center'>暂无类别请<a href=admin_class_ok.asp?action=add_help_type&sortid="&sortid&">添加</a></div><br><br>"
else
j=1
do while not rstype.eof%> 
<td width="33%" align="left" height=24 class="Forumrow">
<IMG src="../images_new/plus.gif" width="9" height="9"> <%=rstype("typename")%>〖<a href=Admin_class_ok.asp?action=edit_help_type&id=<%=rstype("typeid")%>&sortid=<%=sortid%>><font color=#ff0000>修改</font></a>│<a href='javascript:confirmdel(<%=rstype("typeid")%>,<%=sortid%>)'><font color=#ff0000>删除</font></a>〗
</td>
<%if j mod 3 = 0 then %></tr><tr ><%end if%>
<% rstype.movenext 
j=j+1 
loop 
rstype.close
set rstype=nothing 
end if
%> 
</tr>
</TABLE></TD>
</TR>
</TABLE>
<!--#include file="../inc/copy.asp" -->