<!--#include file="admin_chk.asp"-->
<!--#include file="admin_conn.asp"-->
<%dim Checked,sql
Checked=request.form("Checked")
if Checked="" then
response.write "<script>alert('对不起，请您选择投票项！');history.go(-1);</Script>"	
	Response.End 	
end if
set rs=server.createobject("adodb.recordset")
sql="Select isChecked from vote where IsChecked=1"
rs.open sql,conn,1,3
if not rs.eof then
	do while not rs.eof
		rs("IsChecked")=0
	rs.movenext
	loop
end if
rs.close

sql="Select IsChecked from vote where ID="&Checked
rs.open sql,conn,1,3
if not rs.EOF then
	do while not rs.EOF 
		rs("isChecked")=1
	rs.MoveNext 
	loop
end if
rs.close
set rs=nothing

conn.close
set conn=nothing
response.redirect "voteManage.asp"
%> 
