?? 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 + -