<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%
dim rs,sql,id,i,str2,cnmai
cnmai=request("cnmai")
id=trim(request("selectedid"))
str2=split(id,",")
for i=0 to ubound(str2)
set rs=server.createobject("adodb.recordset")
sql="select * from [hf] where id="&trim(str2(i))
rs.open sql,conn,1,3
if cnmai="delyz" then
rs("hfyz")=0
else
rs("hfyz")=1
end if
rs.update
next
response.write "<script language=JavaScript>" & chr(13) & "alert('记录验证操作成功！');" & "history.back()" & "</script>"
%>