?? message_list.asp
字號:
<!--#include file="Inc/conn.asp"-->
<!--#include file="inc/config.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0037)http://www.antsms.cn/message_list.asp -->
<HTML><HEAD><TITLE>純真文化</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><!--<body></body>-->
<META content=all name=robots>
<META content=北京純真文化 name=keywords>
<META content=網站描述 name=description><LINK href="images/css.css"
type=text/css rel=stylesheet><LINK href="images/page_ccc.css" type=text/css
rel=stylesheet>
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<!--#include file="top.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=997 align=center border=0>
<TBODY>
<TR>
<TD vAlign=top align=left width=334 bgColor=#ffffff>
<!--#include file="left_ywzx.asp"-->
</TD>
<TD vAlign=top align=left width=663>
<TABLE cellSpacing=0 cellPadding=0 width=651 border=0>
<TBODY>
<TR>
<TD vAlign=top align=left
background=images/chunzhenxinlibiao-3_19.jpg height=525>
<TABLE cellSpacing=0 cellPadding=0 width=625 align=center
border=0><TBODY>
<TR>
<TD class=zihei vAlign=center align=left height=30>您的位置 >
客戶留言 </TD></TR>
<TR>
<TD vAlign=top align=left width=625
background=images/chunzhenxinlibiao-3_09.jpg height=34>
<TABLE height=35 cellSpacing=0 cellPadding=0 width=278
border=0>
<TBODY>
<TR>
<TD width=59 height=35> </TD>
<TD class=dazi vAlign=center align=left
width=219>客戶留言</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="95%" align=center
border=0>
<TBODY>
<TR>
<TD class=news_list vAlign=top height=400>
<TABLE cellSpacing=0 cellPadding=0 width="98%" align=center
border=0>
<TBODY>
<TR>
<TD height=5></TD></TR>
<TR>
<TD class=text_18>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0"> <TR>
<TD><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"> </div></td>
</tr>
<tr>
<td> 這里是您的專用私密留言簿,您可在此給我們留言,我們會盡力在24小時內在此答復您,請不要忘記回來察看回復哦!<br></td>
</tr>
</table>
<form method="post" action="SaveNetBooK.asp">
<input type=hidden readonly name="Name" value="<%=Session("UserName")%>">
<table width="95%" border="0" align="center" cellpadding="4" cellspacing="1">
<tr>
<td width="24%" align="right"></td>
<td width="76%"></td>
</tr>
<tr>
<td align="right">公司名稱:</td>
<td width="76%"><font>
<input type="text" name="Comane" size="30" maxlength="36" value="<%=rst("Comane")%>" style="font-size: 14px" class="smallInput">
</font> </td>
</tr>
<tr>
<td align="right">聯系人:</td>
<td width="76%"><font>
<input type="text" name="Somane" size="12" maxlength="30" value="<%=rst("Somane")%>" style="font-size: 14px" class="smallInput">
</font></td>
</tr>
<tr>
<td align="right">聯系電話:</td>
<td width="76%"><font>
<input type="text" name="Phone" size="24" maxlength="36" value="<%=rst("Phone")%>" style="font-size: 14px" class="smallInput">
</font></td>
</tr>
<tr>
<td align="right">聯系傳真:</td>
<td width="76%"><font>
<input type="text" name="Fox" size="18" maxlength="36" value="<%=rst("Fox")%>" style="font-size: 14px" class="smallInput">
</font></td>
</tr>
<tr>
<td align="right">E-mail:</td>
<td width="76%"><font>
<input type="text" name="Email" size="18" maxlength="36" value="<%=rst("Email")%>" style="font-size: 14px" class="smallInput">
</font></td>
</tr>
<tr>
<td width="24%" align="right">留言標題:</td>
<td width="76%"><input type="text" name="Title" size="22" maxlength="36" style="font-size: 14px; width: 320; height: 19" class="smallInput"></td>
</tr>
<tr>
<td width="24%" align="right">留言內容:</td>
<td width="76%"><textarea rows="6" name="Content" cols="50" style="font-size: 14px" class="smallInput"></textarea> </td>
</tr>
<tr>
<td width="24%" align="right"></td>
<td width="76%"><input type="submit" value="提交你的留言"
name="cmdOk"> <input type="reset" value="復位" name="cmdReset"> </td>
</tr>
</table>
</form>
<%
name=Session("UserName")
set rs=server.createobject("adodb.recordset")
sql="select * from book where name='"&name&"' or name='管理員' order by id desc"
rs.open sql,conn,1,1
dim MaxPerPage
MaxPerPage=10
'取得頁數,并判斷留言輸入的是否數字類型的數據,如不是將以第一頁顯示
dim text,checkpage
text="0123456789"
Rs.PageSize=MaxPerPage
for i=1 to len(request("page"))
checkpage=instr(1,text,mid(request("page"),i,1))
if checkpage=0 then
exit for
end if
next
If checkpage<>0 then
If NOT IsEmpty(request("page")) Then
CurrentPage=Cint(request("page"))
If CurrentPage < 1 Then CurrentPage = 1
If CurrentPage > Rs.PageCount Then CurrentPage = Rs.PageCount
Else
CurrentPage= 1
End If
If not Rs.eof Then Rs.AbsolutePage = CurrentPage end if
Else
CurrentPage=1
End if
call list
'顯示帖子的子程序
Sub list()%>
<table width="90%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td width="21%" height="18" bgcolor="#eeeeee"><img src="img/arrow.gif" width="16" height="13"><strong>留言列表</strong></td>
<td width="79%" bgcolor="#eeeeee">
<%Response.write "<strong><font color='#000000'>-> 全部-</font>"
Response.write "共</font>" & "<font color=#FF0000>" & Cstr(Rs.RecordCount) & "</font>" & "<font color='#000000'>條留言</font></strong> "
Response.write "<strong><font color='#000000'>第</font>" & "<font color=#FF0000>" & Cstr(CurrentPage) & "</font>" & "<font color='#000000'>/" & Cstr(rs.pagecount) & "</font></strong> "
If currentpage > 1 Then
response.write "<strong><a href='message_list.asp?&page="+cstr(1)+"'><font color='#000000'>首頁</font></a><font color='#ffffff'> </font></strong>"
Response.write "<strong><a href='message_list.asp?page="+Cstr(currentpage-1)+"'><font color='#000000'>上一頁</font></a><font color='#ffffff'> </font></strong>"
Else
Response.write "<strong><font color='#000000'>上一頁 </font></strong>"
End if
If currentpage < Rs.PageCount Then
Response.write "<strong><a href='message_list.asp?page="+Cstr(currentPage+1)+"'><font color='#000000'>下一頁</font></a><font color='#ffffff'> </font>"
Response.write "<a href='message_list.asp?page="+Cstr(Rs.PageCount)+"'><font color='#000000'>尾頁</font></a></strong> "
Else
Response.write ""
Response.write "<strong><font color='#000000'>下一頁</font></strong> "
End if
%> </td></tr>
<tr><td height="1" colspan="2" bgcolor="#999999"></td></tr>
</table>
<%
If rs.eof and rs.bof then
response.write ""
response.end
End if
%> <br> <table width="90%" height="18" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#666666">
<tr bgcolor="#99CCFF">
<td width="56%" height="25" align="center" bgcolor="#CCCCCC">
<p align="center"><font color="#000000"><b>留言主題</b></font></p></td>
<td width="22%" height="21" align="center" bgcolor="#CCCCCC"><font color="#000000"><b>時間</b></font></td>
<td width="22%" height="21" align="center" bgcolor="#CCCCCC"><font color="#000000"><b>回復</b></font></td>
</tr>
<%
if not rs.eof then
i=0
do while not rs.eof
%>
<tr bgcolor="#99CCFF">
<td height="22" bgcolor="#FFFFFF"> <%if rs("name")="管理員"then%>
『管理員公告』
<%end if%> <a href="NetBookRe.asp?id=<%=rs("id")%>">
<%=rs("title")%></a></td>
<td height="1" bgcolor="#FFFFFF" align="center"> <%=rs("time")%></td>
<td height="1" bgcolor="#FFFFFF" align="center"> <%If rs("rebook")<>"" Then%> <a href="NetBookRe.asp?id=<%=rs("id")%>">回復</a>
<%else%>
無
<%End If%> </td>
</tr>
<%
i=i+1
if i >= MaxPerpage then exit do
rs.movenext
loop
end if
%>
<%end sub%>
</table>
<br> <br> </TD>
</TR>
</table>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=651 border=0>
<TBODY>
<TR>
<TD vAlign=top align=left><IMG height=24 alt=""
src="images/chunzhenxinlibiao-3_23.jpg"
width=651></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<!--#include file="bottom.asp"--></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -