📄 userregok.asp
字号:
<!--#include file="conn.asp"-->
<%'---------程序编写说明-------%>
<%'本程序由junping96编写
'程序名称:新世纪影院VOD播放系统(商业版)
'FileName: Userregok.asp
'EditDate:2003-12-07
'Editer:junping96
'Email:junping96@163.com
'QQ: 249112913 249114058
'请尊重本人劳动,禁止修改版权,有任何问题请和我联系。
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="”keywords”" content="”新世纪影院VOD影视播放程序出售”">
<meta name="”description”" content="”新世纪影院VOD影视(商业版)出售”">
<title>新世纪影院</title>
<link rel="stylesheet" type="text/css" href="css/css.css">
</head>
<body topmargin="0" leftmargin="0" bgcolor="#FF9900">
<center>
<div align="center">
<center>
<%
username=request.cookies("username")
if username="" then
response.redirect "login.htm"
end if
if request.cookies("buyend")="okbuyser" then
response.write"<script>alert('你已经购买了一次,请明天再来购卡');window.close();</script>"
response.end
end if
act=trim(request.querystring("act"))
if act<>"ok" then
%>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from car"
rs.open sql,conn,1,1
if rs.eof or bof then
response.write""
end if
%>
<table border="0" cellpadding="0" cellspacing="1" width="402">
<tr>
<td colspan="3" width="402" bgcolor="#FFFFFF" valign="middle" align="center"><img border="0" src="IMAGE/regok.gif"></td>
</tr>
<tr>
<td height="22" bgcolor="#FFFFFF" colspan="3" width="402" valign="middle" align="center">你已经成功注册,成为我们的免费会员,为了更好的服务,请选择:</td>
</tr>
<form name=buyserver method=post action=userregok.asp?act=ok>
<tr>
<td height="22" bgcolor="#FFFFFF" width="106" valign="middle" align="center">我要下定单:</td>
<td height="22" bgcolor="#FFFFFF" width="146" valign="middle" align="center">
<select size="1" name="buycar">
<option selected>请选择时间</option>
<% do while not rs.eof or bof
%>
<option value=<%=rs("cartime")%>><%=rs("carlx")%></option>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
</select> </td>
<td height="22" bgcolor="#FFFFFF" width="146" valign="middle" align="center">
(选择购买时间) </td>
</tr>
<tr>
<td height="22" bgcolor="#FFFFFF" width="106" valign="middle" align="center"></td>
<td height="22" bgcolor="#FFFFFF" width="146" valign="middle" align="center"><select size="1" name="buycarse">
<option selected>选购买方式</option>
<option value="当地购卡">当地购卡</option>
<option value="银行汇款">银行汇款</option>
<option value="邮局汇款">邮局汇款</option>
</select></td>
<td height="22" bgcolor="#FFFFFF" width="146" valign="middle" align="center"><input type="submit" value="提交" name="B1"></td>
</tr>
</form>
<tr>
<td height="22" bgcolor="#FFFFFF" width="133" valign="middle" align="center">影卡类型</td>
<td height="22" bgcolor="#FFFFFF" width="133" valign="middle" align="center">价格(元)</td>
<td height="22" bgcolor="#FFFFFF" width="132" valign="middle" align="center">优惠</td>
</tr>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from car"
rs.open sql,conn,1,1
if rs.eof or bof then
response.write""
end if
do while not rs.eof or bof
%>
<tr>
<td height="22" bgcolor="#FFFFFF" width="133" valign="middle" align="center"><%=rs("carlx")%></td>
<td height="22" bgcolor="#FFFFFF" width="133" valign="middle" align="center"><%=rs("price")%> </td>
<td height="22" bgcolor="#FFFFFF" width="132" valign="middle" align="center"><%=rs("bz")%></td>
</tr>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
<tr>
<td height="22" bgcolor="#FFFFFF" width="398" colspan="3" valign="middle" align="left">其中普通会员没有下载影片的权利,只能在线观看普通影片,每天8部</td>
</tr>
<tr>
<td height="22" bgcolor="#FFFFFF" width="398" colspan="3" valign="middle" align="left">中级会员没有下载影片的权利,只能在线观看普通影片每天观看30部</td>
</tr>
<tr>
<td height="22" bgcolor="#FFFFFF" width="398" colspan="3" valign="middle" align="left">高级会员观看、下载无任何限制。请根据情况,自行购买。</td>
</tr>
<tr>
<td height="22" bgcolor="#FFFFFF" width="398" colspan="3" valign="middle" align="center">购买之后,请通过电话(120)和我们联系,确认之后,立刻开通。</td>
</tr>
<tr>
<td height="22" bgcolor="#FFFFFF" width="398" valign="middle" align="center" colspan="3"><a href="default.asp"><font color="#0000FF">我先要看一下</font></a>
<a href=javascript:window.close();window.open("addtime.asp","top","height=300,width=300");><font color="#0000FF">我已经买了冲值卡,立刻去冲值</font></a></td>
</tr>
<tr>
<td height="22" bgcolor="#FFFFFF" width="398" colspan="3" valign="middle" align="center"><a href="javascript:window.close();"><font color="#0000FF">我现在有事,要关闭该窗口,以后再说了</font></a></td>
</tr>
</table>
<%else
username=request.cookies("username")
addtime=trim(request.form("buycar"))
if addtime="" then
response.write"<script>alert('请选择购买时间');history.back(-1);</script>"
response.end
end if
buyser=trim(request.form("buycarse"))
if buyser="" then
response.write"<script>alert('请选择购买方式');history.back(-1);</script>"
response.end
end if
set rs=server.createobject("adodb.connection")
sql="insert into userbuycar(username,addtime,buyser) values('"&username&"','"&addtime&"','"&buyser&"')"
rs.open conn
rs.execute(sql)
response.cookies("buyend")="okbuyser"
response.cookies("buyend").expires=date()+1
response.write"<script>alert('数据保存成功,现在你可以关闭本窗口,请耐心等待');window.close();</script>"
end if
%>
</center>
</div>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -