<!--#include file="vote/conn.asp"-->
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>投票结果</title>
<style type="text/css">
<!--
.style3 {color: #FF0000; font-weight: bold; }
TD{font-size:9pt;line-height:120%;}
BODY{font-size:9pt;}
-->
</style>
</head>

<BODY leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#Ffffff">
<%
  ID=Request.QueryString("ID")
  IF ID="" THEN Response.write "<script language=javascript>windows.close()</script>"
  Set conn=Server.CreateObject("ADODB.Connection")
  conn.open ConnStr
  Set rs=conn.execute("Select Project From Vote_List Where ID="&ID)
  IF rs.eof THEN Response.write "<script language=javascript>windows.close()</script>"
  title=rs(0)
  rs.close
  rs.open "Select VoteContent,VoteResult From Vote_Answer Where ListID="&ID,conn,1,1
  vote=rs.GetRows
  rs.close
  Set rs=nothing
  conn.close
  Set conn=nothing
  total=0
  FOR i=0 TO Ubound(vote,2)
    total=total+vote(1,i)
  NEXT
%>
<center><br><font color="#003300"><b>投票结果显示</b></font><br>
  <table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#99CCFF" width="380" id="AutoNumber3" bgcolor="#FEE2CB">
    <tr>
      <td><b>调查项目说明：</b><br><%=title%></td>
  </tr>
</table><br>
  <table border="1" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#99CCFF" width="380" id="AutoNumber2">
    <tr>
      <td width="97" align="center">投票项</td>
      <td width="234" align="center">百 分 比</td>
      <td width="33" align="center">得票</td>
</tr>
<%
  FOR i=0 TO Ubound(vote,2)
%>          
          <tr>
            
      <td width="97" height="1"> <%=vote(0,i)%></td>
            <td width="234" height="1" bgcolor="#FFFFFF">
              <img border="0" src="vote/poll.gif" width="<%=Int(85*vote(1,i)/(total+0.0001)+0.5)%>%" height="10"> <%=Int(100*vote(1,i)/(total+0.0001)+0.5)%>%</td>
            <td width="33" height="1" bgcolor="#FFFFFF">
              <p align="center"><%=vote(1,i)%></td>
          </tr>
<%
  NEXT
%>    
    </table>
    </center>      
   <p align="center">【<a href="javascript:window.close()"><font color="#000000">关闭</font></a>】
   <body>

</html>