<%@ codepage ="936" %>
 <% 
	data_path="../../" 'ACC连接数据库路径，对SQL无效
	numid="82"
	dir="../err.asp" 
  %>
  <!--#include file="../../conn/conn.asp"-->
 <!--#include file="../rolecheck.asp"-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../css/style.css" rel=stylesheet type=text/css>

<script language="javascript">
function del_help_sort(id){
if (confirm("删除大类将删除下属的小类！真的要删除这个大类吗?")) 
window.location.href="Admin_class_ok.asp?action=del_help_sort&id="+id+""
} 
</script>
</HEAD>
<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"   height="20"><font color="#666666">温馨提示：①类别直接与之前发布的信息相关联，删除类别可能会影响到之前发布的信息。 
	    ②点击类别名称进入相应下级分类，点击相应的分类操作属性进行相应操作。 
		 <font color="red">③如：要添加二级分类——>先点击大类进入二级类——>添加二级类别</font></font>
[<a href="sort.asp">返回大类</a>]    </td> 
  </tr> 
</table>
<%
set rssort=server.createobject("adodb.recordset")
sql="select * from Yixiang_help_sort "
rssort.open sql,conn,1,1
%>
 <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder">
 <TR> 
<TD height=25 class=bodytitle>&nbsp;<IMG src="../images_new/plus.gif" width="9" height="9">&nbsp;&nbsp;<a href="admin_class_ok.asp?action=add_help_sort"><font color=red><b>添加帮助信息大类</b></font></a></td>
</tr>
<tr>
<td valign=top>
<TABLE width="100%" border="0" cellpadding="5" cellspacing="5">
<TR> 
<%
if rssort.eof then
response.Write"<br><br><div align='center'>暂无类别请<a href=admin_class_ok.asp?action=add_help_sort>添加</a></div><br><br>"
else
j=1
do while not rssort.eof
%>
<td width="28%" height="25" align="left" class="Forumrow"><p style="line-height: 150%"><IMG src="../images_new/plus.gif" width="9" height="9"> <a href="type.asp?sortid=<%=rssort("sortid")%>"><%=rssort("sort")%></a> 〖<a href=Admin_class_ok.asp?action=edit_help_sort&id=<%=rssort("sortid")%>><font color=#ff0000>修改</font></a>│<a href='javascript:del_help_sort(<%=rssort("sortid")%>)'><font color=#ff0000>删除</font></a>〗</td>
<%if j mod 3 = 0 then %></tr><tr><%end if%>
<% rssort.movenext
j=j+1
loop
rssort.close
set rssort=nothing
end if
%>
</TABLE> 
</TD>
</TR>
</TBODY>
</TABLE>
<br>
<!--#include file="../copy.asp" -->