vote_script.asp
资源名称:NetPhone.rar [点击查看]
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:2k
源码类别:
IP电话/视频会议
开发平台:
ASP/ASPX
- <!--#include file="vote_conn.asp"-->
- <%
- set rs=server.createobject("adodb.recordset")
- if request("id")="" then
- set rs=conn.execute("select top 1 * from class order by id desc")
- else
- set rs=conn.execute("select * from class where id="&request("id"))
- end if
- title=rs("title")
- style=rs("style")
- classid=rs("id")
- rs.close
- sql="select * from vote where class="&classid
- rs.open sql,conn,3,1
- %>
- vote=""
- vote=vote+"<form method='POST' target='_blank' action='vote/vote_tou.asp?classid=<%=classid%>&style=<%=style%>'>"
- vote=vote+"<table border='0' width='100%' cellspacing='0' cellpadding='0'>"
- vote=vote+"<tr>"
- vote=vote+"<td width='100%' height='40'>"
- vote=vote+"<p align='left'><%=title%></td>"
- vote=vote+"</tr>"
- vote=vote+"<tr>"
- vote=vote+"<td width='100%'>"
- vote=vote+"<div align='center'>"
- vote=vote+"<center>"
- vote=vote+"<table border='0' width='90%' cellspacing='0' cellpadding='0'>"
- <%do while not rs.eof%>
- vote=vote+"<tr>"
- vote=vote+"<td width='100%' height='20'><input type='<%=style%>' name='voted' value='<%=rs("id")%>'><font color=black><%=rs("vote")%></font></td>"
- vote=vote+"</tr>"
- <%rs.movenext
- loop%>
- vote=vote+"</table>"
- vote=vote+"</center>"
- vote=vote+"</div>"
- vote=vote+"</td>"
- vote=vote+"</tr>"
- vote=vote+"<tr>"
- vote=vote+"<td width='100%' valign='bottom' align='center' height='45'><input type='image' src='../../Img/sub1.gif' border='0'><a href='#' onclick=window.open('vote/vote_show.asp?classid=<%=classid%>','','width=450,height=150,resizable=1,scrollbars=1');><img src='../../Img/sub2.gif' border='0' align='absmiddle'></a></td>"
- vote=vote+"</tr>"
- vote=vote+"</table></form>"
- <%rs.close
- set rs=nothing
- conn.close
- set conn=nothing%>
- document.write (vote)