orders.asp
来自「能进行网上购物的需求」· ASP 代码 · 共 198 行
ASP
198 行
<!--#include file="conn.asp"-->
<!--#include file="../webconfig.asp"-->
<%
if session("admin_name")="" then
response.redirect "default.asp"
end if
on error resume next
id=request("id")
set rs=server.createobject("adodb.recordset")
sql="select * from 56770_orders where id=" & id
rs.open sql, conn, 1, 1
order_zf=""
order_zt=""
order_cw=""
if rs("order_zf")=true then order_zf="checked"
if rs("order_zt")=true then order_zt="checked"
if rs("order_cw")=true then order_cw="checked"
if rs("errmsg")="" or rs("errmsg")="无" then
errmsg="此订单并非错误订单"
else
errmsg=rs("errmsg")
end if
totalcash=rs("totalcash")
order_number=rs("order_number")
order_time=rs("order_time")
sendtype=rs("sendtype")
paymenttype=rs("paymenttype")
fei=rs("fei")
jifen=rs("jifen")
summoney=rs("summoney")
user_id=rs("user_id")
to_name=rs("to_name")
postcode=rs("postcode")
tel=rs("tel")
to_adds=rs("to_adds")
other=rs("other")
email=rs("email")
hg=rs("hg")
rs.close
set rs=nothing
'开始完成操作
if request("action")="modi" then
Response.Write("<script>alert("" 很抱歉,程序版本为试用版 \n\n 您无法对数据库进行操作,如您需要请您购买商业版本 \n\n *****感谢您对我们的支持,我们会继续努力***** \n\n QQ:88464758 联系电话:0451-89575990 \n\n为中国电子商务发展助力!-- 56770.com"");history.back();</script>")
Response.end
end if
if request("action")="hg" then
Response.Write("<script>alert("" 很抱歉,程序版本为试用版 \n\n 您无法对数据库进行操作,如您需要请您购买商业版本 \n\n *****感谢您对我们的支持,我们会继续努力***** \n\n QQ:88464758 联系电话:0451-89575990 \n\n为中国电子商务发展助力!-- 56770.com"");history.back();</script>")
Response.end
end if
%>
<html>
<head>
<title>后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#FFFFFF" vspace="0" hspace="0">
<tr bgcolor="#FFCC33">
<td height="27" background="images/admin_bg_1.gif" bgcolor="#FFFFFF">.:: 您可以在这里进行用户订单相关操作</td>
</tr>
</table>
<table border="1" style="border-collapse: collapse;border:dotted 1px" bordercolor="#333333" cellpadding=0 width="96%" align="center">
<TR><TD>
<table border="0" cellspacing="1" cellpadding="4" bgcolor="#FFFFFF" width="100%" align="center">
<form action="orders.asp" method="post" name="orders">
<tr bgcolor="#6699CC">
<td width="70">订单状态:</td>
<td>
<input type="checkbox" name="order_zf" value="已支付" <%=order_zf%>>
已支付
<input type="checkbox" name="order_zt" value="已发货" <%=order_zt%>>
已发货
<input type="checkbox" name="order_cw" value="无效订单" <%=order_cw%>>
无效订单</td>
</tr>
<tr bgcolor="#B0CBE6">
<td valign="top"><br>
附加信息:</td>
<td bgcolor="#B0CBE6">
<textarea name="errmsg" rows="2" cols="40"><%=errmsg%></textarea>
</td>
</tr>
<tr bgcolor="#B0CBE6">
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value="修改">
<input type="reset" name="Submit2" value="重填">
<%if hg=true then%>
<input type="hidden" name="id" value="<%=id%>">
<input type="hidden" name="action" value="hg">
<%else%>
<input type="hidden" name="id" value="<%=id%>">
<input type="hidden" name="user_id" value="<%=user_id%>">
<input type="hidden" name="email" value="<%=email%>">
<input type="hidden" name="summoney" value="<%=summoney%>">
<input type="hidden" name="to_name" value="<%=to_name%>">
<input type="hidden" name="postcode" value="<%=postcode%>">
<input type="hidden" name="tel" value="<%=tel%>">
<input type="hidden" name="to_adds" value="<%=to_adds%>">
<input type="hidden" name="action" value="modi">
<%end if%>
</div>
</td>
</tr>
</form>
</table>
<table border="0" cellspacing="1" cellpadding="0" bgcolor="#FFFFFF" width="100%" align="center">
<tr bgcolor="#FFFF99">
<td height="22" bgcolor="#6699cc">商品订单信息:<%if hg=true then response.write"<font color=red>此订单为积分换购商品订单</font>" end if%></td>
</tr>
</table>
<table border="0" cellspacing="1" cellpadding="4" bgcolor="#FFFFFF" width="100%" align="center">
<tr bgcolor="#B0CBE6">
<td height="22" width="20%" align="center">订单号:</td>
<td width="25%" align="center"><%=order_number%></td>
<td width="20%" align="center">订购时间:</td>
<td width="35%" align="center"><%=order_time%></td>
</tr>
<tr bgcolor="#B0CBE6">
<td height="22" width="20%" align="center">配送方式:</td>
<td width="25%" align="center"><%=sendtype%>
</td>
<td width="20%" align="center">支付方式:</td>
<td width="35%" align="center"><%=paymenttype%></td>
</tr>
</table>
<table border="0" cellspacing="1" cellpadding="4" bgcolor="#FFFFFF" width="100%" align="center">
<tr bgcolor="#B0CBE6">
<%if hg=false then%>
<td height="22" width="20%" align="center">商品总额:</td>
<td width="14%" align="center"><%=totalcash%> 元</td>
<%else%>
<td height="22" width="20%" align="center">共计积分:</td>
<td width="14%" align="center"><%=totalcash%> 点</td>
<%end if%>
<td width="15%" align="center">配送金额:</td>
<td width="10%" align="center"><%=fei%> 元</td>
<td height="22" width="20%" align="center">购物总额:</td>
<td width="22%" align="center"><%=summoney%> 元
</td>
</tr>
</table>
<table border="0" cellspacing="1" cellpadding="4" bgcolor="#FFFFFF" width="100%" align="center">
<tr bgcolor="#6699CC">
<td height="22" width="100%">订购人信息:</td>
</tr>
</table>
<table border="0" cellspacing="1" cellpadding="4" bgcolor="#FFFFFF" width="100%" align="center">
<tr bgcolor="#B0CBE6">
<td height="22" width="20%" align="center">会员ID:</td>
<td width="25%" align="center"><%=user_id%><a href="admin_msg.asp?a=add&user_id=<%=user_id%>"><img src="images/message.gif" border="0" alt="发送站内短信"></a></td>
<td width="20%" align="center">收货人姓名:</td>
<td width="35%" align="center"><%=to_name%></td>
</tr>
<tr bgcolor="#B0CBE6">
<td height="22" width="20%" align="center">收货人邮编:</td>
<td width="25%" align="center"><%=postcode%></td>
<td width="20%" align="center">收货人EMAIL:</td>
<td width="35%" align="center"><%=email%></td>
</tr>
<tr bgcolor="#B0CBE6">
<td height="22" width="20%" align="center">收货人电话:</td>
<td width="25%" align="center"><%=tel%></td>
<td height="22" width="20%" align="center">收货人地址:</td>
<td width="35%" align="center" bgcolor="#B0CBE6"><%=to_adds%></td>
</tr>
<tr bgcolor="#B0CBE6">
<td height="22" width="20%" align="center">备注:</td>
<td colspan="3" width="80%" align="left">
<%
other = replace(other, chr(13), "<br>")
other = replace(other, chr(32), " ")
response.write other
%>
</td>
</tr>
</table>
<table border="0" cellspacing="1" cellpadding="4" bgcolor="#FFFFFF" width="100%" align="center">
<tr bgcolor="#6699CC">
<td height="22" width="100%">订购商品列表</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="100" width="100%">=====不能显示数据======</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?