?? viewnimingdingdan.asp
字號:
<!--#include file="conn.asp"-->
<%if session("bjxadmin")="" then
response.Write "<script language='javascript'>alert('網絡超時或您還沒有登陸!');window.location.href='login.asp';</script>"
response.End
else
if session("flag")=2 then
response.Write "<p align=center><font color=red>您沒有此項目管理權限!</font></p>"
response.End
end if
end if
%>
<html><head><title>匿名訂單信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<%dim dingdan,username
dingdan=request.QueryString("dan")
if not isnumeric(dingdan) then
response.write"<script>alert(""非法訪問!"");location.href=""../index.asp"";</script>"
response.end
end if
username=request.QueryString("username")
if InStr(username,"'")>0 then
response.write"<script>alert(""非法訪問!"");location.href=""../index.asp"";</script>"
response.end
end if
set rs=server.CreateObject("adodb.recordset")
rs.open "select BJX_goods.bookid,BJX_goods.bookname,BJX_goods.shichangjia,BJX_goods.huiyuanjia,bjx_action.actiondate,bjx_action.shousex,bjx_action.userzhenshiname,BJX_goods.shjiaid,bjx_action.shouhuoname,bjx_action.dingdan,bjx_action.youbian,bjx_action.liuyan,bjx_action.zhifufangshi,bjx_action.songhuofangshi,bjx_action.zhuangtai,bjx_action.zonger,bjx_action.useremail,bjx_action.usertel,bjx_action.shouhuodizhi,bjx_action.bookcount,bjx_action.danjia,bjx_action.fapiao,bjx_action.feiyong from BJX_goods inner join bjx_action on BJX_goods.bookid=bjx_action.bookid where bjx_action.username='"&username&"' and dingdan='"&dingdan&"' ",conn,1,1
if rs.eof and rs.bof then
response.write "<p align=center><font color=red>此訂單中有商品已被管理員刪除,無法進行正確計算。<br>訂單操作取消,請手動刪除此訂單!</font></p>"
response.write "<input type=button name=Submit3 value=刪除訂單 onClick=""location.href='savedingdan.asp?action=del&dan="&dingdan&"&username="&username&"'""> </center>"
response.End
end if
shjiaid=rs("shjiaid")
%>
<table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="4" align="center" background="../images/admin_bg_1.gif"><b><font color="#ffffff">修改商品訂單</font></b></td>
</tr>
<tr bgcolor="#EFF5FE">
<td colspan="2" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="89%" align="center">
訂單號為:<%=dingdan%> ,詳細資料如下:
</td>
<td width="11%" align="center">
<input type="button" name="Submit4" value="打 印" onClick="javascript:window.print()">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="20%" bgcolor="#EFF5FE" style='PADDING-LEFT: 10px'>訂單狀態:</td>
<td width="80%" bgcolor="#EFF5FE">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<form name="form1" method="post" action="savedingdan.asp?dan=<%=dingdan%>&action=save&username=<%=username%>">
<td >
<%zhuang()%><br>
<input type="submit" name="Submit" value="修改訂單狀態">
<font color="#FF0000">這里只有前臺用戶先選擇"用戶已經劃出款"后,管理員才可以進行后邊的操作!</font></td>
</form>
</tr>
</table>
</td>
</tr>
<tr>
<td width="13%" bgcolor="#EFF5FE" style='PADDING-LEFT: 10px'>商品列表:</td>
<td bgcolor="#EFF5FE">
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#EFF5FE" align="center">商品名稱</td>
<td bgcolor="#EFF5FE" align="center">訂購數量</td>
<td bgcolor="#EFF5FE" align="center">價 格</td>
<td bgcolor="#EFF5FE" align="center">金額小計</td>
</tr>
<%zongji=0
do while not rs.eof%>
<tr>
<td bgcolor="#EFF5FE" style='PADDING-LEFT: 5px'><a href=../goodsview.asp?bjxGid=<%=rs("bookid")%> ><%=trim(rs("bookname"))%></a></td>
<td bgcolor="#EFF5FE">
<div align="center"><%=rs("bookcount")%></div>
</td>
<td bgcolor="#EFF5FE">
<div align="center"><%=rs("danjia")&"元"%></div>
</td>
<td bgcolor="#EFF5FE">
<div align="center"><%=rs("zonger")&"元"%></div>
</td>
</tr>
<%zongji=rs("zonger")+zongji
feiyong=rs("feiyong")
rs.movenext
loop
rs.movefirst%>
<tr>
<td colspan="4" bgcolor="#EFF5FE">
<div align="right">訂單總額:<%=zongji%>元+費用:<%=feiyong%>元 共計:<%=zongji+feiyong%>元
</div>
</td>
</tr>
</table>
</td>
</tr>
<%set snsn=server.CreateObject("adodb.recordset")
snsn.open "select * from BJX_action_jp where username='"&username&"' and dingdan='"&dingdan&"'",conn,1,1
if snsn.recordcount>0 then%>
<tr bgcolor="#FFFFFF">
<td width="13%" style='PADDING-LEFT: 10px' bgcolor="#EFF5FE">獎品列表:</td>
<td bgcolor="#EFF5FE">
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" >
<tr>
<td align="center">獎品名稱</td>
<td align="center">所用積分</td>
</tr>
<%
while not snsn.eof%>
<tr>
<td bgcolor="#EFF5FE">
<div align="center">
<%
set snsn1=server.CreateObject("adodb.recordset")
snsn1.open "select * from BJX_jiangpin where bookid="&snsn("bookid"),conn,1,1
if snsn1.recordcount=1 then
response.write snsn1("bookname")
end if
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -