<!--#include file="Include/conn.asp"-->
<!--#include file="Include/Fun_SqlIn.Asp"-->
<!--#include file="Include/Inc_Page.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" />
<meta http-equiv="Content-Language" content="zh-CN" />
<title>投票排行 - <%=SiteTitle%></title>
<meta name="keywords" content="<%=Sitekeywords%>" />
<meta name="description" content="<%=Sitedescription%>" />
<link href="images/vote.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="Images/webrui.js"></script>
</head>
<body>
<!--#include file="Include/head.asp"-->
	  <table width="999" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="30" bgcolor="#CC0001"><span style="font-weight: bold;color:#FFFFFF;"><img src="images/pic.jpg" width="32" height="30" />投票排行</span></td>
      </tr>
	</table>
	  <%
	dim page,Zio
	page=request("page")
	set rs = server.createobject("adodb.recordset")
  	sql="select Sum(VoteNum) as Zto from Web_rui_v_po where ViewFlag=1"
  	rs.open sql,conn,1,1
 	if not rs.bof and not rs.eof then
	Zio=rs("Zto")
	End if
	rs.close
  	set rs=nothing
	%>
	<table width="999" border="0"  align=center cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" style="border:solid 1px EEE; margin-top:10px;">
    <tr bgcolor="#EBF2F9" style="font-weight:bold;">
	<td align="center">序号</td>
    <td align="center">投票名称</td>
	<td align="center">投票数</td>
	<td align="center">人气数</td>
    <td width="40%" height="30" align="center">排行比</td>
	</tr>
	<%
	Set mypage=new xdownpage
	mypage.getconn=conn
	sql="select * from Web_rui_v_po where ViewFlag=1 order by VoteNum desc"
	mypage.getsql=sql
	mypage.pagesize=15
	set rs=mypage.getrs()
	for i=1 to mypage.pagesize
	if not rs.eof then 
	
%>
    <tr bgcolor="#F8FBFE" onMouseOver="this.style.backgroundColor='#FAF5EC';this.style.color='red'" onMouseOut="this.style.backgroundColor='';this.style.color=''">
	<td height="25" align="center"style="padding:5px 0px 0px 10px;;"><%=rs("ID")%></td>
    <td ><%=rs("VoteName")%></td>
	<td ><%=rs("VoteNum")%></td>
	<td ><%=rs("Hits")%></td>
    <td ><div style="margin-left:5px; margin-right:5px;"><img src="images/dot.gif" width="<%=int(100*rs("VoteNum")/Zio)%>%" height="15"></div></td>
	</tr>
<%
	rs.movenext
		else
			 exit for
		end if
	next
%>
  <tr>
  <td bgcolor="EBF2F9" colspan="5" height="30" align="right" ><%=mypage.showpage()%></td>
  </tr>
</table>    
<!--#include file="Include/bottom.asp"-->
</body>
</html>