⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messageview.asp

📁 增添网站节日气氛
💻 ASP
字号:

                  
<!--#include file="top.asp"-->                  
                  
<TABLE cellSpacing=0 cellPadding=0 width=1002 align=center border=0>
  <TBODY>
  <TR>
    <TD vAlign=top align=middle background=images/bj01.jpg>
      <TABLE cellSpacing=0 cellPadding=0 width=924 align=center border=0>
        <TBODY>
        <TR>
          <TD width=8 height=249 rowSpan=2></TD>
          <TD vAlign=top align=middle width=907 
background=images/bj.jpg>
            <TABLE cellSpacing=0 cellPadding=0 width="98%" align=center 
border=0>
              <TBODY>
              <TR>
                <TD vAlign=top align=middle width=261 height=476>
                  <TABLE class=style02 cellSpacing=0 cellPadding=0 width=176 
                  align=center border=0>
                    <TBODY>
                    <TR>
                      <TD class=STYLE11 align=middle 
                      background=images/bj_l.jpg height=36>
                        <TABLE cellSpacing=0 cellPadding=0 width="80%" 
                          border=0><TBODY>
                          <TR>
                            <TD align=left width="31%" height=20></TD>
                            <TD align=left width="60%"><STRONG><A class=m1 
                              href="http://www.51sdbz.com/about.asp?id=1">公司简介</A></STRONG></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
                  <TABLE class=style02 cellSpacing=0 cellPadding=0 width=176 
                  align=center border=0>
                    <TBODY>
                    <TR>
                      <TD class=STYLE11 align=middle 
                      background=images/bj_l.jpg height=36>
                        <TABLE cellSpacing=0 cellPadding=0 width="80%" 
                          border=0><TBODY>
                          <TR>
                            <TD align=left width="31%" height=20></TD>
                            <TD align=left width="60%"><STRONG><A class=m1 
                              href="http://www.51sdbz.com/about.asp?id=2">业务范围</A></STRONG></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
                  <TABLE class=style02 cellSpacing=0 cellPadding=0 width=176 
                  align=center border=0>
                    <TBODY>
                    <TR>
                      <TD class=STYLE11 align=middle 
                      background=images/bj_l.jpg height=36>
                        <TABLE cellSpacing=0 cellPadding=0 width="80%" 
                          border=0><TBODY>
                          <TR>
                            <TD align=left width="31%" height=20></TD>
                            <TD align=left width="60%"><STRONG><A class=m1 
                              href="http://www.51sdbz.com/about.asp?id=4">企业形像</A></STRONG></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
                  <TABLE class=style02 cellSpacing=0 cellPadding=0 width=176 
                  align=center border=0>
                    <TBODY>
                    <TR>
                      <TD class=STYLE11 align=middle 
                      background=images/bj_l.jpg height=36>
                        <TABLE cellSpacing=0 cellPadding=0 width="80%" 
                          border=0><TBODY>
                          <TR>
                            <TD align=left width="31%" height=20></TD>
                            <TD align=left width="60%"><STRONG><A class=m1 
                              href="http://www.51sdbz.com/about.asp?id=6">支付方式</A></STRONG></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><IMG 
                  height=499 src="images/left_pic.jpg" width=252><BR></TD>
                <TD vAlign=top align=middle width=637><BR>
                  <TABLE class=about cellSpacing=0 cellPadding=0 width=529 
                  align=center border=0>
                    <TBODY>
                    <TR>
                      <TD vAlign=top align=middle height=459><table width="98%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><img src="images/liuyan.jpg" width="513" height="48"></td>
                        </tr>
                      </table>
                        <br>
                        <table width="90%" border="0" cellpadding="0" cellspacing="0" class="bor" >
                          <tr>
                            <td align="left"><% 
const MaxPerPage=3 '分页显示的纪录个数 
dim sql 
dim rs 
dim totalPut 
dim CurrentPage 
dim TotalPages 
dim i,j 
 
 
if not isempty(request("page")) then 
currentPage=cint(request("page")) 
else 
currentPage=1 
end if 
set rs=server.createobject("adodb.recordset") 
sql="select * from book where flag=1 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 
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 
showpages 
showContent 
showpages 
else 
if (currentPage-1)*MaxPerPage<totalPut then 
rs.move (currentPage-1)*MaxPerPage 
dim bookmark 
bookmark=rs.bookmark 
showpages 
showContent 
showpages 
else 
currentPage=1 
showContent 
end if 
end if 
rs.close 
end if 
set rs=nothing 
conn.close 
set conn=nothing 
sub showContent 
dim i 
i=0 
do while not (rs.eof or err) %>
                                <br>
                                <table  width="90%" border="0" cellpadding="2" cellspacing="1" >
                                  <tr bgcolor="#A6EDFF">
                                    <td width="18%" height="25" bgcolor="#FFFFFF"><div align="center">
                                        <%if rs("name")="管理员"then%>
                                      『管理员公告』
                                      <%else%>
                                      用&nbsp;户&nbsp;名
                                      <%end if%>
                                    </div></td>
                                    <td width="82%" bordercolor="#999999" bgcolor="#FFFFFF">&nbsp;&nbsp;<%=rs("name")%> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="Manage_Rebook.asp?id=<%=rs("id")%>">
                                      <%if rs("name")<>"管理员" then%>
                                      </a>
                                        <%if rs("name")="未注册用户" then 
response.write "没有注册为会员通过E-amil回复!" 
end if%>
                                        <%end if%>                                    </td>
                                  </tr>
                                  <%if rs("email")<>"" then%>
                                  <tr bgcolor="#ECF5FF">
                                    <td height="10" bgcolor="#FFFFFF"><div align="center">公司名称</div></td>
                                    <td height="35" bgcolor="#FFFFFF">&nbsp;&nbsp;<%=rs("Comane")%></td>
                                  </tr>
                                  <tr bgcolor="#ECF5FF">
                                    <td height="10" bgcolor="#FFFFFF"><div align="center">联 系 人</div></td>
                                    <td height="35" bgcolor="#FFFFFF">&nbsp;&nbsp;<%=rs("Name")%></td>
                                  </tr>
                                  <tr bgcolor="#ECF5FF">
                                    <td height="10" bgcolor="#FFFFFF"><div align="center">联系电话</div></td>
                                    <td height="35" bgcolor="#FFFFFF">&nbsp;&nbsp;<%=rs("phone")%></td>
                                  </tr>
                                  <tr bgcolor="#ECF5FF">
                                    <td height="10" bgcolor="#FFFFFF"><div align="center">传 &nbsp;&nbsp;&nbsp;真</div></td>
                                    <td height="35" bgcolor="#FFFFFF">&nbsp;&nbsp;<%=rs("fox")%></td>
                                  </tr>
                                  <tr bgcolor="#ECF5FF">
                                    <td height="22" bgcolor="#FFFFFF"><div align="center">E-mail</div></td>
                                    <td height="35" bgcolor="#FFFFFF"><a href="Sendmail.asp?email=<%=rs("email")%>">&nbsp;&nbsp;<%=rs("email")%></a></td>
                                  </tr>
                                  <%end if%>
                                  <tr bgcolor="#A6EDFF">
                                    <td height="25" bgcolor="#FFFFFF"><div align="center">主 &nbsp;&nbsp;&nbsp;题</div></td>
                                    <td height="35" bgcolor="#FFFFFF">&nbsp;&nbsp;<%=rs("title")%>&nbsp;&nbsp;</td>
                                  </tr>
                                  <tr bgcolor="#ECF5FF">
                                    <td height="25" bgcolor="#FFFFFF"><div align="center">内 &nbsp;&nbsp;&nbsp;容</div></td>
                                    <td height="35" bgcolor="#FFFFFF">&nbsp;&nbsp;<%=rs("content")%></td>
                                  </tr>
                                  <tr bgcolor="#ECF5FF">
                                    <td height="25" bgcolor="#FFFFFF"><div align="center" style="color: #FF0000">回复内容</div></td>
                                    <td height="35" bgcolor="#FFFFFF">&nbsp;&nbsp;<%=rs("huifu")%></td>
                                  </tr>
                                </table>
                              <table width="560" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td></td>
                                  </tr>
                                </table>
                              </div>                            </td>
                          </tr>
                        </table>
                        
                        <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td>
<% 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=1 then 
response.write "" 
 
exit sub 
end if 
dim k 
response.write "<p align='left'> &nbsp;&nbsp;&nbsp;&nbsp;留言分页 " 
for k=1 to n 
if k=currentPage then 
response.write "[<b>"+Cstr(k)+"</b>] " 
else 
response.write "[<b>"+"<a href='messageview.asp?page="+cstr(k)+"'>"+Cstr(k)+"</a></b>] " 
end if 
next 
end sub 
%>
                            </td>
                          </tr>
                        </table></TD>
            </TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD align=middle background=images/bj_base.jpg 
          height=28>&nbsp;</TD></TR></TBODY></TABLE><LINK 
      href="images/css.css" type=text/css rel=stylesheet>
      <TABLE class=m1 cellSpacing=0 cellPadding=0 width=924 align=center 
      border=0>
        <TBODY>
        <TR>
          <TD width="113" height=82 align=center class=about></TD>
          <TD width="811" align=center class=about><!--#include file="bottom.asp"--></TD>
      </TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -