📄 fankuixpliuyan.asp
字号:
<%
rs.PageSize =5 '每页记录条数
iCount=rs.RecordCount '记录总数
iPageSize=rs.PageSize
maxpage=rs.PageCount
page=request("page")
per_page=rs.PageSize
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif page>maxpage then
page=maxpage
end if
rs.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if
%>
<table width="100%" border="0">
<tr>
<td colspan="12" height="25" align="center" bgcolor="#FFFFFF" ><%
call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>",per_page)
%>
</td>
</tr>
</table>
<%
For i=1 To x
'do while not rs.eof and e_page>0
%><TABLE class=log_td_table cellSpacing=0 cellPadding=0
width="100%" border=0>
<TBODY>
<TR> </TR>
<TR>
<TD class=log_text_box
style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all"
vAlign=top><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="bottom">第<%=rs("id")%>位 </td>
<td></td>
<td width="459" align="left" valign="middle"> <font color="#666666">TIME:<%=rs("time")%></font> <a title=<%=rs("name")%>来自<%=rs("where")%>><img src="img_shopxp/friend.gif" width="18" height="18" border="0"></a> <a title=QQ:<%=rs("qq")%>><img src="img_shopxp/qq.gif" width="18" height="18" border="0"></a> <a href="mailto:<%=rs("email")%>" target="_blank" title=Email:<%=rs("email")%>><img src="img_shopxp/MAIL.GIF" width="18" height="18" border="0"></a> <a title=IP:<%=rs("ip")%>><img src="img_shopxp/ip.gif" width="18" height="18" border="0"></a> <a href="<%=rs("homepage")%>" target="_blank" title=主页:<%=rs("homepage")%>><img src="img_shopxp/url.gif" width="18" height="18" border="0"></a></td>
<td width="1" align="right" valign="middle"></td>
</tr>
<tr>
<td width="70" rowspan="2" align="center" valign="top"><p><br>
<br>
<img src="face/1.gif" alt="<%=rs("name")%>"><br>
</p>
<p> <strong><b><%=rs("name")%></b></strong> <br>
<br>
<%if session("admin")="smallstick" then%>
[<a href="reply.asp?id=<%=rs("id")%>">回复</a>]<br>
[<a href="del.asp?id=<%=rs("id")%>" onClick="return confirm('您确定进行删除操作吗?')">删除</a>]
<%end if%>
</p></td>
<td width="1" rowspan="2" background="/img/bg_1.gif"></td>
</tr>
<tr>
<td align="center" valign="middle" bgcolor="#F5F5F5"><table width="95%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F5F5F5" style="table-layout:fixed;word-break:break-all">
<tr>
<td><img src="face/0.gif" width="20" height="20" alt="<%=rs("name")%>">
<%if rs("show")=1 then%>
:<%=rs("title")%><br>
<br>
<font color="#333333"> <%=rs("content")%></font>
<%else if session("admin")="smallstick" then%>
:<%=rs("title")%><br>
<br>
<font color="#333333"> 悄悄话:</font><%=ubbcode(rs("content"))%> <font color="#333333">
<%else response.write "此留言内容为悄悄话,只有管理员才可查看!"
end if%>
<%end if%>
</font></td>
</tr>
<tr>
<td><font color="#999999">--------------------------------------------------------</font></td>
</tr>
<tr>
<td><table width="100%" height="25" border="0" style="word-break:break-all">
<tr>
<td valign="top"><font color="#999999">站长回复:<%=rs("reply")%></font></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="1" background="/img/bg_1.gif"></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE>
<br>
<%
'e_page=e_page-1
'rs.movenext
'loop
RS.MoveNext
next
%>
<table width="100%" border="0">
<tr>
<td><%
call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>",per_page)
%>
</td>
</tr>
</table>
<%
rs.close
set rs=nothing
end if
%>
</td>
</tr>
<tr>
<td align="center"><FORM action=xpfksave.asp method=post name="form" id="form">
<br>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td height="1" bgcolor="cccccc"><img src="img_shopxp/dot_03.gif" width="9" height="1" border="0"></td>
</tr>
<tr>
<td height="25" bgcolor="efefef"><strong> </strong><strong>发表留言</strong></td>
</tr>
<tr>
<td height="1" bgcolor="cccccc"><img src="img_shopxp/dot_03.gif" width="9" height="1" border="0"></td>
</tr>
</table>
<TABLE width="100%" border=0 cellPadding=0 cellSpacing=1>
<TBODY>
<TD height="30"> 姓名:
<input name=name class="wenbenkuang" id="name"></TD>
</TR>
<TR>
<TD height="30"> OICQ:
<input name=qq class="wenbenkuang" id="qq3">
性别:
<label>
<input name="sex" type="radio" value="boy" checked>
先生</label>
<label>
<input type="radio" name="sex" value="girl">
小姐</label></TD>
</TR>
<TR>
<TD height="30"> 网址:
<input name=url class="wenbenkuang" id="url" value="http://">
邮箱:
<input name=email class="wenbenkuang" id="email3">
</TD>
</TR>
<TR>
<TD height="30"> 留言内容:</TD>
</TR>
<TR>
<TD height="130" noWrap>
<textarea name=content cols=60 rows=8 id="content" class="wenbenkuang"></textarea>
</TD>
<TR>
<TD height="30" colspan="2">
<input name="submit" type=submit class="go-wenbenkuang" id="submit" value=我要留言>
<input name="submit3" type=reset class="go-wenbenkuang" id="submit3" value=清除重来>
<%
Randomize '初始代随机数种子
num1=rnd() '产生随机数num1
num1=int(26*num1)+65 '修改num1的范围以使其是A-Z范围的Ascii码,以防表单名出错
session("antry")="test"&chr(num1) '产生随机字符串
%>
<input name="temp" type="hidden" id="temp" value="<%=session("antry")%>">
</TD>
</TR>
</TABLE>
</FORM></td>
</tr>
</table></td>
</tr>
</table>
<%end if%>
</td>
</tr>
</table></td>
</tr>
</table>
<!--#include file="copyright_shopxp.asp" -->
</body>
</html>
<%
Sub PageControl(iCount,pagecount,page,table_style,font_style,per_page)
'生成上一页下一页链接
Dim query, a, x, temp
action = "http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME")
temp=""
Response.Write("<table " & Table_style & ">" & vbCrLf )
Response.Write("<form method=get onsubmit=""document.location = '" & action & "?" & temp & "Page='+ this.page.value;return false;""><TR>" & vbCrLf )
Response.Write("<TD align=right>" & vbCrLf )
Response.Write(font_style & vbCrLf )
if page<=1 then
Response.Write (" 首 页 " & vbCrLf)
Response.Write (" 上一页 " & vbCrLf)
else
Response.Write("<A HREF=" & action & "?" & temp & "Page=1> 首 页 </A> " & vbCrLf)
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page-1) & "> 上一页 </A> " & vbCrLf)
end if
if page>=pagecount then
Response.Write (" 下一页 " & vbCrLf)
Response.Write (" 尾 页 " & vbCrLf)
else
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page+1) & "> 下一页 </A> " & vbCrLf)
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & pagecount & "> 尾 页 </A> " & vbCrLf)
end if
Response.Write(" 页次:" & page & "/" & pageCount & "页" & vbCrLf)
Response.Write(" 共有" & iCount & "条/每页"&per_page&"条" & vbCrLf)
Response.Write(" 转到" & "<INPUT TYEP=TEXT NAME=page SIZE=4 Maxlength=8 VALUE=" & page & ">" & "页" & vbCrLf & "<INPUT type=submit style=""font-size: 9pt"" value=GO class=b2>")
Response.Write("</TD>" & vbCrLf )
Response.Write("</TR></form>" & vbCrLf )
Response.Write("</table>" & vbCrLf )
End Sub
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -