📄 xfjl.asp
字号:
<!--#include file="articleconn.asp"-->
<!--#include file="head.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>消费记录</title>
<link href="css/STYLE.CSS" rel="stylesheet" type="text/css">
</head>
<%
MaxPerPage=20
dim totalPut
dim CurrentPage
dim TotalPages
dim i,j
dim typename
typename=""
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
dim sql
dim rs
dim rstype
if request("page")="" then
page=0
end if
%>
<body bgcolor="#3B5815" leftmargin="0" topmargin="0">
<TABLE width=778 height="30"
<TD align=center class=mix> <script src="jsmenu.asp"></script> </TD>
</TR>
</TABLE>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/inchelp-04.gif">
<tr>
<td width="35"><img src="images/inchelp-05.gif" width="27" height="29"></td>
<td>
<marquee class= behavior=scoll width=404 scrollDelay=2 scrollAmount=1 onmouseover=this.stop(); onmouseout=this.start();> <script src="jstopgd.asp" ></script></marquee>
</td>
<td width="17"><img src="images/inchelp-01.gif" width="18" height="29"></td>
<td width="55" align="center" background="images/inchelp-06.gif"><a href="playhelp.asp" class="left">播放帮助</a></td>
<td width="27"><img src="images/inchelp-02.gif" width="27" height="29"></td>
<td width="55" align="center" background="images/inchelp-06.gif"><a href="downhelp.asp" class="left">下载帮助</a></td>
<td width="27"><img src="images/inchelp-02.gif" width="27" height="29"></td>
<td width="55" align="center" background="images/inchelp-06.gif">
<a class="left" target="_blank" href="http://bbs.cn-mayi.com">本站论坛</a></td>
<td width="27"><img src="images/inchelp-02.gif" width="27" height="29"></td>
<td width="55" align="center" background="images/inchelp-06.gif"><a href="reguser.asp" class="left">注册会员</a></td>
<td width="14"><img src="images/inchelp-03.gif" width="14" height="29"></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td align="center" background="images/fufeibg.gif">
<center>
<%
set rs=server.createobject("adodb.recordset")
sql="select id from users where userid='"&Replace(request.cookies("userid"), "'", "''")&"' and password='"&Replace(request.cookies("password"), "'", "''")&"'"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write" <script>alert('没有登陆或用户名密码错误无法查询!');</Script>"
response.write"<script Language=Javascript>location.href = 'index.asp';</script>"
response.end
end if
sql="select * from tolook where userid='"&Replace(request.cookies("userid"), "'", "''")&"' order by id desc"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if not rs.eof and rs.bof then
response.write" <script>alert('没有登陆或用户名密码错误无法查询!');</Script>"
response.write"<script Language=Javascript>location.href = 'index.asp';</script>"
response.end
else
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showContent
showpage totalput,MaxPerPage,"xfjl.asp"
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark
showContent
showpage totalput,MaxPerPage,"xfjl.asp"
else
currentPage=1
showContent
showpage totalput,MaxPerPage,"xfjl.asp"
end if
end if
end if
sub showContent
dim i
i=0
%>
</p>
<P> </P>
<TABLE width=562 border=0 align="center" cellPadding=0 cellSpacing=0>
<TR>
<TD width=550
height=51 align="center" background=images/xfjltop.gif> 用户:<font color="red"><%=request.cookies("userid")%></font>(系统会自动删除30天以前记录)</TD>
</TR>
<TR>
<TD align=center background=images/fufeiconbg.gif>
<table width="552" border="0" align="center" cellspacing="1" bgcolor="#999999">
<tr bgcolor="#FFFFFF">
<td width="241" align="center">影片名称</td>
<td width="45" align="center">操作</td>
<td width="150" align="center">播放或下载时间</td>
<td width="103" align="center">播放者IP</td>
</tr>
<%do while not rs.eof%>
<tr bgcolor="#FFFFFF">
<td width="241"><%=rs("title")%></td>
<td align="center" width="45"><%=rs("lookordown")%></td>
<td align="center" width="150"><%=rs("looktime")%></td>
<td align="center" width="103"><%=rs("userip")%></td>
</tr>
<% i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
%>
</table></TD>
</TR>
<TR>
<TD height="6" bgcolor="#94C50A">
<p align="center"><img src="images/spacer.gif" width="1" height="1"></TD>
</TR>
</TABLE>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<div align="center">
<%
end sub
function showpage(totalnumber,maxperpage,filename)
dim n
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
response.write "<form method=Post action="&filename&"?typeid="&typeid&">"
if CurrentPage<2 then
response.write "首页 上一页</font> "
else
response.write "<a href="&filename&"?page=1&typeid="&typeid&">首页</a> "
response.write "<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&">上一页</a> "
end if
if n-currentpage<1 then
response.write "下一页 尾页</font>"
else
response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&typeid="&typeid&">"
response.write "下一页</a> <a href="&filename&"?page="&n&"&typeid="&typeid&">尾页</a>"
end if
response.write " 页次:</font><strong><font color=red>"&CurrentPage&"</font>/"&n&"</strong>页</font> "
response.write " 共<b>"&totalnumber&"</b>个纪录 <b>"&maxperpage&"</b>个纪录/页</font> "
response.write " 转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput value="¤tpage&" style='font-size:9pt;background-color:#f7f7f7;border-left: 1px solid rgb(192,192,192); border-right: 1px solid rgb(192,192,192); border-top: 1px solid rgb(192,192,192); border-bottom: 1px solid rgb(192,192,192)'>"
response.write " <input class=buttonface type='image' src='images/search.gif' width='24' height='15' name='cndok'></span></p></form>"
end function
%> </center>
</td>
</tr>
</form>
</table>
</td>
<td width="156" bgcolor="#C3EF26">
<table width="156" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><img src="images/service-001.gif" width="156" height="25"></td>
</tr>
<tr>
<td align="center" background="images/service-002.gif"><table width="80%" border="0">
<tr>
<%
sql="select articleid,domurl,title,content from learning where firstbest=1 order by articleid desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
b=0
row_count=1
%> <%
do while not rs.eof
b=b+1%>
<td align="center"><span lang="zh-cn">
<a href="movie.asp?id=<%=rs("articleid")%>" target="_blank">
<img border="0" height="131" src="<%if rs("domurl")="" then%>IMAGES/nopic.gif<%else%><%=rs("domurl")%><%end if%>" width="111"></a></span></td>
</tr>
<tr>
<% if row_count mod 1 =0 then%>
<td align="center">
</td>
</tr>
<tr>
<td align="center"><a href="movie.asp?id=<%=rs("articleid")%>" target="_blank" class="left">
<%content=rs("title")
if len(content)>8 then content=left(content,8)&"…"
response.write content
%></a></td>
<%end if%>
<%row_count=row_count+1
if b>=1 then exit do
rs.movenext
loop
rs.close
set rs=nothing
%>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center"><img src="images/service-003.gif" width="156" height="50"></td>
</tr>
<tr>
<td align="center" background="images/service-002.gif"><table width="100%" border="0">
<tr>
<td align="center" height="15">
<img src="images/tel.gif"><font color="#a17711">客服联系:</font></td>
</tr>
<tr>
<td align="center" height="4">
</td>
</tr>
<tr>
<td align="center" height="1">
</td>
</tr>
</TBODY></TABLE><IMG height=19
src="images/service-005.gif" width=156></TD></TR>
<TR>
<TD align=middle bgColor=#c3ef26 height=10><IMG height=1
src="images/spacer.gif"
width=1></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<!--#include file="end.asp"--></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -