<%@ codepage ="936" %>
 <% 
	data_path="../../" 'ACC连接数据库路径，对SQL无效
	numid="82"
	dir="../err.asp" 
  %>
  <!--#include file="../../conn/conn.asp"-->
  <!--#include file="../../inc/safe.asp"-->
    <!--#include file="../rolecheck.asp"-->
<%
sortid=Replace_Text(request("sortid"))
if sortid="" then
 response.write "<script language='javascript'>"
response.write "alert(' 参数传递错误!');"
response.write"javascript:history.back(-1)</SCRIPT>"
response.end
end if
%>
<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 confirmdel(id,sortid){
if (confirm("删除中类将删除下属的小类！真的要删除这个中类吗?")) 
window.location.href="Admin_class_ok.asp?action=del_help_type&id="+id+"&sortid="+sortid+""
} 
</script>

<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>
[<a href="sort.asp">返回大类</a>] </font>   </td> 
  </tr> 
</table>
<%
Set rssort= Server.CreateObject("ADODB.Recordset") 
sortsql="select * from Yixiang_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 Yixiang_help_type where sortid="&sortid&"" 
rstype.open typesql,conn,1,1 
%>
 <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 class=bodytitle>&nbsp;所属类别：<a href=sort.asp>帮助大类</a> > <a href=type.asp?sortid=<%=sortid%>><%=sortname%></a></td>
<TD width="14%" class=bodytitle><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%>&LogName=130><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>
<br>
<!--#include file="../copy.asp" -->