<!--#include file="inc.asp"--><!--#include file="check.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="images/Admin_Style.css">
<head>
<title>福建音乐视听网 管理中心</title>
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<center>
<%
dim i
set rs=server.createobject("adodb.recordset")
set rs2=server.createobject("adodb.recordset")

sql="select * from class order by classid"
rs.open sql,conn,1,1
i=request("id")
if i="" then i=rs("Classid")
%>
<%do while not rs.eof
%>
<%rs.movenext
loop
rs.close
%>
<%sql="select * from class where classid="&i
rs.open sql,conn,1,1
if rs.eof then%>
<%
else
%>

<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="GREEN" style="border-collapse:collapse;">
<tr>
<td width="100%" height="22" align=center class="topbg"><strong>二 级 分 类 管 理</strong></td>
</tr><tr>
<td width="100%" height="25" align=left>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolordark="#FFFFFF">
<TR>
<%
sql2="select * from SClass where Classid="&rs("Classid")&" order by Sclassid"
rs2.open sql2,conn,1,1
if rs2.eof then
%>
<tr><td align="center">尚无任何二级分类</td></tr>
<%
else
j=0
do while not rs2.eof
j=j+1
%>

<tr>
<td width="100%" height="25" align=left>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%" bordercolordark="#FFFFFF">
<form method="POST" action="0hao_SClass_Save.asp?act=rename&SClassid=<%=rs2("SClassid")%>" id=form<%=j%> name=form<%=j%>>
<tr >
<td width="30%" class=bodytitle>&nbsp;&nbsp;<a href="0hao_geshou.asp?ClassID=<%=rs("ClassID")%>&SClassID=<%=rs2("SClassID")%>"><%=rs2("SClass")%></a></td>
<td width="33%" class=bodytitle><input size=15 type="text" name="SClass" value="<%=rs2("SClass")%>">&nbsp;&nbsp;<input type="submit" value="改 名" name="Submit"></td>
<td width="37%" align="right" class=bodytitle><a title="慎重哦!" href='0hao_SClass_Save.asp?act=del&SClassid=<%=rs2("SClassID")%>'>删除</a>&nbsp;&nbsp;</td>
</tr>
</form>
</table>
</div>
</td>
</tr>
<%
rs2.movenext
loop
end if
rs2.close
%>
<%
end if
rs.close
%>
</table>
<%
set rs=nothing
set rs2=nothing
conn.close
set conn=nothing
%>