<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!-- #include file="inc/Session.asp" -->
<!-- #include file="inc/function.asp" -->
<!-- #include file="inc/checkrole.asp" -->
<%
'''''''''''''''''''''''''''''''''''''''''''''''
call checkPrevilege(Session("Name"),"p22")
'''''''''''''''''''''''''''''''''''''''''''''''
BeginTime=Timer
dim obj,objArr,flags,do_type

do_type=request.form("do_type")
if not isempty(request.Form("obj")) then
	obj=request.Form("obj")
else
	response.Write("请选择需要操作的记录")
	response.Write("<a href=""#"" onClick=""javascript:history.back();"">返回</a>")
	response.End()
end if
response.write("<br><br><br><br><p align=""center"">")
objArr=split(obj,",")
	for i=0 to ubound(objArr)	
		if(do_type="del") then
			conn.execute("delete from t_lp where id="&objArr(i))
			response.Write("批量删除成功:id"&objArr(i)&"！")
		elseif(do_type="recommend") then
			conn.execute("update t_lp set f_recommend=1 where id="&objArr(i))
			response.Write("批量推荐成功！")
		elseif(do_type="unrecommend") then
			conn.execute("update t_lp set f_recommend=0 where id="&objArr(i))
			response.Write("批量取消推荐成功！")
		end if				
	next
	if(do_type="weekpk") then
			conn.execute("update t_lp_pk set Fid="&objArr(0)&",Sid="&objArr(1))
			response.Write("设置本周PK成功！")
	end if
response.Write("<a href="""&request.ServerVariables("HTTP_REFERER")&""">点击此处返回</a></p>")
%>
<html>
<head>
<title>楼盘管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #FFFFFF;
	font-size:12px;
}
-->
</style>
</head>
<body>
</body>
</html>
<%
call connclose()
%>