<!--#include file="char.inc"-->
<!--#include file="conn.asp"-->
<!--#include file="const.asp"-->
<%
title=htmlencode2(Trim(request.form("title")))
musicid=Trim(request.form("musicid"))
myname=htmlencode2(Trim(request.form("myname")))
yourname=htmlencode2(Trim(request.form("yourname")))
face=htmlencode2(request.form("face"))
content=htmlencode2(request.form("content"))

if title="" or musicid ="" or myname="" or yourname="" or content="" then
Response.Write "<script language=javascript>alert('请填写完整歌曲名,链接地址,点歌者和受赠者等信息哦！');javascript:history.go(-1);</script>"
Response.End
end if

'set rs=server.createobject("adodb.recordset")
'sql="select * from [basic] where myname='"&myname&"' and title='"&title&"' and musicid='"&musicid&"' and content='"&content&"'"
'rs.open sql,conn,1,3
'if not rs.eof then
'Response.Write "<script language=javascript>alert('请不要刷新本页,如果提交信息全部重复,将无法点歌！');javascript:history.go(-1);</script>"
'Response.End
'end if

set rs=server.createobject("adodb.recordset")
sql="select * from basic"
rs.open sql,conn,1,3
rs.addnew
rs("title")=title
rs("musicid")=musicid
rs("myname")=myname
rs("yourname")=yourname
rs("face")=face
rs("content")=content
rs.update
id=rs("id")
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel=stylesheet type=text/css>
<title>点歌成功</title>
<script>
function test(){
z=document.body.createTextRange();
z.moveToElementText(bb);
z.select();
}
</script>
<script language="javascript">
function clickone() {
alert('点歌请到相应歌曲播放页点 "点歌送此歌曲给朋友 "！')
return false;
}
</script>
</head>
<body leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">
<div align="center">

<table border="0" width="770" cellspacing="0" cellpadding="0">
	<tr>
		<td width="157"><img border="0" src="images/TOP1.gif" width="157" height="17"></td>
		<td width="593" background="images/TOP2.gif">　</td>
		<td width="10"><img border="0" src="images/TOP3.gif" width="10" height="17"></td>
	</tr>
</table>

<table border="0" width="770" cellspacing="0" cellpadding="2" background="images/top4.gif">
	<tr>
		<td align="center" width="50"><img border="0" src="images/icon1.gif" width="23" height="24"></td>
		<td><%=Webname%>点歌台,送给好友一份最真挚的祝福!</td>
		<td width="100"><a href="#" onClick='javascript:{return clickone()}'><img border="0" src="images/dg.gif" width="86" height="22"></a></td>
	</tr>
</table>

<table width="770" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFF3F7" bgcolor="#FFFFFF" style="border-collapse: collapse">
	<tr>
		<td bgcolor="#FFF3F7" width="150" align="center" valign="top"><img border="0" src="images/girl.gif" width="150" height="500"></td>
		<td align="center" valign="top">
		<!--右-->
        <table border="0" width="98%" cellspacing="0" cellpadding="5">
	        <tr>
		        <td align="center"><a href="index.asp"><img border="0" src="images/dgt.gif" width="350" height="50"></a></td>
	        </tr>
        </table> 
		<table border="1" cellpadding="5" cellspacing="0" width="90%" bordercolor="#EAE0C3" style="border-collapse: collapse">
			<tr>
				<td bgcolor="#F9F4E4">您的点歌地址已经产生,请把下面信息复制发给您的朋友<p>
				<font color="#FF0000">注意:必须对方进入该网址才可以收听,他点击后才能看到点歌!</font></td>  
			</tr>
			<tr>
				<td style="line-height: 150%" align="center" height="100">
				<font color="#FF0066" onMouseOver="test()" id="bb">HI，我在<%=Webname%>给你点了首歌：<%=Weburl%>/dg/chakan.asp?id=<%=id%></font>
			  <p>　</td>
			</tr>
			<tr>
				<td bgcolor="#F9F4E4"><font color="#FF0000">您可以通过 QQ MSN Mail 
				论坛任何方式把链接发给对方,你也可以使用本站的QQ会话功能</font></td>  
			</tr>
			  <tr>
    <td bgcolor="#F9F4E4">
	<form name="form1" method="post" action="link.asp" target="_blank">
		<p align="center">只要将上面的文字复制,输入对方QQ号码,点击QQ会话然后粘贴并发送,对方就可以看到你的点歌了</p>
		<p align="center">请输入对方的QQ号码:
          <input name="hiden" type="hidden" id="hiden" value="ok">
		  <input name="qqnumber" type="text" id="qqnumber" maxlength="9">
          <input type="submit" name="Submit" value="点击进行QQ会话">
    </p>
    </form>    </td>
  </tr>
	    </table>
		<!--右-->
		</td>
	</tr>
</table>                                                                                                                
</div>
                                             
</body>
                                                             
</html>