vote_list.asp
资源名称:NetPhone.rar [点击查看]
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:5k
源码类别:
IP电话/视频会议
开发平台:
ASP/ASPX
- <!--#include file="vote_conn.asp"-->
- <%
- count=20
- d=request("id")
- if d="" then
- d=0
- page=1
- n=1
- else
- page=d
- n=count*(int(d)-1)
- end if
- set rs=server.createobject("adodb.recordset")
- sql="select * from class order by id desc"
- rs.open sql,conn,3,1
- yushu=rs.recordcount mod count
- if yushu=0 then
- totalpage=rs.recordcount/count
- else
- totalpage=int(rs.recordcount/count)+1
- end if
- if int(page)>int(totalpage) then
- page=totalpage
- end if
- k=0
- if d<>0 and int(d)<=int(totalpage) then
- for i=1 to n
- rs.movenext
- next
- end if
- %>
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="STYLE.CSS">
- <title></title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- </head>
- <body>
- <table width="68%" border="0" cellspacing="0" cellpadding="0" align="center" height="30">
- <tr>
- <td><a href="vote_add.asp">添加新的调查项目 </a></td>
- </tr>
- </table>
- <div align="center">
- <center>
- <table width="68%" height="307" border="0" cellpadding="0" cellspacing="0" class="border">
- <tr>
- <td height="26" class="title" width="100%">
- <div align="center"><strong>管 理 调 查</strong></div></td>
- </tr>
- <tr bordercolorlight="#000000" class="tdbg">
- <td width="100%"> <br>
- <br>
- <div align="center">
- <center>
- <table border="0" width="80%" bordercolorlight="#000000" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" height="22">
- <tr>
- <td width="11%" height="20">
- <p align="center">ID</td>
- <td width="62%" height="20">
- <p align="center">标题</td>
- <td width="27%" height="20">
- <p align="center">管理</td>
- </tr>
- </table>
- </center>
- </div>
- <div align="center">
- <center>
- <table border="0" width="80%" cellspacing="0" cellpadding="0" height="27">
- <%do while not rs.eof%>
- <tr>
- <td width="11%" height="20">
- <p align="center"><%=rs("id")%></td>
- <td width="62%" height="20">
- <p align="center"><a href="vote_show.asp?classid=<%=rs("id")%>" target="_blank"><%=rs("title")%></a></td>
- <td width="27%" height="20">
- <p align="center"><a href="vote_edit.asp?id=<%=rs("id")%>&style=<%=rs("style")%>">修改</a>
- <a href="vote_save.asp?id=del&classid=<%=rs("id")%>">删除</a>
- </td>
- </tr>
- <%if k=count then
- exit do
- end if
- rs.movenext
- loop%>
- </table>
- </center>
- </div>
- <form method='GET' action='vote_list.asp'>
- <p align='center'>
- <% if page>1 then %>
- <a href='vote_list.asp?<%=(page-1)%>'><<上一页</a>
- <%end if%>
- <% if int(page) < int(totalpage) then %>
- <a href='vote_list.asp?<%=(page+1)%>'>下一页>></a>
- <% end if %>
- 【共<font color=red><%=totalpage%></font>页】【第<font color=red><%=page%></font>页】跳转到
- <input style='border-style: solid; border-width: 1' type='text' name='id' size='3'>
- 页
- <input type='submit' value='GO' style='border-style: solid; border-width: 1' name='B1'>
- </form>
- <table width="91%" border="0" cellspacing="0" cellpadding="0" height="86" align="center">
- <tr>
- <td>
- <p><br>
- 对于单个投票的调用代码说明:<br>
- <%
- dim t
- t=request.servervariables("server_name")&request.servervariables("url")
- t=replace(t,"vote_list.asp","")
- %>
- <script language="javascript" src="http://<%=t%>vote_script.asp?<font color="#FF0000">id=5</font>"></script></p>
- <p align="center">请把这里的<font color="#FF0000">id=5</font>的<font color="#FF0000">5</font>改成相应投票的ID就可以了</p>
- </td>
- </tr>
- </table>
- <p><br>
- <br>
- <br>
- </p>
- </td>
- </tr>
- </table>
- </center>
- </div>
- <%rs.close
- set rs=nothing
- conn.close
- set conn=nothing%>
- </body>
- </html>