List.asp
资源名称:NetPhone.rar [点击查看]
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:4k
源码类别:
IP电话/视频会议
开发平台:
ASP/ASPX
- <!--#include file="../../inc/conn.asp"-->
- <html>
- <head>
- <title>信息列表</title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <LINK REL="stylesheet" HREF="../images/style.css" TYPE="text/css"> <style type="text/css">
- <!--
- .style1 {
- color: #FFFFFF;
- font-weight: bold;
- }
- -->
- </style>
- </head>
- <body bgcolor="#FFFFFF" text="#000000">
- <%
- Dim sql
- sql=" select * from feed order by id desc "
- Dim rs
- Set rs=Server.CreateObject("ADODB.RecordSet")
- rs.open sql,conn,1,1
- Dim page,i
- if request("page")="" then
- page=1
- else
- page=clng(request("page"))
- end if
- i=0
- rs.pagesize=15
- if page<1 then page=1
- if page>rs.pagecount then page=rs.pagecount
- if rs.pagecount>0 then rs.absolutepage=page
- %> <form name="form1" method="post"> <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR>
- <TD>信息列表↓</TD></TR></TABLE><table width="100%" border="1" cellspacing="0" cellpadding="2" align="center" bordercolordark="#ffffff" bordercolorlight="#000000">
- <tr bgcolor="#3366CC"> <td width="24" height="25"> </td><td width="184" height="25" bgcolor="#3366CC"><DIV ALIGN="CENTER"><B><span class="style1"><FONT COLOR="#FFFFFF">姓名</FONT></span></B></DIV></td><td width="309" height="25" bgcolor="#3366CC"><DIV ALIGN="CENTER"><B><FONT COLOR="#FFFFFF">性别</FONT></B></DIV></td><td width="286" height="25" bgcolor="#3366CC"><DIV ALIGN="CENTER"><B><FONT COLOR="#FFFFFF">电话</FONT></B></DIV></td><td width="168" height="25"><DIV ALIGN="CENTER"><B><span class="style1"><FONT COLOR="#FFFFFF">添加日期</FONT></span></B></DIV></td></tr>
- <%
- if rs.eof then
- response.write "<tr><td colspan='5'><font color='red'>系统中还没有录入任何信息!</font></td></tr>"
- else
- Do while not rs.eof and i<rs.pagesize
- %> <tr> <td width="24" height="25"> <div align="center"> <input type="checkbox" id="checkbox" value="<%=rs("id")%>" name="checkbox" onClick="chkclick();">
- </div></td><td height="25" width="184"><DIV ALIGN="CENTER"><%=rs("name")%></DIV></td><td height="25" width="309"><DIV ALIGN="CENTER"><%=rs("sex")%></DIV></td><td height="25" width="286"><DIV ALIGN="CENTER"><%=rs("tel")%></DIV></td><td width="168" height="25"><DIV ALIGN="CENTER"><%=rs("postdate")%></DIV></td></tr>
- <%
- rs.MoveNext
- i=i+1
- Loop
- end if
- %> </table><table width="100%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr> <td width="23%"> <input type=checkbox name='chkall' onClick='chooseall(document.form1.checkbox,this);'>
- 全选 <input type=checkbox name='chkl' onClick='choosefalse(document.form1.checkbox,this);'>
- 反选 </td><td width="77%"> <div align="right"> 共 <%=rs.recordcount%> 条 页 次 <%=page%>/<%=rs.pagecount%>
- <a href="?PAGE=1">首页</a> <%if rs.pagecount>1 then
- if page=1 then%> | 上页 | <a href="?PAGE=<%=(page+1)%>"> 下页</a> <%else
- if page=rs.pagecount then%> <a href="?PAGE=<%=(page-1)%>">上页</a> | 下页 <%else%>
- | <a href="?PAGE=<%=(page-1)%>">上页</a> | <a href="?PAGE=<%=(page+1)%>"> 下页</a>
- <%end if%> <%end if%> <%end if%> | <a href="?PAGE=<%=rs.pagecount%>"> 尾页</a> 第
- <select name="sel_page" onChange="javascript:location=this.options[this.selectedIndex].value;">
- <%
- for i = 1 to rs.PageCount
- if i = page then%> <option value="?PAGE=<%=i%>" selected><%=i%></option>
- <%else%> <option value="?PAGE=<%=i%>"><%=i%></option> <%
- end if
- next
- %> </select> 页</div></td></tr> </table></form><table width="100%" border="0" cellspacing="0" cellpadding="1">
- <tr> <td WIDTH="54%"> <input type="button" value="刷新" onClick="history.go(0);" name="button2">
- <INPUT TYPE="button" NAME="Submit" VALUE="重载" onClick="location.href='?';"> <input type="button" value="查看" onClick="record_show();" name="show" disabled>
- <input type="button" value="删除" onClick="record_del();" name="del" disabled>
- </td>
- <form name="form2" method="post" action="?"></form></tr> </table><script src="List_Use.js"></script>
- </body>
- </html>
- <%
- call COCLS
- %>