?? admin_liuyan.asp
字號:
<%if session("password")<>"" then
session("return")=request.ServerVariables("SCRIPT_NAME")%>
<!-- #include file="inc/top.asp" -->
<!-- #include file="inc/adminmenu.asp" -->
<!-- #include file="inc/conn.asp" -->
<!-- #include file="images/jav4.inc" -->
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign='top'>
<%
page = CLng(request("page")) '利用CLng函數(shù)把page值轉(zhuǎn)換為Long型
judge=request("judge")
judge2=request("judge2")
judge3=0
sqlcmd="select * from liuyan Order By id desc"
rs.Open sqlcmd,conn,1,2
%>
<form method="POST" id=form1 name=form1>
<table width="768" border='1' align="center" cellpadding='0' cellspacing='0' bordercolor="#F0F0F0" id=TabDocMain>
<tr>
<td height="25" width="6%" align=center>刪除框</td>
<td height="20" width="10%" align=center>工號</td>
<td height="20" width="24%" align=center>主題</td>
<td height="20" width="60%" align=center>內(nèi)容</td>
</tr>
<%
if not (rs.EOF or rs.BOF) then
rs.MoveFirst
rs.PageSize = 12 '每頁顯示的條數(shù)
If page < 1 Then page = 1
If page > rs.PageCount Then page = rs.PageCount
rs.AbsolutePage = page
For ipage = 1 To rs.PageSize
%>
<tr>
<td height="25" align=center>
<input type="checkbox" name="answer" value="<%=rs("id")%>" id="Checkbox1"> </td>
<td height="20" align=left width="105"><div align="center"><%=rs("xh")%></div></td>
<td height="20" align=left width="100"><%=rs("title")%></td>
<td height="20" align=left width="90"><div align="center"><%=rs("content")%> <br>
<%=rs("data")%></div></td>
</tr>
<%
rs.MoveNext
If rs.EOF Then Exit For
Next
%>
<tr>
<td height="30" colspan="9">
<input type="checkbox" name="chkall" value="on" onClick="checkall(this)" id="Checkbox2">
選中所有信息
<input type="button" name="btnDelete" value="刪除" style='font-family: 宋體; font-size: 9pt;' onClick="del()" id="Button1"> <input type="reset" name="b" value="重置" style='font-family: 宋體; font-size: 9pt;' id="Button1"> </td>
</tr>
</table>
</form>
<table border="0" align="center" cellpadding="0" cellspacing="0" width="768">
<tr bgcolor="#A0A4AC">
<form onSubmit="return test();" method="get" action="admin_liuyan.asp" id=form2 name=form2>
<td width="220" height="25" >
<%
If page = 1 Then
Response.Write "<font class='white'>第一頁 上一頁</font>"
End If
If page <> 1 Then
Response.Write "<a href=admin_liuyan.asp?page=1 class='yellow'>第一頁</a>"
Response.Write " <a href=admin_liuyan.asp?page=" & (page - 1) & " class='yellow'>上一頁</a>"
End If
If page <> RS.PageCount Then
Response.Write " <a href=admin_liuyan.asp?page=" & (page + 1) & " class='yellow'>下一頁</a>"
Response.Write " <a href=admin_liuyan.asp?page=" & RS.PageCount & " class='yellow'>最后一頁</a>"
End If
If page = RS.PageCount Then
Response.Write " <font class='white'>下一頁 最后一頁</font>"
End If
%></td>
<td height="25" >GOTO頁數(shù):
<%Response.Write "<input type=text size=2 maxlength=4 name=page class=editbox1><input type=hidden name=judge value=1>" '顯示輸入頁數(shù)框并將page,judge參數(shù)傳遞下去%></td>
</form>
</tr>
<tr>
<td class="white" colspan="2" height="25" >記錄總數(shù):<%=rs.recordCount%> 總頁數(shù):<%=rs.PageCount%> 當(dāng)前頁次:<%=page%> </td>
</tr>
</table>
<table width="768" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><%else%></td>
<td colspan=9><table border="0" cellpadding="0" cellspacing="0" >
<td height="25">對不起,還沒有留言!</td>
</table></td>
<td><%end if%></td>
</tr>
</table></td>
</tr>
</table>
<!-- #include file="inc/copyright.asp" -->
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -