📄 order_view.asp
字号:
<!--#include file="conn.asp" -->
<!--#include file="admin_dn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="image/css.css" rel="stylesheet" type="text/css">
</head>
<%
if Trim(Request.QueryString("w"))="del" then
sql="delete from shop where bh="&request("bh")
conn.execute(sql)
sql="delete from promote_shop where bh="&request("bh")
conn.execute(sql)
sql="delete from domain_shop where bh="&request("bh")
conn.execute(sql)
sql="delete from mail_shop where bh="&request("bh")
conn.execute(sql)
sql="delete from host_shop where bh="&request("bh")
conn.execute(sql)
%>
<script language="VBScript" type="text/VBScript">
msgbox "订单已经删除成功"
</script>
<%
end if
%>
<body leftmargin="5" topmargin="5">
<p>用户订单管理</p>
<form name="form1" method="post" action="order_view.asp">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="16%"><strong>订单查询</strong></td>
<td width="84%"> </td>
</tr>
<tr>
<td>查询条件:</td>
<td><input name="search" type="text" id="search"></td>
</tr>
<tr>
<td>查旬选项:</td>
<td><select name="sel" id="sel">
<option value="bh">订单号</option>
<option value="userid" selected>用户名</option>
<option value="ll">产品类别</option>
<option value="jf">支付情况</option>
<option value="dat">提交日期</option>
</select>
<input type="submit" name="Submit" value="确定查询">
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</form>
<p align="center"> <a href="order_view.asp?w=all">-显示所有订单-</a> <a href="order_view.asp">-显示今天的订单-</a></p>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="8%" bgcolor="#EBEBEB"><div align="center">订单号</div></td>
<td width="15%" bgcolor="#EBEBEB"><div align="center">所属用户</div></td>
<td width="24%" bgcolor="#EBEBEB"><div align="center">产品名称</div></td>
<td width="12%" bgcolor="#EBEBEB"><div align="center">支持金额</div></td>
<td width="8%" bgcolor="#EBEBEB"><div align="center">数量</div></td>
<td width="6%" bgcolor="#EBEBEB"><div align="center">开通</div></td>
<td width="13%" bgcolor="#EBEBEB"><div align="center">确认开通</div></td>
<td width="7%" bgcolor="#EBEBEB"><div align="center">删 除</div></td>
<td width="7%" bgcolor="#EBEBEB"><div align="center">答复</div></td>
</tr>
<%
if request("search")<>"" then
if Request("sel")="dat" then sear="#"&Trim(Request.Form("search"))&"#"
if Request("sel")="bh" then sear=Request.Form("search")
if Request("sel")="userid" then sear="'"&Request("search")&"'"
if Request("sel")="ll" then sear="'"&Request.Form("search")&"'"
if Request("sel")="jf" then sear=Request.Form("search")
sql="select * from shop where "&Request("sel")&"="&sear&" order by id"
else
sql="select * from shop where dat=#"&date()&"# order by id desc"
end if
if Trim(Request.QueryString("w"))="all" then sql="select * from shop order by id desc"
rs.open sql,conn,1,1
while not rs.eof
%>
<tr bgcolor="#FCFCFC">
<td><div align="center"><font color="#FF0000"><%= rs("bh") %></font></div></td>
<td><div align="center"><a href="member_manage.asp?w=search&select=userid&search=<%=rs("userid")%>"><%= rs("userid") %></a></div></td>
<td><div align="center"><%= rs("mc") %></div></td>
<td><div align="center"><%= rs("je") %></div></td>
<td><div align="center"><%= rs("sl") %></div></td>
<td><div align="center"><font color="#FF0000"><%= rs("sx") %></font></div></td>
<td><div align="center"><a href="admin_view_<%=rs("ll")%>.asp?bh=<%=rs("bh")%>">详细信息</a></div></td>
<td><div align="center"><a href="order_view.asp?w=del&bh=<%=rs("bh")%>"><img src="image/4.jpg" width="16" height="16" border="0"></a></div></td>
<td><div align="center"><a href="admin_msg.asp?id=<%= rs("bh") %>&title=<%= rs("mc") %>&ll=<%=rs("ll")%>"><img src="image/folder.gif" width="16" height="16" border="0"></a></div></td>
</tr>
<% rs.movenext
wend
rs.close %>
<tr>
<td colspan="9" bgcolor="#DFDFDF"> </td>
</tr>
</table>
<p> </p>
<hr width="95%" size="1">
<p>注:在这里您可以查询所有用户订单的情况。 默认为显示今天的订单,在用搜索时,请输入查询的条件,<font color="#FF0000">如果:查询选项为 按订单号 则 查询条件为用户订单号。其中请注意,当按,日期查询是。日期的条件为 如:2003-3-20 当按 支付情况 查询时,条件只能为 true 或 false;当用产品类别查询时,查询条件中必写,显示主机为"host" 显示所有域名为 "domain" 显示所有邮局为 "mail" </font></p>
<p><font color="#000099">这里删除的操作将无条件删除数据库中的记录,不管开通是否,交款是否。</font></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -