- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
vote_show.asp
资源名称:NetPhone.rar [点击查看]
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:2k
源码类别:
IP电话/视频会议
开发平台:
ASP/ASPX
- <!--#include file="vote_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>
- <div align="center">
- <center>
- <table border="0" width="412" bordercolorlight="#000000" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" height="73">
- <tr bgcolor="#6699FF">
- <td width="596" colspan="3" height="23">
- <div align="center">调查标题:<%=title%> </div>
- </td>
- </tr>
- <%rs.movefirst
- do while not rs.eof%>
- <tr>
- <td height="23" width="164">
- <p align="center"><%=rs("vote")%></td>
- <%h=(rs("count")*300)/totalcount%>
- <td height="23" width="300" valign="middle">
- <table border="0" width="<%=h%>" height="13" bgcolor="<%=rs("color")%>" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
- <tr>
- <td width="100%" style="border-style: solid; border-width: 1" valign="middle"></td>
- </tr>
- </table>
- </td>
- <td height="23" width="129">
- <p align="center"><font color=green><%=rs("count")%></font> 票(<%=cint((rs("count")*10000)/totalcount)/100%>%)</td>
- </tr>
- <%rs.movenext
- loop%>
- <tr>
- <td width="596" colspan="3" height="21">
- <p align="center">共有投票<b><font color=red><%=totalren%></font></b>人次</td>
- </tr>
- </table>
- </center>
- </div>