<!--#include file="../conn/conn.asp"-->
<!--#include file="../Inc/Commoncode.asp" -->
<%SQLin
JOB_Voteid=request("Voteid")
if request("JOB_VoteStyle")="radio" then
	if isnull(request("voted")) or request("voted")=empty then
	response.write "<script>alert('请选择投票项目。');history.go(-1);</script>"
	response.end
	end if
	conn.execute("Update JOB_Vote set JOB_VoteCount=JOB_VoteCount+1 where JOB_Voteid="&request("voted"))
elseif request("JOB_VoteStyle")="checkbox" then
	if request("voted").count=0 then
	response.write "<script>alert('请选择投票项目。');window.close()</script>"
	response.end
	end if
	for i=1 to request("voted").count
	conn.execute("Update JOB_Vote set JOB_VoteCount=JOB_VoteCount+1 where JOB_Voteid="&request("voted")(i))
	next
end if
response.Redirect "VoteShow.asp?id="&JOB_Voteid&""
CloseConn
%>