📄 writesmusic.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="const.asp"-->
<!--#include file="style.asp"-->
<!--#include file="function.asp"-->
<%
id=request("id")
if id="" then
errmsg="<br><li>你尚未选择歌曲!</li>"
call error()
Response.End
end if
%>
<%
set rs=conn.execute("SELECT * FROM MusicList where id="+id)
if rs.eof then
errmsg="<br><li>歌曲选择错误。请重选!</li>"
call error()
Response.End
else
MusicName=rs("MusicName")
source=rs("ListenUrl")
end if
rs.Close
set rs=nothing
conn.close
set conn=nothing
%>
<html><head><title>点歌:<%=MusicName%>==<%=WebTitle%></title>
<style>
td
{font-size:9pt}
</style>
</head>
<body bgcolor="#343A41" topmargin="0" leftmargin="0">
<table border="1" width="100%" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#CCCCCC">
<tr>
<td width="100%" height=22 align="center">
<font color="#FFFFFF">点歌单</font></td>
</tr>
<tr>
<td width="100%">
<script Language="JavaScript"><!--
function Form1_Validator(theForm)
{
if (theForm.ForUser.value == "")
{
alert("送给谁???");
theForm.ForUser.focus();
return (false);
}
if (theForm.FromUser.value == "")
{
alert("谁送的???");
theForm.FromUser.focus();
return (false);
}
if (theForm.Password.value == "")
{
alert("忘记密码了?");
theForm.Password.focus();
return (false);
}
if (theForm.Words.value == "")
{
alert("不说点什么?");
theForm.FromUser.focus();
return (false);
}
if (theForm.Words.value.length > 66)
{
alert("话也太多了些吧,至多66个字符!");
theForm.Words.focus();
return (false);
}
return (true);
}
//--></script>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<form method="POST" name="Form1" action="SaveSMusic.asp?MusicId=<%=id%>" onsubmit="return Form1_Validator(this)" >
<tr>
<td width=33% bgcolor="#AAAAAA"> 点歌给:<INPUT type=text maxLength=20 name=ForUser size=10 style="color: #FF0000; background-color: #AAAAAA; border: 1px solid #000000; "></td>
<td width=33% bgcolor="#AAAAAA">点歌人:<INPUT type=text maxLength=20 name=FromUser size=10<%if session("DJ58User")<>"" then%> value="<%=session("DJ58User")%>"<%end if%> style="color: #FF0000; background-color: #AAAAAA; border: 1px solid #000000; "></td>
<td width=34% bgcolor="#AAAAAA">密码:<INPUT type=password maxLength=20 name=Password size=10<%if session("HappyMusicPwd")<>"" then%> value="<%=session("HappyMusicPwd")%>"<%end if%> style="color: #FF0000; background-color: #AAAAAA; border: 1px solid #000000; "></td>
</tr>
<tr>
<td width=100% valign=top colspan="3" bgcolor="#CCCCCC" align="center">
<TEXTAREA name=Words rows=4 cols="66" title="内容不能超过66个字符!" style="color: #0000FF; background-color: #CCCCCC; border: 1px solid #000000; ; font-size:9pt">祝你年年发财,事事如意......</TEXTAREA>
</td>
</tr>
<tr>
<td width=100% height=23 bgcolor="#C0C0C0" align=center colspan="3">
<input type="submit" value="提交" name="B1" style="background-color: #C0C0C0; color: #000000; border: 1px solid #000000; ; font-size:9pt">
<input type="reset" value="重写" name="B1" style="background-color: #C0C0C0; color: #000000; border: 1px solid #000000; ; font-size:9pt"></td>
</tr>
</FORM>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -