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

📄 showvote.asp

📁 多用户个人主页系统(ASP)
💻 ASP
字号:
<!--#include file="const.asp"-->
<!--#include file="conn.asp"-->
<%classid=request("classid")
set rs=server.createobject("adodb.recordset")
set rs=conn.execute("select title from class 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>
<link rel="stylesheet" type="text/css" href="STYLE.CSS">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>

<body bgcolor="#FFFFFF" background="bg.gif" leftmargin="0" topmargin="10">
<table width="649" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="649"><IMG height=42 src="vote_logo.gif" 
      width=185></td>
  </tr>
</table>
<table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="988"> 
      <table width="650" border="0" align="center" cellpadding="5" cellspacing="0">
        <tr> 
          <td width="986" height="31" bgcolor="#FFFFFF"> <STRONG>调 查 主 题:</STRONG><%=title%> </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<div align="center">
<center>
    <table width="650" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="988" bgcolor="#333333"> 
          <table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
            <tr bgcolor="#f5f5f5"> 
              <td width="27%" height="26"> 
                <div align="center">投标项目</div></td>
              <td width="48%" height="26" valign="middle"> 
                <div align="center">图形显示</div></td>
              <td width="25%" height="26"> 
                <div align="center">票数</div></td>
            </tr>
          </table>
          <table width="650" height="71" border="0" align="center" cellpadding="3" cellspacing="1" bordercolorlight="#000000" bordercolordark="#FFFFFF">
            <%rs.movefirst
	do while not rs.eof%>
            <tr bgcolor="#FFFFFF"> 
              <td width="265" height="34"> 
                <p align="center"><%=rs("vote")%></td>
              <%h=(rs("count")*300)/totalcount%>
              <td width="483" height="34" valign="middle"> <IMG 
                        height=15 src="bar.gif" width=<%=h%> 
                        align=absMiddle> <%=cint((rs("count")*10000)/totalcount)/100%>%</td>
              <td width="236" height="34"> 
                <p align="center"><font color=green><%=rs("count")%></font> 票</td>
            </tr>
            <%rs.movenext
	loop%>
            <tr bgcolor="#f5f5f5"> 
              <td height="22" colspan="3"> <div align="center"><strong>总 投 票:</strong><%=totalren%></div></td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <br>
    <INPUT style="CURSOR: hand" class="input1" onfocus=this.blur() onclick='window.location="javascript:self.close();"' type=submit value=关闭窗口 name=upfile2>
  </center>
</div>

⌨️ 快捷键说明

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