<!--#include file="inc.asp"-->
<!--#include file="check.asp"-->

<%
NClassid=request("NClassid")
Classid=request("Classid")
SClassid=Request("SClassid")
founderr=false
if NClassid<>"" then
set rs=server.createobject("adodb.recordset")
	sql="select * from nclass where nclassid="&nclassid
	rs.open sql,conn,1,1
	abcd=rs("abcd")
	nclass=rs("nclass")
	sclassid=rs("sclassid")
	hits=rs("hits")
	txt=rs("txt")
	pic=rs("pic")
	isgood=rs("isgood")
rs.close
set rs=nothing
end if
set rs=server.createobject("adodb.recordset")
sql="select * from SClass where SClassid="&SClassid
rs.open sql,conn,1,1
if err.Number<>0 then
errmsg=errmsg+"<br>"+"<li>操作错误！请联系管理员"
founderr=true
else
SClass=rs("SClass")
Set Trs=server.CreateObject ("adodb.recordset")
Tsql="select Class from class where Classid="&Classid
Trs.Open Tsql,conn,1,1
if err.Number<>0 then
err.clear
errmsg=errmsg+"<br>"+"<li>操作错误！请联系管理员"
founderr=true
else
ClassName=Trs("Class")
end if
end if
rs.Close
set rs=nothing
conn.close
set conn=nothing
if founderr=true then
call error()
else
select case sclassid
case 1
   s1="selected"
case 2
   s2="selected"
case 3
   s3="selected"
case 4
   s4="selected"
case 5
   s5="selected"
case 6
   s6="selected"
case 7
   s7="selected"
case 8
   s8="selected"
end select%><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"><tr>
<td valign=top bgcolor="#F1F3F5">
<%if NClassid<>"" then%>
<form method="POST" action="0hao_Nclass_save.asp?act=edit&Classid=<%=Classid%>&NClassid=<%=NClassid%>" align="center" NAME="fadd"><%else%>
<form method="POST" action="0hao_Nclass_save.asp?act=add&Classid=<%=Classid%>&SClassid=<%=SClassid%>" align="center" NAME="fadd"><%end if%>
<table width="100%" border="1" cellpadding="0" cellspacing="0" class="border" style="border-collapse:collapse;">
<tr class="topbg">
<td width="615" height="20" colspan=2 class="topbg" align="center">一级栏目：  <%=ClassName%></td>
</tr>
<tr>
<td width="17%" align="right">二级栏目：</td>
<td width="615" valign="top"><%if NClassid<>"" then%>
		<select name="sclassid" size="1">
                <option value="1" <%=s1%>>华人男歌手</option>
                <option value="2" <%=s2%>>华人女歌手</option>
                <option value="3" <%=s3%>>华人组合</option>
                <option value="4" <%=s4%>>日韩男歌手</option>
                <option value="5" <%=s5%>>日韩女歌手</option>
                <option value="6" <%=s6%>>日韩组合</option>
                <option value="7" <%=s7%>>欧美全部歌手</option>
                <option value="8" <%=s8%>>影视其他</option>
                </select><%else%><%=sclass%><%end if%></td>
</tr>
<tr>
<td align=right " width=" bgcolor="#F1F3F5">歌手名：</td>
<td " width=" bgcolor="#F1F3F5"><input type="text" name="NClass" value="<%=NClass%>" size="20"></td>
</tr>
<tr>
<td align=right " width=" bgcolor="#F1F3F5">字 母：</td>
<td " width=" bgcolor="#F1F3F5"><input type="text" name="abcd" value="<%=ABCD%>" size="20"></td>
</tr>
<tr>
<td align=right " width=" bgcolor="#F1F3F5">浏览量：</td>
<td " width=" bgcolor="#F1F3F5"><input type="text" name="hits" value="<%=hits%>" size="20"></td>
</tr>
<tr>
<td align=right " width=" bgcolor="#F1F3F5">推 荐：</td>
<td " width=" bgcolor="#F1F3F5"><%if isgood=true then%><input type="radio" name="isgood" value="1" checked>是<input name=isgood type="radio" value="0">否<%else%><input name=isgood value="1" type="radio">是<input name=isgood type="radio" value="0" checked>否<%end if%></td>
</tr>
<tr>
<td align=right " width=" bgcolor="#F1F3F5">照片地址：</td>
<td " width=" bgcolor="#F1F3F5">
<input type="text" name="Pic" size="50" value="<%if pic="" then%>img/nopic.gif<%else%><%=pic%><%end if%>"></td>
</tr>
<tr>
<td align=right valign=top " width=" bgcolor="#F1F3F5">简 介：</td>
<td " width=" bgcolor="#F1F3F5"><TEXTAREA name="intro" rows=5 cols="60"><%=txt%></TEXTAREA></td>
</tr>
<tr>
<td colspan=2 align=center " width=" height="26" bgcolor="#F1F3F5">
<input type="submit" value="添 加" name="B1">  
<input type="reset" value="取 消" name="B2">
</td>
</tr>
</table>
<p>
</form>
</td>
</tr>
</table>
</body></html>
<%end if%>