📄 user_order.asp
字号:
<!--#include file="../film_conn.asp"-->
<!--#include file="session.asp"-->
<!--#include file="../set_url.asp"-->
<%
if session("flag")>2 then
response.write "<br><p align=center>您的操作权限不够!</p>"
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>会员订单</title>
</head>
<body bgcolor="#E8E8E8" leftmargin="0" topmargin="0">
<script language="javascript">
<!--
function winopen(url)
{
window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=580,height=450,top=1,left=1");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<script language="javascript">
<!--
function emailopen(url)
{
window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=500,height=350,top=1,left=1");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<%
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
dim typesql
dim typeid,typename1
if not isEmpty(request("typeid")) then
typeid=request("typeid")
else
typeid=0
end if
%>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"></td>
</tr>
</table>
<%
if request("name23")="" then
sql="select * from buy order by id desc"
else
sql="select * from buy where userid='"&request("name23")&"'"
end if
if weburl="" then response.end
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'> 还 没 有 任 何 会 员 订 单 <a href='javascript:history.back(-1)'>返回>></a></p>"
else
totalPut=rs.recordcount
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
showpage totalput,MaxPerPage,"user_order.asp"
showContent
showpage totalput,MaxPerPage,"user_order.asp"
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark
showpage totalput,MaxPerPage,"user_order.asp"
showContent
showpage totalput,MaxPerPage,"user_order.asp"
else
currentPage=1
showpage totalput,MaxPerPage,"user_order.asp"
showContent
showpage totalput,MaxPerPage,"user_order.asp"
end if
end if
end if
sub showContent
dim i
i=0
%> <center>
<table border="0" cellspacing="1" width="100%" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="2" height="33" style="border-collapse: collapse" bordercolor="#111111">
<tr bgcolor="#CCCCCC">
<td width="95" align="center" bgcolor="#CCCCCC" height="7">用户名</td>
<td width="88" align="center" bgcolor="#CCCCCC" height="20">姓名</td>
<td width="36" align="center" bgcolor="#CCCCCC" height="20">天数</td>
<td width="55" align="center" bgcolor="#CCCCCC" height="20">应收金额</td>
<td width="61" align="center" bgcolor="#CCCCCC" height="20">付款方式</td>
<td width="83" align="center" bgcolor="#CCCCCC" height="20">代理会员</td>
<td width="100" align="center" bgcolor="#CCCCCC" height="20">
<p align="center">购买时间</td>
<td width="56" align="center" bgcolor="#CCCCCC" height="20">邮箱</td>
<td width="43" align="center" bgcolor="#CCCCCC" height="7">加入</td>
<td width="43" align="center" bgcolor="#CCCCCC" height="7">删除</td>
</tr>
<%do while not rs.eof%>
<form method="POST" action="<%=weburl%>/<%=adminurl%>/user_order_save.asp?userid=<%=rs("userid")%>&id=<%=rs("id")%>">
<tr>
<td height="4" width="95" bgcolor="#FFFFFF">
<p align="center">
<a href="javascript:winopen('user_edit.asp?userid=<%=rs("userid")%>')">
<font color="#0000FF"><u><%=rs("userid")%></u></font></a>
<input type="hidden" name="id" value="<%=rs("id")%>"></td>
<td width="88" height="4" bgcolor="#FFFFFF" align="center"><%=rs("name")%></td>
<td width="36" height="4" bgcolor="#FFFFFF" align="center">
<input type="text" name="moneygj" size="3" value="<%=rs("money")%>"></td>
<td width="55" height="4" bgcolor="#FFFFFF" align="center">¥<%=rs("paymoney")%><input type="hidden" name="paymoney" value="<%=rs("paymoney")%>">元</td>
<td width="61" height="4" bgcolor="#FFFFFF" align="center"><%=rs("giveme")%></td>
<td width="83" height="4" bgcolor="#FFFFFF" align="center">
<% if rs("askmejoin")<>"" then%><%=rs("askmejoin")%><%else%>没有<%end if%><input type="hidden" name="askmejoin" size="1" value="<%=rs("askmejoin")%>"><input type="hidden" name="oklookdf" size="1" value="<%=rs("oklook")%>"></td>
<td width="100" height="4" bgcolor="#FFFFFF" align="center">
<%=month(rs("datetime"))%>月<%=day(rs("datetime"))%>日<%=hour(rs("datetime"))%>时</td>
<td width="56" height="4" bgcolor="#FFFFFF" align="center">
<a href="javascript:emailopen('user_sendmail.asp?email=<%=rs("email")%>&name=<%=rs("name")%>')">回复</a></td>
<td width="43" height="4" bgcolor="#FFFFFF">
<p align="center"><input type="submit" value="加入" name="add"></td>
<td width="43" height="4" bgcolor="#FFFFFF">
<p align="center"><input type="submit" value="删除" name="del"></td>
</tr>
</form>
<% i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
%>
</table>
</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 "<p align=""center""><form method=Post action="&filename&"?typeid="&typeid&">"
if CurrentPage<2 then
response.write "<font color='#000080'>首页 上一页</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 color='#000080'>下一页 尾页</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 color='#000080'> 页次:</font><strong><font color=red>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "
response.write "<font color='#000080'> 共<b>"&totalnumber&"</b>个会员订单 <b>"&maxperpage&"</b>个订单/页</font> "
response.write " <font color='#000080'>转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput value="¤tpage&">"
response.write " <input class=buttonface type='submit' value='Goto' name='cndok'></span></p></form></p>"
end function
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<form method="POST" action="user_order.asp">
<p align="center"><b>用户名:</b><input type="text" name="name23" size="20">
<input type="submit" value="查询"></p>
</form>
<p align="center"><a href="user_order_del_15.asp">删除已加入15天但未付款的定单</a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -