<!--#include file="function.asp"-->
<%CheckAdmin2%>
<!--#include file="conn.asp"-->
<!--#include file="top.asp"-->
<%
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
%>
     <div align="center">
      <center>
        <table border="1" cellpadding="0" cellspacing="0" width="96%" bordercolor="GREEN" bordercolordark="#FFFFFF">
        <tr>
          <td width="100%" height="22" background="tt90/bgleft.gif" align=center><font color="RED"><b>二 级 分 类 管 理</b></font></td>
        </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="22" align=left>
                <div align="center">
                  <table border="0" cellpadding="0" cellspacing="0" width="100%">
                  <form method="POST" action="888wang_sclass_add.asp?act=rename&SClassid=<%=rs2("SClassid")%>" id=form<%=j%> name=form<%=j%>>
                    <tr>
                      <td width="20%"  height=22 align=left>&nbsp;&nbsp;<%=rs2("SClassid")%>.<%=rs2("SClass")%></td>
                      <td width="23%" height=22><input size=15 type="text" name="SClass" class=input value="<%=rs2("SClass")%>">&nbsp;&nbsp;<input class=input type="submit" value="改 名" name="Submit"></td>
                      <td width="57%" height=22 align="right"><a title='生成 <%=rs2("SClass")%> 的所有歌手列表' href='make_type.asp?tt90=<%=rs2("sclassid")%>'><font color=BLUE>1.生成歌手HTM</font></a>&nbsp;&nbsp;<a title='生成 <%=rs2("SClass")%> 的所有歌手专辑列表' href='make_specialall.asp?type=all&zzyy=<%=rs2("sclassid")%>'><font color=BLUE>2.生成专辑HTM</font></a>&nbsp;&nbsp;<a title='生成 <%=rs2("SClass")%> 的所有歌手相关专辑歌曲列表' href='make_musiclistall.asp?type=all&zzyy=<%=rs2("sclassid")%>'><font color=BLUE>3.生成歌曲HTM</font></a>&nbsp;&nbsp;<a title="不到万一请不要用此功能" href='888wang_sclass_add.asp?act=del&SClassid=<%=rs2("SClassID")%>' onClick="{if(confirm('确定要删除记录吗?')){return true;}return false;}"><font color=red>删除</font></a>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                    </tr>
                   </form>
                  </table>
                </div>
		  </td>
        </tr>
<%
			rs2.movenext
			loop
		end if
		rs2.close

end if
rs.close
%>
      </table>
     </center>
    </div>
<% 
set rs=nothing
set rs2=nothing
conn.close
set conn=nothing

%></body></html>






