dim action
action=request.QueryString("action")
select case action
case "del"
if request("shenhe").count=0 then
response.write "alert('您没有选择要删除的评论?');history.go(-1);"
response.End
end if
conn.execute ("delete from sh_review where pinglunid in ("&request("shenhe")&")")
response.write "alert('批量删除成功!');history.go(-1);"
response.end
case "shenhe"
if request("shenhe").count=0 then
response.write "alert('您没有选择要审核的评论?');history.go(-1);"
response.End
end if
conn.execute "update sh_review set shenhe=1 where pinglunid in ("&request("shenhe")&")"
response.write "alert('批量审核成功!');history.go(-1);"
response.end
case "delzhou"
dim theday
theday=date-7
conn.execute ("delete from sh_review where pinglundate response.write "alert('一周前未审核评论删除成功!');history.go(-1);"
response.end
case "delall"
conn.execute ("delete from sh_review where shenhe=0")
response.write "alert('所有未审核评论删除成功!');history.go(-1);"
response.end
end select
%>