<!--#include file="../conn/conn.asp"-->
<%SQLin%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>投票结果</title>
<LINK href=../css/css3.css rel=stylesheet type="text/css">
<style type="text/css">
<!--
.STYLE3 {
	color: #000000;
	font-size: 16px;
	font-weight: bold;
}
-->
</style>
</head>
<style type="text/css">
<!--
.STYLE2 {color: #FF0000}
-->
</style>
<body>
<%
		id=request("id")
		if IsNumeric(id)=false then
			response.Write("<script>alert(""非法参数!"");window.close();</script>")
		else
		set rs=Server.CreateObject("Adodb.Recordset")
		sql="select * from JOB_Vote where JOB_Voteid="&id
		rs.open sql,conn,1,1
	if not (rs.bof and rs.eof) then
		JOB_Voteid=rs("JOB_Voteid")
		JOB_VoteTitle=rs("JOB_VoteTitle")
	end if
		sql1="select * from JOB_Vote where JOB_VoteClass="&JOB_Voteid&" order by JOB_Voteid"
		set rs1=Conn.execute(sql1)
		if not(rs1.bof and rs1.eof) then
			totalcount=0
			Do while not rs1.eof
				totalcount=totalcount+rs1("JOB_VoteCount")
				rs1.movenext
			loop
			totalren=totalcount
			if totalcount=0 then
				totalcount=1
			end if

%>
<br />
<table width="80%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#eeeeee" style="margin:2px 0;">
  <tr>
    <td colspan="3" align="center" bgcolor="#FFFFFF"><span class="STYLE3"><%=JOB_VoteTitle%></span></td>
  </tr>
  <%
  	rs1.movefirst
   Do while not rs1.eof
  %>
  <tr>
    <td width="35%" bgcolor="#FFFFFF">&nbsp;投票选项: <%=rs1("JOB_VoteTitle")%></td>
	<%h=clng((rs1("JOB_VoteCount")*300)/totalcount)%>
    <td width="45%" align="left" valign="middle" bgcolor="#FFFFFF"><hr width="<%=h%>" color="<%=rs1("JOB_VoteColor")%>" style="height:10px;">
			
		
	</td>
    <td width="20%" bgcolor="#FFFFFF"> <span class="STYLE2"><%=rs1("JOB_VoteCount")%></span> 票(<%=FormatNumber((rs1("JOB_VoteCount")*100)/totalcount,2)%>%)</td>
  </tr>
  <%
  	rs1.movenext
	loop
	end if

  %>
  <tr>
    <td colspan="3" align="right" bgcolor="#FFFFFF" style=" padding-right:20px;"><a href=<%=SiteUrl&InstallDir%>index.asp>返回首页</a> <a href="#" onclick="javacript:window.close();" title="关闭本页">关闭</a> 共有<%=totalren%>人投票</td>
  </tr>
</table>
<%	end if %>
</body>
</html>
<%CloseConn%>