<!--#include file="setup.asp"-->
<!--#include file="check.asp"-->
<html>
<head>
<title>管理页</title>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="Images/Style.css" type=text/css rel=stylesheet>
<script language=JavaScript>
function formCheck()
{
	if(document.form2.musicname.value == "")
  	{
  		alert("请输入标题！")
    		document.form2.musicname.focus();
    		return false
  	}
	if(document.form2.classid.value == "0")
  	{
  		alert("请选择类别！");
    		document.form2.classid.focus();
    		return false;
  	}
	form2.submit();
  	form2.submit1.value = "保存上传中,请耐心等待...";
        form2.submit1.disabled = true;
  	return true;
}
</script>
</head>
<body topmargin="10" leftmargin="0">
<div align="center">
<center>
      <table width=98% align="center" border="0" cellspacing="1" cellpadding="2" class="tableBorder">
        <form method="POST" action="Player_Save.asp?action=add" id="form2" name="form2">
          <tr height="26">
            <td width="100%" colspan=2 align=center background="images/button_bg.jpg"><b><font color=#FFFFFF>添加音乐</b></td>
          </tr>
          <tr height="24">
            <td align="right" height="30" class="TableRow1">音乐名称：</td>
            <td class="TableRow1">&nbsp;<input class=input_out type="text" name="musicname" value="" size="50"></td>
          </tr>

          <tr height="24">
            <td align="right" height="30" class="TableRow1">音乐类别：</td>
            <td class="TableRow1">&nbsp;<select class=input_out>
<%
set rs=server.Createobject("ADODB.RecordSet")
rs.Open "select * from PlayerClass order by classid",conn,1,3
do while not rs.eof
%><option value="<%=rs("classid")%>"><%=rs("classname")%></option>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
		</select></td>
          </tr>
          <tr height="24">
            <td align="right" height="30" class="TableRow1">音乐地址：</td>
            <td class="TableRow1">&nbsp;<input class=input_out type="text" name="url" value="" size="80"></td>
          </tr>
          <tr height="40">
            <td colspan=2 class="TableRow1">
<div align=center><input name=submit1 type=button class="btn" value=" 添 加 " Onclick="return formCheck();"> 
&nbsp;&nbsp;&nbsp;&nbsp; <input name=Submit2 type=reset class="btn" value="重 置"> 
&nbsp;&nbsp;&nbsp;&nbsp;<input name="Submit22" type="button" class="btn" value="返 回" onClick="history.go(-1)">
</div>
</td></tr></table> 
	    </td>
          </tr>
        </form>
      </table>
</body>
</html>
<%
closeconn
%>
