?? savereview.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="session3.asp"-->
<%
dim action
action=request.QueryString("action")
select case action
case "del"
if request("shenhe").count=0 then
response.write "<script language=javascript>alert('您沒有選擇要刪除的評論?');history.go(-1);</script>"
response.End
end if
conn.execute ("delete from sh_review where pinglunid in ("&request("shenhe")&")")
response.write "<script language=javascript>alert('批量刪除成功!');history.go(-1);</script>"
response.end
case "shenhe"
if request("shenhe").count=0 then
response.write "<script language=javascript>alert('您沒有選擇要審核的評論?');history.go(-1);</script>"
response.End
end if
conn.execute "update sh_review set shenhe=1 where pinglunid in ("&request("shenhe")&")"
response.write "<script language=javascript>alert('批量審核成功!');history.go(-1);</script>"
response.end
case "delzhou"
dim theday
theday=date-7
conn.execute ("delete from sh_review where pinglundate<#"&theday&"# and shenhe=0")
response.write "<script language=javascript>alert('一周前未審核評論刪除成功!');history.go(-1);</script>"
response.end
case "delall"
conn.execute ("delete from sh_review where shenhe=0")
response.write "<script language=javascript>alert('所有未審核評論刪除成功!');history.go(-1);</script>"
response.end
end select
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -