<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%
dim rs,sql,id,i,str2
id=trim(request("selectedid"))
if request("jle")="yz" then
str2=split(id,",")
for i=0 to ubound(str2)
set rs=server.createobject("adodb.recordset")
sql="select yz,fbsj from [jle_info] where id="&trim(str2(i))
rs.open sql,conn,1,3
if rs("yz")=0 then
rs("yz")=1
rs("fbsj")=now()
rs.update
end if
next
response.write "<script language=JavaScript>" & chr(13) & "alert('记录已经通过验证！');" & "history.back()" & "</script>"
response.end
end if

jing=request("jing")
if jing<>"" then
str2=split(id,",")
for i=0 to ubound(str2)
set rs=server.createobject("adodb.recordset")
sql="select a,fbsj from [jle_info] where id="&trim(str2(i))
rs.open sql,conn,1,3
rs("a")=jing
rs("fbsj")=now()
rs.update
next
response.write "<script language=JavaScript>" & chr(13) & "alert('信息置顶设置成功！');" & "history.back()" & "</script>"
response.end
end if

%>


<%
if request("jle")="del" then
str2=split(id,",")
for i=0 to ubound(str2)
set rs=server.createobject("adodb.recordset")
sql="select tuijian from [jle_info] where id="&trim(str2(i))
rs.open sql,conn,1,3
if rs("tuijian")=1 then
rs("tuijian")=0
rs.update
end if
next
response.write "<script language=JavaScript>" & chr(13) & "alert('成功取消推荐！')</script>"
response.write "<meta http-equiv=refresh content=""1;URL=admin_information.asp"">"
response.end
end if
%>

<%
str2=split(id,",")
for i=0 to ubound(str2)
set rs=server.createobject("adodb.recordset")
sql="select tuijian,fbsj from [jle_info] where id="&trim(str2(i))
rs.open sql,conn,1,3
if rs("tuijian")=0 then
rs("tuijian")=1
rs("fbsj")=now()
rs.update
end if
next
response.write "<script language=JavaScript>" & chr(13) & "alert('信息推荐成功！')</script>"
response.write "<meta http-equiv=refresh content=""1;URL=admin_information.asp"">"
%>
