📄 view.asp
字号:
<%
If request("voteID")="" Then
response.redirect"http://www.365do.net/"
End If
%>
<!--#include file="conn.asp"-->
<%
dim rs,sql
dim p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,total
set rs=Server.CreateObject("Adodb.Recordset")
sql="select voteID,votename,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10 from vote where voteID="&request("voteID")
rs.open sql,conn,1,1
total=rs("n1")+rs("n2")+rs("n3")+rs("n4")+rs("n5")+rs("n6")+rs("n7")+rs("n8")+rs("n9")+rs("n10")
p1=(rs("n1")/total)*100
p2=(rs("n2")/total)*100
p3=(rs("n3")/total)*100
p4=(rs("n4")/total)*100
p5=(rs("n5")/total)*100
p6=(rs("n6")/total)*100
p7=(rs("n7")/total)*100
p8=(rs("n8")/total)*100
p9=(rs("n9")/total)*100
p10=(rs("n10")/total)*100
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>调查结果</title>
<style type="text/css">
body {font-family:"verdana", "arial", "helvetica", "Tahoma"; font-size: 9pt; color:#000000;
scrollbar-face-color:'CCCCCC';
scrollbar-shadow-color:'CCCCCC';
scrollbar-highlight-color:'CCCCCC';
scrollbar-3dlight-color:'D9D9D9';
scrollbar-darkshadow-color: '808080';
scrollbar-track-color:'F8F8F8';
scrollbar-arrow-color:'808080' }
td {font-family:verdana,arial,helvetica,Tahoma; font-size: 9pt}
div {font-family:verdana,arial,helvetica,Tahoma; font-size: 9pt}
form{font-family:verdana,arial,helvetica,Tahoma; font-size: 9pt}
select{font-size: 9pt}
OPTION{font-size: 9pt}
p{font-family:verdana,arial,helvetica,Tahoma; font-size: 9pt}
br{font-family:verdana,arial,helvetica,Tahoma; font-size: 9pt}
A {font-family:verdana,arial,helvetica,Tahoma; text-decoration: none; color:'000000'; font-size: 9pt}
A:hover {font-family:"verdana", "arial", "helvetica", "Tahoma"; text-decoration: none; color:#FF0000; font-size: 9pt}
.informat01{font-family:verdana,arial,helvetica,Tahoma; font-size:9pt; background-color:'EFEFEF'}
.i02{font-family:"verdana", "arial", "helvetica", "Tahoma"; font-size:9pt; background-color: 'EFEFEF'; color: #000000; border: 1 solid '000000'}
.i03{ background-color:'EFEFEF';
BORDER-TOP-WIDTH: 1px;
PADDING-RIGHT: 1px; PADDING-LEFT: 1px;
BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt;
BORDER-LEFT-COLOR:'FFFFFF'; BORDER-BOTTOM-WIDTH: 1px;
BORDER-BOTTOM-COLOR:'C0C0C0'; PADDING-BOTTOM: 1px;
BORDER-TOP-COLOR:'FFFFFF'; PADDING-TOP: 1px;
HEIGHT: 20px; BORDER-RIGHT-WIDTH: 1px;
BORDER-RIGHT-COLOR:'C0C0C0'}
.i04{font-family:"verdana", "arial", "helvetica", "Tahoma"; font-size:9pt;
background-color: 'ffffff'; color: #000000;
border: 1 solid '000000'; background=''}
.i05{font-family:"verdana", "arial", "helvetica", "Tahoma"; font-size:9pt;
background-color: 'D9D9D9'; color: #000000;
border: 1 solid '808080';}
.botton {border-bottom:#000000 1px solid; background-color:#F1F1F1; border-left:#FFFFFF 1px solid; border-right:#333333 1px solid; border-top:#FFFFFF 1px solid; font-size: 9pt; font-family:"??"; height:20px; color: #000000; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px; border-style: ridge}
.textfield {border-bottom:#000000 1px solid; background-color:#FFFFFF; border-left:#000000 1px solid; border-right:#000000 1px solid; border-top:#000000 1px solid; font-size: 9pt; font-family:"宋体";}</style>
</head>
<body topmargin="5" leftmargin="5">
<table border="0" cellpadding="0" cellspacing="0" width="90%" align="center">
<tr>
<td valign="top" >
<table border="1" cellspacing="0" width="100%" cellpadding="0" bordercolorlight="#808080" bordercolordark="#FFFFFF">
<tr>
<td width="100%" height="16" bgcolor="#6098C8" colspan="4">
<p align="center"><font color="#FFFFFF"><%=rs("votename")%></font>
</td>
</tr>
<tr>
<td width="28%" height="4" bgcolor="#808080">
<div align="center"><font color="#FFFFFF"> 投票选项</font></div>
</td>
<td width="53%" height="4" bgcolor="#808080">
<div align="center"><font color="#FFFFFF"> 百分比示意图</font></div>
</td>
<td width="9%" height="4" bgcolor="#808080">
<p align="center"><font color="#FFFFFF">比率</font>
</td>
<td width="10%" height="4" bgcolor="#808080">
<p align="center"><font color="#FFFFFF">票数</font>
</td>
</tr>
<tr>
<td width="28%" height="19" bgcolor="#F6F6F6"><%=rs("s1")%></td>
<td width="53%" height="19"><img border="0" src="images/bar0.gif"><img border="0" src="images/bar.gif" width="<%=int(p1*3)%>" height="14"><img border="0" src="images/bar1.gif"></td>
<td width="9%" height="19"><%=round(p1,2)%>%</td>
<td width="10%" height="19"> <%=rs("n1")%></td>
</tr>
<tr>
<td width="28%" height="21" bgcolor="#F6F6F6"><%=rs("s2")%></td>
<td width="53%" height="21"><img border="0" src="images/bar0.gif"><img border="0" src="images/bar.gif" width="<%=int(p2*3)%>" height="14"><img border="0" src="images/bar1.gif"></td>
<td width="9%" height="21"><%=round(p2,2)%>%</td>
<td width="10%" height="21"> <%=rs("n2")%></td>
</tr>
<%
If rs("s3")<>"" Then %>
<tr>
<td width="28%" height="19" bgcolor="#F6F6F6"><%=rs("s3")%></td>
<td width="53%" height="19"><img border="0" src="images/bar0.gif"><img border="0" src="images/bar.gif" width="<%=int(p3*3)%>" height="14"><img border="0" src="images/bar1.gif"></td>
<td width="9%" height="19"><%=round(p3,2)%>%</td>
<td width="10%" height="19"> <%=rs("n3")%></td>
</tr>
<% End If
If rs("s4")<>"" Then %>
<tr>
<td width="28%" height="19" bgcolor="#F6F6F6"><%=rs("s4")%></td>
<td width="53%" height="19"><img border="0" src="images/bar0.gif"><img border="0" src="images/bar.gif" width="<%=int(p4*3)%>" height="14"><img border="0" src="images/bar1.gif"></td>
<td width="9%" height="19"><%=round(p4,2)%>%</td>
<td width="10%" height="19"> <%=rs("n4")%></td>
</tr>
<% End If
If rs("s5")<>"" Then %>
<tr>
<td width="28%" height="19" bgcolor="#F6F6F6"><%=rs("s5")%></td>
<td width="53%" height="19"><img border="0" src="images/bar0.gif"><img border="0" src="images/bar.gif" width="<%=int(p5*3)%>" height="14"><img border="0" src="images/bar1.gif"></td>
<td width="9%" height="19"><%=round(p5,2)%>%</td>
<td width="10%" height="19"> <%=rs("n5")%></td>
</tr>
<% End If
If rs("s6")<>"" Then %>
<tr>
<td width="28%" height="19" bgcolor="#F6F6F6"><%=rs("s6")%></td>
<td width="53%" height="19"><img border="0" src="images/bar0.gif"><img border="0" src="images/bar.gif" width="<%=int(p6*3)%>" height="14"><img border="0" src="images/bar1.gif"></td>
<td width="9%" height="19"><%=round(p6,2)%>%</td>
<td width="10%" height="19"> <%=rs("n6")%></td>
</tr>
<% End If
If rs("s7")<>"" Then %>
<tr>
<td width="28%" height="19" bgcolor="#F6F6F6"><%=rs("s7")%></td>
<td width="53%" height="19"><img border="0" src="images/bar0.gif"><img border="0" src="images/bar.gif" width="<%=int(p7*3)%>" height="14"><img border="0" src="images/bar1.gif"></td>
<td width="9%" height="19"><%=round(p7,2)%>%</td>
<td width="10%" height="19"> <%=rs("n7")%></td>
</tr>
<% End If
If rs("s8")<>"" Then %>
<tr>
<td width="28%" height="19" bgcolor="#F6F6F6"><%=rs("s8")%></td>
<td width="53%" height="19"><img border="0" src="images/bar0.gif"><img border="0" src="images/bar.gif" width="<%=int(p8*3)%>" height="14"><img border="0" src="images/bar1.gif"></td>
<td width="9%" height="19"><%=round(p8,2)%>%</td>
<td width="10%" height="19"> <%=rs("n8")%></td>
</tr>
<% End If
If rs("s9")<>"" Then %>
<tr>
<td width="28%" height="19" bgcolor="#F6F6F6"><%=rs("s9")%></td>
<td width="53%" height="19"><img border="0" src="images/bar0.gif"><img border="0" src="images/bar.gif" width="<%=int(p9*3)%>" height="14"><img border="0" src="images/bar1.gif"></td>
<td width="9%" height="19"><%=round(p9,2)%>%</td>
<td width="10%" height="19"> <%=rs("n9")%></td>
</tr>
<% End If
If rs("s10")<>"" Then %>
<tr>
<td width="28%" height="19" bgcolor="#F6F6F6"><%=rs("s10")%></td>
<td width="53%" height="19"><img border="0" src="images/bar0.gif"><img border="0" src="images/bar.gif" width="<%=int(p10*3)%>" height="14"><img border="0" src="images/bar1.gif"></td>
<td width="9%" height="19"><%=round(p10,2)%>%</td>
<td width="10%" height="19"> <%=rs("n10")%></td>
</tr>
<% End If %>
<tr>
<td width="100%" height="11" bgcolor="#D7D7D7" colspan="4">
<p align="center">共有<%=total%>人参加本次调查
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top"> <br>
<div align="center"><a href="javascript:window.close()" class="1">关闭窗口</a>
</div>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -