<!--#include file="Const.Asp"-->
<link href="Images/Admin_Style.Css" rel="stylesheet" type="text/css">
<!--#include file="error.ini"-->
<%PageName="SongConAdd"%>
<%
Specialid=request.QueryString("Specialid")
set rs=server.createobject("adodb.recordset")
i=0
sql="select * from Special where Specialid="&cstr(Specialid)
rs.open sql,conn,1,3
if rs.EOF then
	errmsg= "<li>服务器出错！请联系管理员</li>"
	call error()
	Response.End
else
i=i+1
%>
<div align="center">
<center>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="border">
        <tr class="title"> 
 <td width="100%" height="20" colspan=3 align=center><b>批 量 添 加 歌 曲</b></td> 
</tr> 
<tr align="left" valign="middle"> 
<td class=tdbg height="92">
<form name="form1" method="POST" action="Admin_Allspecial_Ok.Asp"> 
<script language="javascript"> 
function setid() 
{ 
str='<br>'; 
if(!window.form1.upcount.value) 
window.form1.upcount.value=1; 
for(i=1;i<=window.form1.upcount.value;i++) 
str+='<li>歌曲名称'+i+':<input  class=input name="MusicName'+i+'" size=25><input class=input  type="text" name="Wma'+i+'" value="'+i+'.Wma" size=16><select  class=input name="Classic'+i+'" size="1"><option name=option<%=rs("Classid")%><%=i%> selected value="<%=rs("Classid")%>,<%=rs("SClassid")%>,<%=rs("NClassid")%>,<%=rs("Specialid")%>"><%=rs("Name")%></option></select></li><br><br>'; 
window.upid.innerHTML=str+'<br>'; 
} 
</script> 
<li>需要添加几首 
<input type="text" name="upcount" class=input value="20"> 
<input type="button" name="Button" class=input onclick="setid();" value="设定"> 
</li> 
<br> 
<br> 
<li>服务器地址: 
              <select name="song_path" size="1">
                <option value="1" >根路径(一)</option>
                <option value="2" >根路径(二)</option>
                <option value="3" >根路径(三)</option>
                <option value="4" >根路径(四)</option>
                <option value="5" >根路径(五)</option>
                <option value="6" >根路径(六)</option>
                <option value="7" >根路径(七)</option>
              </select> <input type="text" name="url" value="/音乐地址" size="75">   
<font color="red"><b>请正确填写</b></font></li> 
</td> 
</tr> 
<tr class=tdbg align="center" valign="middle"> 
<td class=tdbg align="left" id="upid" height="122">
</td> 
</tr> 
<tr align="center" valign="center" > 
<td class=tdbg height="25"> 
<input  class=input type="submit" name="Submit" value=" 提交 ">&nbsp;  
<input  class=input type="reset" name="Submit2" value=" 清除 "> 
</td> 
</tr> 
</table> 
</form> 
<script language="javascript"> 
setid(); 
</script>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>