📄 showvote.asp
字号:
<!--#include file="const.asp"-->
<!--#include file="connv.asp"-->
<%classid=request("classid")
set rs=server.createobject("adodb.recordset")
set rs=conn.execute("select title from voteclass where id="&classid)
title=rs("title")
rs.close
sql="select * from vote where class="&classid
rs.open sql,conn,3,1
totalcount=0
do while not rs.eof
totalcount=totalcount+rs("count")
rs.movenext
loop
totalren=totalcount
if totalcount=0 then
totalcount=1
end if
%>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/main.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {color: #000000}
-->
</style>
</head>
<body bgcolor="#FFFFFF">
<div align="center">
<center>
<br>
<table width="600" height="77" border="0" cellpadding="0" cellspacing="1" bordercolorlight="#000000" bordercolordark="#FFFFFF" bgcolor="#999999">
<tr bgcolor="#E9F0F8">
<td width="596" height="23" colspan="3"> <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../adminManage/images/bg1.gif">
<tr>
<td height="26"> <div align="center"><b><font color=#FF0000><%=title%></font></b></div></td>
</tr>
</table>
</td>
</tr>
<%rs.movefirst
do while not rs.eof%>
<tr bgcolor="#eeeeee">
<td width="164" height="26">
<p align="center"><%=rs("vote")%></td>
<%h=(rs("count")*300)/totalcount%>
<td width="300" height="26" valign="middle">
<table border="0" width="<%=h%>" height="13" bgcolor="<%=rs("color")%>" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr>
<td width="100%" style="border-style: solid; border-width: 1" valign="middle"></td>
</tr>
</table>
</td>
<td width="129" height="26">
<p align="center"><font color=green><%=rs("count")%></font> 票(<%=cint((rs("count")*10000)/totalcount)/100%>%)</td>
</tr>
<%rs.movenext
loop%>
<tr bgcolor="#eeeeee">
<td width="596" height="21" colspan="3">
<p align="center">共有投票<b><font color=red><%=totalren%></font></b>人次</td>
</tr>
</table>
<br>
站点维护: <span class="style2"><FONT onmousemove="this.color='#FF0000';" onmouseout="this.color='#999999';">中国大学生设计网</FONT></span> 设计制作:<FONT color=red>胖胖</FONT>
</center>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -