<!--#include file="const.asp"-->
<!--#include file="error.ini"-->
<%PageName="V800_3"%>
<!--#include file="Top.asp"-->
<%if session("flag")>1 then
    response.write "<script>alert('您的操作权限不够！');history.back();</script>"
    response.end
end if
%>
<link href="Images/Admin_Style.Css" rel="stylesheet" type="text/css">
<%
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" align="center" cellpadding="2" cellspacing="1" class="border">
  <tr class="title"> 
    <td height="22" colspan="3" align="center"><strong>歌 手 分 类 管 理</strong></td>
  </tr>
        <tr>
          <td width="100%" class=tdbg>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0"  align=center class=tdbg>
                 
<%
		sql2="select * from SClass where Classid="&rs("Classid")&" order by Sclassid"
		rs2.open sql2,conn,1,1
		if rs2.eof then
		else
		j=0
			do while not rs2.eof
			j=j+1
%>
	
                  <form method="POST" action="Admin_Nclass_Err.Asp?act=add&Classid=<%=rs("Classid")%>&SClassid=<%=rs2("SClassid")%>" align="center">
                    <tr>
                      <td class=tdbg width="26%">&nbsp;<%=rs2("SClassid")%>.<a title="管理 <%=rs2("sclass")%> 所属的歌手" href=Admin_Nclass_Edit.Asp?Classid=<%=rs("Classid")%>&SClassid=<%=rs2("SClassid")%>><%=rs2("SClass")%></a></td>
                      <td class=tdbg width="51%">
                      歌手姓名：
                      <input class=input size=13 type="text" name="NClass">
                      字母索引：
                      <input class=input size=6 type="text" name="Abcd">
                      <input class=input type="submit" value="添 加" name="B1">                       </td>
                    </tr>
                   </form>
                
                
<%
			rs2.movenext
			loop
		end if
		rs2.close
end if
rs.close
%>
  </table>
		  </td>
        </tr>
      </table>
<% 
set rs=nothing
set rs2=nothing
conn.close
set conn=nothing
%>
</body>
</html>