?? vote_show.asp
字號(hào):
<!--#include file=include/conn.asp -->
<%set rs6=server.CreateObject("adodb.recordset")
sql="select top 1 * from vote_bigclass order by ID DESC"
rs6.open sql,conn,1,1
id=rs6("id")
%>
<%set rsTp=server.CreateObject("adodb.recordset")
sqlTp="select * from vote_bigclass where id="&id
rsTp.open sqlTp,conn%>
<%set rs=server.CreateObject("adodb.recordset")
sql="select * from vote_smallclass where extends="&id&" order by id desc"
rs.open sql,conn%>
<%set rsTotle=server.CreateObject("adodb.recordset")
sqlTotle="select SUM(num) from vote_smallclass where extends="&id
rsTotle.open sqlTotle,conn
if rsTotle(0)=0 then
response.write "目前還沒(méi)有投票數(shù)!"
else%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=redcaff%></title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.style3 {color: #5284AD}
.style4 {color: #CC0000}
}
-->
</style>
<link href="news.css" rel="stylesheet" type="text/css">
</head>
<!--#include file=include/top.asp -->
<body bgcolor="#f4f4f4">
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="5" background="images/bgimg_left.gif"> </td>
<td bgcolor="#FFFFFF"><br>
<table width="600" height="457" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="cccccc">
<tr>
<td width="100%" height="455" valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="45" valign="middle" bgcolor="f4f4f4">
<div align="center"><span class="style1"><font color="#000000">關(guān)于“</font></span><font color="#666666"><span class="style3"><%=rsTp("title")%></span><font color="#000000">”的主題投票結(jié)果如下:</font>
</font> </div></td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="25"> </td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="179">
<%do while not rs.eof%>
<table width="100%" border="0" cellspacing="4" cellpadding="0">
<tr>
<td width="19%"><%=rs("choice")%></td>
<td width="61%"><img src="images/dot3.gif" width="<%=int(100*rs("num")/rsTotle(0))%>%" height="15"></td>
<td width="9%"><div align="right"><span class="style4"><%=int(100*rs("num")/rsTotle(0))%></span>%</div></td>
<td width="11%"><div align="right"><span class="style4"><%=rs("num")%></span>人</div></td>
</tr>
</table>
<%rs.movenext
loop
rs.close
set rs=nothing%>
</td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="46"><div align="right">共有<span class="style4"><%=rsTotle(0)%></span>張票數(shù)</div></td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="25"> </td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</td>
<td width="5" background="images/bgimg_right.gif"> </td>
</tr>
</table>
</body>
</html>
<%rsTotle.close
rs6.close
set rs6=nothing
set rsTotle=nothing%>
<%end if%>
<!--#include file=include/bottom.asp -->
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -