?? result.asp
字號(hào):
<!--#include file="config.asp"-->
<%
content=request.form("content")
if content="" then%>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<link rel="stylesheet" style="css/text" href="style.css">
<body leftmargin="0" topmargin="0">
<div align="center">
<center>
<table width="770" height="13" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#669900" bordercolordark="#FFFFFF">
<tr>
<td height="25" width="600" bgcolor="#C1C9D0">錯(cuò)誤!!!</td>
</tr>
<tr>
<td align=center width=400 height="25">你還沒有選中你的投票選項(xiàng)或者你已經(jīng)投過票了 <<<a href=javascript:history.go(-1)>返回重新投票</a>
</td>
</tr>
</table>
</center>
</div>
<%
response.end
end if
%>
<%session("vote")="voted"
sql = "Select * From content where content='"&content&"'"
set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql, conn, 1, 3
rs("number")=rs("number")+1
rs.update
%>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" style="css/text" href="style.css">
<body>
<%sql = "Select * From content"
set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql, conn, 1, 1
dim totalnumber
totalnumber=0
do while not rs.eof
totalnumber=totalnumber+rs("number")
rs.movenext
loop%>
<div align="center">
<center>
<table width="770" height="65" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#669900" bordercolordark="#FFFFFF">
<tr bgcolor="#C1C9D0">
<td width="600" height="25" colspan="4" align="center">本站共有<font color=red><b><%=totalnumber%></b></font>人參加了投票</td>
</tr>
<tr>
<td align="center" height="20" width="100"><font color="#336699">投票選項(xiàng)</font></td>
<td height="20" width="300" align="center"><font color="#336699">投票條形圖</font></td>
<td align="center" height="20" width="100"><font color="#336699">投票人數(shù)分布</font></td>
<td align="center" height="20" width="100"><font color="#336699">投票人數(shù)百分比</font></td>
</tr>
<%sql = "Select * From content"
set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql, conn, 1, 1
do while not rs.eof
number100=(rs("number")/totalnumber)*100%>
<tr>
<td width="100" align="center" height="20"><font color="#336699"><%=rs("content")%></font></td>
<td width="300" height="20"><font color="#336699"><img src=vote.gif width=<%=int(number100*3)%> height=10></font></td>
<td width="100" align="center" height="20"><font color="#336699"><%=rs("number")%></font></td>
<td width="100" align="center" height="20"><font color="#336699"><%=round(number100,2)%>%</font></td>
</tr>
<tr>
<%rs.movenext
loop
rs.close
set rs=nothing
%>
</table>
</center>
</div>
<div align="center">
<center>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="40" align="center" ><a href="javascript:this.close();"><font color="#FF0000">〖關(guān)閉〗</font></a></td>
</tr>
<tr>
<td height="40" align="center" ><table border="0" cellpadding="0" cellspacing="0" width="500" height="7">
<tr>
<td height="7" align="center"><br>
© 2003 copyright 中國(guó)安徽霍山縣招商局<br>
<br>
網(wǎng)站全程技術(shù)支持:<a href="http://www.etwl.com.cn" target="_blank">易天工作室</a>
</td>
</tr>
</table></td>
</tr>
</table>
</center>
</div>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -