<%temp_interface_defray_in_handle=site.object_p%>
<!-- object[<%=site.object_p%>]::temp_interface_defray_in_handle -->
<%
if request("vote_id")="" then 
	site.error.info="此投票不存在！"
	site.error.location="close"
	site.error.err()
end if

site.object(site.object_p).rs.open"select * from jins_vote_list where vote_id="&request("vote_id")&" ",conn,1,3
if site.object(site.object_p).rs.eof then
	site.error.info="此投票不存在！"
	site.error.location="close"
	site.error.err()
else
	vs=site.object(site.object_p).rs("vote_select")
	if vs<>"" then
		site.object(site.object_p).rs("vote_select")=""
		vs=split(vs,",")
		for i_vs=0 to ubound(vs)
		
			if vs(i_vs)="" then vs(i_vs)=0
			if i_vs-request("vote_option")=0 then 
			site.object(site.object_p).rs("vote_select")=site.object(site.object_p).rs("vote_select")&","&(vs(i_vs)+1)     
			else
			site.object(site.object_p).rs("vote_select")=site.object(site.object_p).rs("vote_select")&","&vs(i_vs) 
			end if
		
		next
		if site.object(site.object_p).rs("vote_select")="" then site.object(site.object_p).rs("vote_select")=","
		
		site.object(site.object_p).rs("vote_select")=right(site.object(site.object_p).rs("vote_select"),len(site.object(site.object_p).rs("vote_select"))-1)                     
		site.object(site.object_p).rs.update
	
	end if
end if

site.object(site.object_p).rs.close
site.error.info="谢谢您参与此次投票！"
site.error.location="close"
site.error.suc()
%>
