?? daninfo.asp
字號(hào):
<!--#include file="conn.asp"-->
<%if request("action")<>"print" then%>
<link href=Skin/<%=venshop_skin%>/css.css rel=STYLESHEET type=text/css>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<body topmargin="5" leftmargin="5" rightmargin="0" bottommargin="0">
<%end if%>
<%if Request.Cookies("venshop")("user_name")="" then
response.write "您還沒(méi)有定購(gòu)任何產(chǎn)品,或者您您的登錄超時(shí)。 <a href=login.asp>登錄</a> <a href=reg.asp>注冊(cè)</a>"
response.end
else
user_name=Request.Cookies("venshop")("user_name")
end if
id=request("id")
if request("action")="del" then
set rs=server.createobject("adodb.recordset")
sql="select * from venshop_gou where username='"&user_name&"' and id="&id&""
rs.open sql,conn,1,3
rs.delete
rs.update
rs.close
set rs=nothing
response.write "刪除成功! <a href='javascript:window.close()'>關(guān)閉</a>"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from venshop_gou where username='"&user_name&"' and id="&id&""
rs.open sql,conn,1,1
if rs.eof then
response.write "沒(méi)有此信息"
response.end
rs.close
set rs=nothing
else
%><title>缺貨單詳情</title>
<%if request("action")="print" then
Response.ContentType = "application/msword"
response.AddHeader "content-disposition", "inline; filename="&rs("username")&rs("id")&".doc"
end if
%>
<table border="0" width="600" cellspacing="1" cellpadding="5" bgcolor="#808080">
<tr><td bgcolor="#EEEEEE" align="center">日期:<font color="#808080"><%=rs("gdate")%></font> 用戶(hù)名:<%=rs("username")%></td></tr>
<tr><td bgcolor="#FFFFFF">需求商品:<%=rs("hw")%></td></tr>
<tr><td bgcolor="#FFFFFF">需求數(shù)量:<%=rs("count")%></td></tr>
<tr><td bgcolor="#FFFFFF">商品規(guī)格:<%=rs("guige")%></td></tr>
<tr><td bgcolor="#FFFFFF">商品材料:<%=rs("cailiao")%></td></tr>
<tr><td bgcolor="#FFFFFF">商品備注:<%=rs("beizhu")%></td></tr>
<tr><td bgcolor="#FFFFFF">采 購(gòu) 人:<b><%=rs("name")%></b></td></tr>
<tr><td bgcolor="#FFFFFF">郵 箱:<%=rs("email")%></td></tr>
<tr><td bgcolor="#FFFFFF">電 話:<%=rs("tel")%></td></tr>
<tr><td bgcolor="#FFFFFF">處理結(jié)果:<%if rs("acheck")=0 then%>尚未處理<%else%><%=rs("are")%><%end if%></td></tr>
<%if request("action")<>"print" then%><tr><td bgcolor="#FFFFFF" align="center">
<%if rs("acheck")=0 then%><a href="daninfo.asp?id=<%=request("id")%>&action=del">刪除</a><%end if%>
<a href="daninfo.asp?id=<%=request("id")%>&action=print">訂單打印</a></td></tr></table><%end if%>
<%rs.close
set rs=nothing
end if
conn.close
set conn=nothing
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -