📄 lydefault.asp
字号:
<!-- #include file="include/adovbs.inc" -->
<!-- #include file="include/dataconn.asp" -->
<!-- #include file="include/checkHy.asp" -->
<!-- #include file="common.asp" -->
<script>
function viewa(url){
var url; window.open(url,'_blank','status=no,scrollbars=yes,top=20,left=100,width=575,height=240');
}
</script>
<html><head><title><%=WebName%>·在线留言</title>
<meta content="zh-cn" http-equiv="Content-Language">
<meta content="text/html; charset=gb2312" http-equiv="Content-Type">
<link href="Include/e1.css" rel="stylesheet">
<meta content="Microsoft FrontPage 6.0" name="GENERATOR"><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body bgcolor="7BD7FF">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#7BD7FF" width="100%" id="AutoNumber1">
<tr>
<td height="4"></td>
</tr>
</table>
<center>
<table width="770" border="0" align="center" cellPadding="0" cellSpacing="0" bordercolor="#9CE1FE" style="border-collapse: collapse">
<tbody>
<tr>
<td background="image/x_2.gif" height="69" vAlign="top" width="275"> <a target="_top" href="<%=WebUrl%>">
</a></td>
<td vAlign="top">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#9CE1FE" width="100%" id="AutoNumber3" height="40">
<tr>
<td width="100%" valign="top">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#9CE1FE" width="100%" id="AutoNumber4" height="41">
<tr>
<td width="23%" rowspan="2" height="8" valign="bottom">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#9CE1FE" width="100%" id="AutoNumber6">
<tr>
<td width="100%" valign="top">
<img border="0" src="image/car6684.gif" WIDTH="142" HEIGHT="29"></td>
</tr>
</table>
</td>
<td width="77%" height="17">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#9CE1FE" width="338" id="AutoNumber5">
<tr>
<td width="25" style="font-size: 9px; font-family: 宋体; line-height: 150%">
</td>
<td width="66" style="font-size: 9px; font-family: 宋体; line-height: 150%">
</td>
<td width="25" style="font-size: 9px; font-family: 宋体; line-height: 150%">
</td>
<td width="66" style="font-size: 9px; font-family: 宋体; line-height: 150%">
</td>
<td width="290" style="font-size: 9px; font-family: 宋体; line-height: 150%">
<p align="center"> </td>
<td width="4" valign="middle" style="font-size: 9px; font-family: 宋体; line-height: 150%; color: #000">
</td>
</tr>
</table>
</center>
</div>
</td>
</tr>
<tr>
<td width="77%" height="3"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellPadding="0" cellSpacing="0" width="495">
<tbody>
<tr>
<td align="right" bgColor="#ff8400" height="28" width="385">
<center>
<table border="0" cellPadding="2" cellSpacing="0" width="200" style="border-collapse: collapse" bordercolor="#9CE1FE">
<tbody>
<tr>
<td width="11"><b>
<img src="image/index_aro.gif" WIDTH="11" HEIGHT="11"></b></td>
<td width="82">
<font color="#FFFFFF" style="font-size: 10pt; letter-spacing: 1">
<b><a href="lyAdd.asp"><font color="#FFFFFF">我要留言</font></a></b></font></td>
<td width="11"><b>
<img src="image/index_aro.gif" WIDTH="11" HEIGHT="11"></b></td>
<td width="76"><span style="letter-spacing: 1">
<font color="#FFFFFF" size="2"><b><a href="lydefault.asp">
<font color="#FFFFFF">查看留言</font></a></b></font></span></td>
</tr></tbody></table></td>
<td align="right" bgColor="#ff8400" height="28" width="82"> <font color="#FFFFFF"><b></b></font></td>
<td align="right" height="28" width="28">
<img src="image/x_3.gif" WIDTH="28" HEIGHT="28"></td></tr></tbody></table></td></tr></tbody></table>
</center>
<center>
<table width="770" border="0" align="center" cellPadding="0" cellSpacing="0">
<tbody>
<tr>
<td vAlign="top">
<table border="0" cellPadding="0" cellSpacing="0" width="769">
<tbody>
<tr>
<td align="right" width="38">
</td>
<td height="25" width="52"><b><font color="#cc6600"> </font></b><img src="image/x_4.gif" WIDTH="37" HEIGHT="18"> </td>
<td height="25" width="679"><b>
<span style="letter-spacing: 1; font-size: 10.5pt"></span><span style="font-size: 10.5pt; letter-spacing: 1">留言信息</span></b></td></tr></tbody></table>
<div align="center">
<center>
<table border="0" cellPadding="0" cellSpacing="0" width="93%" style="border-collapse: collapse" bordercolor="#9CE1FE">
<tbody>
<tr>
<td bgColor="#01438b" height="1"></td></tr>
<tr>
<td bgColor="#88AFD7" height="5"></td></tr></tbody></table>
</center>
</div>
<center>
<table width="93%" height="198" border="0" align="center" cellSpacing="1" bordercolor="#9CE1FE" background="image/bg1.gif" style="border-collapse: collapse">
<tbody>
<tr>
<td align="middle" height="12"> </td></tr>
<tr>
<td align="middle" height="169">
<table border="0" cellPadding="0" cellSpacing="0" height="160" width="100%" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border-collapse: collapse" bordercolor="#9CE1FE>
<tbody>
<tr vAlign="top">
<td colSpan="5" height="160">
<div align="center">
<center>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#9CE1FE">
<tr>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#9CE1FE">
<tr>
<td>
<%
const MaxPerPage=8 '分页显示留言个数
dim sql,rs,totalput,CurrentPage,TotalPages,i
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
%>
<%
MyName=session("HyNumber")
set rs=server.createobject("adodb.recordset")
sql="select * from GuestBook where UserEmail='"&MyName&"' and modtype=0 order by id desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'> 还 没 有 任 何 留 言</p>"
else
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showContent
showpages
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark
showContent
showpages
else
currentPage=1
showContent
end if
end if
rs.close
end if
set rs=nothing
conn.close
set conn=nothing
sub showContent
i=0
do while not (rs.eof or err) %>
<table width="100%" border="0" cellpadding="0" cellspacing="0 style="border-collapse: collapse">
<tr>
<td width="95%">
<table width="688" height="20" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#9CE1FE">
<tr>
<td width="485" align="right" valign="bottom">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#9CE1FE" width="100%" id="AutoNumber10" background="image/bg23.gif" height="21">
<tr>
<td width="100%" height="21"> <b><font color="#000066">
<img src="image/gb.gif" WIDTH="11" HEIGHT="11"> 主题: </font><font color="#000099"><%=rs("Title")%></font></b><font color="#CC6600">
</font>
<%if rs("where")<>"" then%>
<img alt="<%=rs("where")%>" border="0" src="image/gb_where.gif" WIDTH="13" HEIGHT="11">
<%else%>
<img alt="未知" border="0" src="image/l1.gif" WIDTH="13" HEIGHT="11">
<%end if%>
<%if rs("tel")<>"" then%>
<img alt="<%=rs("tel")%>" border="0" src="image/gb_msn.gif" WIDTH="14" HEIGHT="11">
<%else%>
<img alt="未知" border="0" src="image/l2.gif" WIDTH="14" HEIGHT="11">
<%end if%>
<%if rs("useremail")=MyName then%>
<a href="lyDel2.asp?id=<%=rs("Id")%>">删除</a>
<%end if%>
</td>
</tr>
</table>
</td>
<td valign="bottom" width="110"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div align="center">
<center>
<table width="688" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#9CE1FE" height="62">
<tr>
<td width="76" align="right" valign="top" height="50" rowspan="2" bgcolor="#FDFEFF"> <strong><font color="#000066"><br>
内容: </font></strong></td>
<td height="29" width="555" valign="middle" colspan="2" bgcolor="#FDFEFF">
<div align="center">
<center>
<table border="0" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#9CE1FE" width="98%" id="AutoNumber9">
<tr>
<td width="100%">
<%=rs("Content")%></td>
</tr>
</table>
</center>
</div>
</td>
<td height="50" width="57" rowspan="2" bgcolor="#FDFEFF"> </td>
</tr>
<tr>
<td height="21" width="321" valign="middle" bgcolor="#FDFEFF">
</td>
<td height="21" width="234" bgcolor="#FDFEFF">
<p><font color="#CC6600"><b> →</b><%=rs("UserName")%>[<%=rs("AddTime")%>]</font></td>
</tr>
</table></center>
</div>
</td>
</tr>
<%
set rsg=server.createobject("adodb.recordset")
sql="select * from hfbook where Gid="&rs("Id")
rsg.open sql,conn,1,1
if rsg.eof then
response.Write(" ")
else
while not rsg.eof
%>
<tr>
<td> <table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="70" align="right><strong>
<font color="#FF3300">
回复: </font></strong></td>
<td height="29>
<table width="618" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="560" height="20>
<%If rsg("IsA")=True then%>
<font color="#FF3300"><> <%=rsg("Gcontent")%> —— </font>
<%if rsg("GEmail")="@" then%>
<font color="#FF3300"><b><%=rsg("Gname")%></b></font>
<%else%>
<font color="#FF3300"> <b><%=rsg("Gname")%></b>
</font> <a href="mailto:<%=rsg("GEmail")%>"><font color="#FF3300">
[Email]</font></a>
<%end if%>
<font color="#FF3300"><%=rsg("Gtime")%></font>
<%else%>
<font color="#000066"><> <%=rsg("Gcontent")%> —— </font>
<%if rsg("GEmail")="@" then%>
<font color="#000066"><b><%=rsg("Gname")%></b></font>
<%else%>
<font color="#000066"><b><%=rsg("Gname")%></b></font>
<a href="mailto:<%=rsg("GEmail")%>">
<img alt="<%=rs("UserEmail")%>" border="0" src="image/gb_mail.gif" WIDTH="13" HEIGHT="11"></a>
<%end if%>
<font color="#000066"><%=rsg("Gtime")%></font>
<%End If%>
</td>
<td width="58" align="center>
</td>
</tr>
</table>
<%
rsg.movenext
wend
end if
%>
</td>
</tr>
<tr>
<td width="70%" align="right" colspan="2">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#9CE1FE" width="100%" id="AutoNumber11">
<tr>
<td height="5" background="image/line.gif"></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" bgcolor="#EEF3FF">
<div align="right"></div>
<div align="center">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="right">
<% i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
end sub
sub showpages()
dim n
if (totalPut mod MaxPerPage)=0 then
n= totalPut \ MaxPerPage
else
n= totalPut \ MaxPerPage + 1
end if
if n=0 then
response.write "<p align='right'><a href=gbadd.asp>请留下您宝贵的意见!</a></p>"
exit sub
end if
dim k
response.write "分页 >> "
for k=1 to n
if k=currentPage then
response.write"["+Cstr(k)+"]"
else
response.write"<a href='lydefault.asp?page="+cstr(k)+"'>[ "+Cstr(k)+" ]</a>"
end if
next
end sub
%>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="20" align="right" valign="bottom" bgcolor="#88AFD7">
<div align="right"></div>
<div align="right">
<%if session("GbAdmin")="" then%>
<%else%>
<a href="lydefault.asp?aout"><font color="#FFFFFF">退出管理</font></a>
<%end if%>
</div></td>
</tr>
</table></td>
<%'rs.close%>
</tr>
</table>
</center>
</div>
</td></tr></tbody></table></td></tr>
</tbody></table>
</center>
<div align="right">
<%
if request.querystring="aout" then
Session.Abandon()
response.redirect "lydefault.asp"
end if
%>
</div></td>
<td bgColor="#ff8400" width="1" rowspan="2"></td></tr>
<tr>
<td vAlign="top">
</td>
</tr>
</tbody></table></body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -