⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 voteresult.asp

📁 XXX档案美女图片站适合给图片广告的站长下载使用
💻 ASP
字号:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/main.css" rel="stylesheet" type="text/css">
<!--#include file=conn.asp-->
<style type="text/css">
td,p,li,select,input {font-size:12px}
.l13 {line-height:130%}
.l15 {line-height:150%}
.f14 {font-size:14.9px;}
.fl {font-size:14.9px;line-height:130%}
A:hover {color: ff0000;}
</style>
<%
  if request.querystring("action")<>"show" then
  if session("habitus")="true" then response.write"对不起,您不能重复投票":response.end
  for i=1 to request.form("ID").count
    conn.execute("update Vote set Count=Count+1 where ID="&request.form("ID")(i))
    session("habitus")="true"
  next
  end if
  if request.querystring("VoteClassID")="" then response.redirect"Votemanage.asp"
  set rs=server.createobject("adodb.recordset")
  sql="select title,type from VoteClass where VoteClassID="&request.querystring("VoteClassID")
  rs.open sql,conn,1,1

  set rs1=server.createobject("adodb.recordset")
  sql1="select VoteOper,Count,ID from Vote where VoteClassID="&request.querystring("VoteClassID")
  rs1.open sql1,conn,1,1
  while not rs1.eof
    AllCount=AllCount+rs1("Count")
	rs1.movenext
  wend
  rs1.movefirst
  if AllCount=0 then response.write"当前没有人投票":response.end
%>
<title><%=rs("title")%></title>
<body bgcolor="#FCEFC7">
<table width="357" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="357" height="28" class=fl><font size="3"><%=rs("title")%><br>
      共有 <font color="#FF0000"><%=AllCount%></font> 人参加</font></td>
  </tr>
  <tr> 
    <td><table width="357" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#BB9600">
        <tr align="center" valign="middle" bgcolor="#FFCC00"> 
          <td width="18" height="19">&nbsp;</td>
          <td width="131">选项</td>
          <td width="165">比例</td>
          <td width="38"> <p>票数</p></td>
        </tr>
        <%i=1:while not rs1.eof%>
        <tr align="center" valign="middle" bgcolor="#FFFFFF"> 
          <td><font color="#0099FF" size="2"><%=i%></font></td>
          <td height="23"><font color="#0099FF" size="2"><%=rs1("VoteOper")%></font></td>
          <td><font color="#0099FF" size="2"><%=left((rs1("Count")/AllCount)*100,4)%>%<img src=Vote/images/space.gif width=<%=rs1("Count")/AllCount*150%> height=10></font></td>
          <td><font color="#0099FF" size="2"><%=rs1("Count")%></font></td>
        </tr>
        <%rs1.movenext:i=i+1:wend%>
      </table></td>
  </tr>
</table>
<%
  rs.close
  set rs=nothing
  rs1.close
  set rs1=nothing
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -