📄 hand5.asp
字号:
<!--#include file="../include/buyok_shop_30_conn.asp"-->
<!--#include file="checkadmin.asp"-->
<script language=javascript src=../include/mouse_on_title.js></script>
<%call checkmanage("06")%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="manage.css" type="text/css">
</head>
<BODY background="../images/admin/back.gif">
<table width="98%" border="1" style="border-collapse: collapse; border-style: dotted; border-width: 0px" bordercolor="#333333" cellspacing="0" cellpadding="2">
<tr class=backs><td class=td height=18>查看汇款确认消息</td></tr>
<%
set rs=Server.CreateObject("ADODB.recordset")
sql="select * from hand where (name='管理员' or name='admin') and zuti='1' order by riqi desc"
rs.open sql,conn,1,3
if rs.eof and rs.bof then
response.write "<tr><td>收件箱中没有汇款确认消息。</td></tr>"
else
pages = 10 '每页记录数
rs.pageSize = pages
allPages = rs.pageCount '计算一共能分多少页
page = Request("page")
'if语句属于基本的排错处理
if isEmpty(page) or clng(page) < 1 then
page = 1
elseif clng(page) >= allPages then
page = allPages
end if
rs.AbsolutePage = page
do while not rs.eof and pages>0
neirong=rs("neirong")
riqi=rs("riqi")
isnew=rs("isnew")
fname=rs("fname")
id=rs("id")
if pages<10 then response.write "<tr><td height=15></td></tr>"
%>
<tr><td onMouseOver="bgColor='#FFFFFF'" onMouseOut="bgColor='#e7e7e7'">
<span alt=回复此消息 style="cursor:hand" onclick="{location.href='hand2.asp?back=hand1&id=<%=id%>';}"><img src=../images/small/m_replyp.gif border=0 align=center></span>
<span alt=转发给其它会员 style="cursor:hand" onclick="{location.href='hand2.asp?back=hand1&fw=yes&id=<%=id%>';}"><img src=../images/small/m_fw.gif border=0 align=center></span>
<span alt=彻底删除此消息 style="cursor:hand" onclick="{if(confirm('该操作不可恢复!\n\n确实删除这条消息吗? ')){location.href='hand4.asp?delid5=<%=id%>';}}"><img src=../images/small/m_delete.gif border=0 align=center></span>
发送人:<font color=red><%=fname%></font> 发送时间:<%=riqi%>
<marquee><font color=red>及时删除无用短信,重要资料请及时转移保存,确保安全!</font></marquee>
<hr color=#e7e7e7><BR>
<%=replace(neirong,vbCRLF,"<BR>")%><br>
</td></tr>
<%
pages = pages - 1
rs.movenext
if rs.eof then exit do
loop
response.write "</table>"
call listpages()
end if
rs.close
set rs=nothing
'分页
sub listPages()
'if allpages <= 1 then exit sub
if page = 1 then
response.write "<font color=darkgray>首页 前页</font>"
else
response.write "<a href="&request.ServerVariables("script_name")&"?page=1>首页</a> <a href="&request.ServerVariables("script_name")&"?page="&page-1&">前页</a>"
end if
if page = allpages then
response.write "<font color=darkgray> 下页 末页</font>"
else
response.write " <a href="&request.ServerVariables("script_name")&"?page="&page+1&">下页</a> <a href="&request.ServerVariables("script_name")&"?page="&allpages&">末页</a>"
end if
response.write " 第"&page&"页 共"&allpages&"页"
end sub
%>
</td></tr></table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -