📄 songconadd.asp
字号:
<%PageName="SongConAdd"%>
<!--#include file="function.asp"-->
<%CheckAdmin1%>
<!--#include file="conn.asp"-->
<%
Specialid=request.QueryString("Specialid")
set rs=server.createobject("adodb.recordset")
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
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
td { font-size: 9pt}
a { color: #000000; text-decoration: none}
a:hover { text-decoration: underline}
.tx { height: 16px; width: 30px; border-color: black black #000000; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; font-size: 9pt; background-color: #A4CEE4; color: #0000FF}
.bt { font-size: 9pt; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: 16px; width: 80px; background-color: #A4CEE4; cursor: hand}
.tx1 { height: 20px; width: 30px; font-size: 9pt; border: 1px solid; border-color: black black #000000; color: #0000FF}
input,textarea,select {border-width: 1; border-color: #000000; background-color: #efefef; font-family: 宋体; font-size: 9pt; font-style: bold;}
-->
</style>
<script language="javascript">
function setid()
{
str='<br>';
if(!window.form1.upcount.value)
window.form1.upcount.value=1;
if(window.form1.upcount.value>50){
alert("您一次最多添加50首歌曲\n\n如果歌曲太多,请分次进行.");
window.form1.upcount.value = 50;
setid();
}
if(window.form1.upcount.value<1){
alert("您最少要添加1首歌曲");
window.form1.upcount.value = 1;
setid();
}
else{
for(i=1;i<=window.form1.upcount.value;i++)
str+='歌名'+i+':<input name="MusicName'+i+'" size=20> 文件名:<input type="text" name="Wma'+i+'" value="'+i+'.wma" size=9> <br>歌词: <textarea rows="3" name="MusicWord'+i+'" cols="40"></textarea> <br><br>';
}
window.upid.innerHTML=str;
}
</script>
</head>
<center>
<form name="form1" method="POST" action="SongConSave.asp">
<table border="1" width="99%" cellspacing="0" cellpadding="3" class="TableLine" bordercolor="#A4CEE4" bordercolordark="#FFFFFF" height="164">
<tr>
<td width="100%" height="12" colspan=3 bgcolor="#96C5DE" align=center><font color="white"><b>批 量 添 加 歌 曲</b></font></td>
</tr>
<tr align="left" valign="middle" bgcolor="#A4CEE4">
<td bgcolor="#A4CEE4" height="84">
专辑名称:《<b><%=rs("name")%></b>》 <input type=hidden name="Classic" value="<%=rs("Classid")%>,<%=rs("SClassid")%>,<%=rs("NClassid")%>,<%=rs("Specialid")%>"> 需要添加几首
<input type="text" name="upcount" value="1" size="3">
<input type="button" name="Button" class="bt" onClick="setid();" value="· 设定 ·">
<br>
<br>
公用路径:
<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>
</select> <input type="text" name="url" value="/" size="20">
(http://跟路径/目录名/歌曲文件名)
</td>
</tr>
<tr align="center" valign="middle">
<td align="left" height="11" id="upid"></td>
</tr>
<tr align="center" valign="middle" bgcolor="#A4CEE4">
<td bgcolor="#A4CEE4" height="25">
<input type="submit" name="Submit" value=" 提交 "> <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
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -