?? commentact.asp
字號:
<!--#include file="session.asp"-->
<!--#include file="conn.asp"-->
<%dim action,id
action=request.querystring("action")
id=request.queryString("id")
select case action
'//訂單刪除
case "del"
conn.execute "delete from pl where id="&id
response.Redirect "comment.asp"
'//已確認訂單刪除
case "delete"
conn.execute "delete from theorder where order_id="&id
conn.execute "delete from basket where order_number='"&id&"'"
response.Redirect "ordconfirmed.asp"
'//訂單確認
case "confirm"
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from pl where id="&id,conn,3,3
rs("check")=true
rs.Update
rs.Close
set rs=nothing
response.write"<SCRIPT language=JavaScript>alert('商品評論已審核');"
response.write"this.location.href='comment.asp';</SCRIPT>"
'//解除訂單確認
case "cancel"
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from pl where id="&id,conn,3,3
rs("check")=false
rs.Update
rs.Close
set rs=nothing
response.write"<SCRIPT language=JavaScript>alert('商品評論已取消審核');"
response.write"this.location.href='comment.asp';</SCRIPT>"
end select
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -