<!--#include file="../../fy_inc/fy.User.asp"-->
<!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="<%=fycms.actsys%>images/fycms.css" rel="stylesheet" type="text/css" media="screen" />
 </head>
<body class="flinkpage">
<%		Dim id,rs,rootid,rs1,totalren,title,totalcount,h,i,VoteEnd,VoteStart
 		id=ChkNumeric(Rsql(request("id")))
		If id=0 Then echo "非法参数":response.end

		
 		Set rs=fycms.actexe("select * from vote_fy where id="&id)
 	if not (rs.bof and rs.eof) then
 		title=rs("title")
 		VoteStart=rs("VoteStart")
 		VoteEnd=rs("VoteEnd")
	end if
		Set rs1=fycms.actexe("select * from vote_fy where rootid="&id&" order by rootid")
 		if rs1.eof  Then echo "没有这个投票":response.end
			totalcount=0
			Do while not rs1.eof
				totalcount=totalcount+rs1("VoteNum")
				rs1.movenext
			loop
			totalren=totalcount
			if totalcount=0 then
				totalcount=1
			end If
			

%>
  
<div class="header">
	<div class="top w960 center">
		<div class="title">
			<h1>
				<h1><a href="<%=fycms.ActUrl%>"><%=fycms.fycms_Sys(0)%></a></h1>
			</h1>
		</div><!-- /title -->

  </div><!-- /top -->
</div><!-- /header -->
<div class="w960 clear center mt1 cmt-box">
  <div class="sp-title">
    <h2><%=title%></h2>
    <span class="more">
    	投票开始时间：<%=VoteStart%>
      	投票结束时间：<%=VoteEnd%>        投票人数：<%=totalren%>         </span> </div>
  <div class="formbox">
       </div>        
  <div class="formbox">
    <table width='98%' border='0' cellspacing='1' cellpadding='1'>
<tr height='8'><td width='30%'></td><td></td></tr>

 <%
  	rs1.movefirst
	i=1
   Do while not rs1.eof
  %>

<tr height='30'><td style='border-bottom:1px solid'><%=i%>、<%=rs1("title")%>(<%=FormatNumber((rs1("VoteNum")*100)/totalcount,2)%>%)</td><td style='border-bottom:1px solid'>
			<table border='0' cellspacing='0' cellpadding='2' width='<%=cint((rs1("VoteNum")*600)/totalcount)%>'><tr><td height='16' background='votebg.gif' style='border:1px solid #666666;font-size:9pt;line-height:110%'><%=rs1("VoteNum")%></td></tr></table>
			</td></tr>


 <%i=i+1
  	rs1.movenext
	loop
	 

  %>


 
<tr><td></td><td></td></tr>
</table>
  </div>
</div>
<div class="footer">
  <p class="link">
    网站版权信息及免责声明
  </p>
<!-- 
		by  fycms.com
	-->
	<p class="powered">
		Powered by <a href="http://www.fycms.com" title="cms" target="_blank"><strong>ACT<span>CMS</span></strong></a> 
	</p><!-- /powered -->
  
</div>

</body>
</html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 <%Call CloseConn%>
 