<!--#include file="inc.asp"--><!--#include file="check.asp"-->
<%
dim i
i=0
MaxList=30
set rs=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")
%><html>
<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>
<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">

<%
do while not rs.eof
i=i+1
%>
<form method="POST" action="0hao_class_save.asp?act=rename&Classid=<%=rs("Classid")%>" id=form1 name=form1>
<tr>
<td width="30%" height=20 align=left>&nbsp;&nbsp;<%=rs("Classid")%>.<%=rs("Class")%></td>
<td width="40%" height=20 align=center><input size=20 type="text" class=input name="Class" value="<%=rs("Class")%>">&nbsp;&nbsp;<input class=input type="submit" value="改 名" name="Submit"></td>
<td width="30%" height=20 align=center><a title="不到万一请不要用此功能" href='0hao_class_save.asp?act=del&Classid=<%=rs("ClassID")%>'><font color=red>删除</font></a></td>
</tr>
</form>

<%
if (i mod (MaxList/2)=0) and i>=(MaxList/2) then
%>

<%
end if
if i>=MaxList then exit do
rs.movenext
loop
rs.close
%>
<tr>
<td width="30%" height=20 align=left>&nbsp;&nbsp;&nbsp;添加总类  </td>
<form method="POST" action="0hao_class_save.asp?act=add">

<td width="40%" height=20 align=center><input type="text" class=input name="Class" size="20">  &nbsp;<input type="submit" value="添 加" name="B3" class=input></td>
<td width="30%" height=20 align=center>　</td>

</tr>
</form>
</table>
</div>
</td>
</tr>
</table>
</center>
</div>
<%
set rs=nothing
conn.close
set conn=nothing
%></body></html>