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

📄 index.asp

📁 本房地产网站功能强大
💻 ASP
字号:
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/getPartStrAndBytesLen.asp" -->
<!--#include file="../inc/onlinecount.asp"-->
<!--#include file="../top.asp"-->
<%
 Dim Rs,Sql
 OpenDataConn
 Set Rs=Server.CreateObject("ADODB.Recordset") 
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE><%=homepage_title%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK 
href="../img/css.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.3790.2706" name=GENERATOR></HEAD>
<BODY class=bg1 text=#000000 bgColor=#ffffff leftMargin=0 topMargin=1>
<TABLE height=28 cellSpacing=0 cellPadding=0 width=980 align=center 
background=../img/headbg4.gif border=0>
  <TBODY>
  <TR>
    <TD align=right width=35>
	<IMG height=13 src="../img/headarrow.gif" 
      width=17></TD>
    <TD align=middle width=10></TD>
    <TD class=TD_Place width=935>您现在的位置:<a href="../index.aspx"><FONT color=#ffffff><%=homepage_title%></FONT></a>  
	<FONT color=#ffffff>&gt;&gt;</FONT> 本站留言</TD></TR></TBODY></TABLE>
<TABLE height=7 cellSpacing=0 cellPadding=0 width=980 align=center 
background=img/headbg5.gif border=0>
  <TBODY>
  <TR>
    <TD></TD></TR></TBODY></TABLE>
<TABLE height=100 cellSpacing=0 cellPadding=0 width=970 align=center border=0>
  <TBODY>
  <TR>
    <TD vAlign=top>            
      <div align="center">
      <table width="970" border="0" cellspacing="0" cellpadding="0">
        <tr> <div align="center">
            <table width="970" height="91" border="0" cellpadding="0" cellspacing="1">
              <tr> 
                <td bgcolor="#CCCCCC"> <%
	   dim curpage
        if request.querystring("curpage")="" then
            curpage=1
        else
            curpage=request.querystring("curpage")
       end if
       const numperpage=6
opendataconn
sql="select * from gbook where book_child=0 order by book_date desc"
rs.open sql,conn,1,1
if rs.eof then
  response.write "<table><tr><td><br></br><center>现在还没有记录!</center><br></br></td></tr></table>"
  'response.end
end if
if not rs.eof then
         totalrecords=rs.recordcount
         rs.pagesize=numperpage
         dim totalpages
         totalpages=rs.pagecount
         rs.absolutepage=curpage
end if       
  dim count
 count=0

	  %> <TABLE      width="970" height=25 border=0 align="center" cellPadding=0 cellSpacing=0>
                    <TBODY>
                      <TR> 
                        <TD class="black">共有<%=totalrecords%>条留言 <%=curpage%>/<%=totalpages%>页                <a href="post_index.asp"><font color="#FF0000">[我要留言]</font></a> 
                        </TD>   
                      </TR>
                    </TBODY>
                  </TABLE>
                  <div align="center">
                  <TABLE border=0 cellPadding=0 
                  cellSpacing=1 height=25 width="970">
                    <TBODY>
                      <TR bgcolor="#E8FAFF" class="black"> 
                        <TD width="205"> <div align="center">留言者</div></TD>
                        <TD width="770"> <div align="left">  留言内容</div></TD>
                      </TR>
                    </TBODY>
                  </TABLE>
                  </div>
                  <%
 do while not rs.eof and count<numperpage %> 				
					
				<TABLE bgColor=#def3da border=1 cellPadding=0    cellSpacing=1 width="970" style="border-collapse: collapse" bordercolor="#97C0FF">
                    <TBODY>
                      <TR> 
                        <TD  width="172" height=105 rowSpan=2 align=middle vAlign=middle bordercolor="#b5b5ff" bgcolor="#f4f4f4"> 
                          <div align="center">
                          <table width="200" height="100%" border=0 cellpadding=0>
                            <tbody>                              
                              <tr> 
                                <td height=35 class="bottom">&nbsp; <div align="center" class="black">姓名:<%=rs("book_name")%></div></td>
                              </tr>
                              <tr> 
                                <td height="47" valign="top"> <div align=center><img border=0 src="<%=rs("book_face")%>" width="32" height="32"></div></td>
                              </tr>
                            </tbody>
                          </table></div>
						</TD>
                        <TD width="725" height=10 align=left vAlign=top bordercolor="#b5b5ff" bgColor=#f4f4f4> 
                          <TABLE width="750" border=0 align="center" cellPadding=0 cellSpacing=0 style="TABLE-LAYOUT: fixed;word-wrap:break-word;">
                            <TBODY>                              
                              <TR vAlign=center> 
                                <TD class="black" colspan="2"><%=rs("book_meno")%></TD>
                              </TR>
                              <TR align=right vAlign=center> 
                                <TD height=19 colSpan=2 class="black">留言时间:<%=rs("book_date")%></TD>
                              </TR>
                              <%
							
        if rs("book_back")=1 then 
		id=rs("id")
        set ps=server.createobject("adodb.recordset")
        strsql="select * from gbook_back where back_id="&id&" order by back_date" 
        ps.open strsql,conn,1,1
        i=1
       if not ps.eof then
        %>
                              <TR align=right vAlign=center> 
                                <TD height=40 colSpan=2 class="bottom"><table width="100%" height="26" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                                    <% do while not ps.eof%>
                                    <tr class="black"> 
                                      <td width="80" bgcolor="#f7f7f7"> <div align="center">版主回复<font color=#CC0000><%=i%></font>:</div></td>
                                      <td width="390" bgcolor="#f7f7f7"> <table width="380" height="22" border="0" align="center" cellpadding="0" cellspacing="0">
                                          <tr> 
                                            <td class="black"><%=ps("back_meno")%></td>
                                          </tr>
                                        </table></td>
                                    </tr>
                                    <%
        ps.movenext
        i=i+1
        loop
        ps.close
        set ps=nothing
        end if
		%>
                                  </table>
                                  </TD>
                              </TR>
                              <%end if%>
                            </TBODY>
                          </TABLE></TD>
                      </TR>
                      <TR> 
                        <TD height="24" bgcolor="#FFFFFF"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr bgcolor="#f4f4f4"> 
                              <td width="28" class="bottom"><a href="mailto:<%=rs("book_email")%>"><img alt="<%=trim(rs("book_email"))%>" src="email.gif" width="24" height="24" border=0></a></td>
                              <td width="50" class="black">E-mail</td>
                              <td width="29" class="black"><a href=<%=rs("book_http")%> target="_blank"><img border=0 src="homepage.gif" width="24" height="24" alt="<%=rs("book_http")%>"></a></td>
                              <td width="57" class="black">主页</td>
                              <td width="35" class="black"><img   alt="<%=trim(rs("book_oicq"))%>" src="oicq.gif" width="24" height="24"></td>
                              <td width="34" class="black">Oicq</td>
                              <td width="26" class="black"> <div align="right"><img  alt="<%=trim(rs("book_icq"))%>" src="icq.gif" width="18" height="18"></div></td>
                              <td width="32" class="black">Icq</td>
                              <td width="35" class="black"> <div align="center"><img  alt="<%=trim(rs("tel"))%>" src="tel2.gif" width="23" height="15"></div></td>
                              <td width="28" class="black">电话</td>
                              <td width="24" class="black"> <div align="center"><img src="ip.gif" width="13" height="15"></div></td>
                              <td width="124" class="black">IP:<%=rs("book_ip")%></td>
                            </tr>
                          </table></TD>
                      </TR>
                    </TBODY>
                  </TABLE>
                  </div>
                  <P> 
                    <% 
        rs.movenext       
        count=count+1
        loop
         rs.close
%>
                  </P>
                  <table width="500" border="0" align="center" cellpadding="0" cellspacing="0" class="black">
                    <tr> 
                      <td width="24" height="21" align="right"></td>
                      <td width="395" align="right"> <p align="center" class="bottom"> 
                          <% if cint(curpage)<>1 then %>
                          <a href="index.asp?curpage=1">首页</a>&nbsp; 
                          <% else %>
                          首页&nbsp; 
                          <% end if %>
                          <% if cint(curpage)>1 then %>
                          <a href="index.asp?curpage=<%=curpage-1%>">上一页</a>&nbsp; 
                          <% else %>
                          &nbsp;上一页 
                          <% end if %>
                          <% if cint(curpage)<>cint(totalpages) then %>
                          <a href="index.asp?curpage=<%=curpage+1%>">下一页</a>&nbsp; 
                          <% else %>
                          &nbsp;下一页 
                          <% end if %>
                          <% if cint(curpage)<>cint(totalpages) then %>
                          <a href="index.asp?curpage=<%=totalpages%>">末页 
                          </a>&nbsp; 
                          <% else %>
                          &nbsp;末页 
                          <% end if %>
                          </td>
                      <td width="242" align="center"><select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
                          <option value="#" selected>选择留言</option>
                          <%
				kkpage=1
				do while kkpage<=totalpages
				%>
                          <option value="index.asp?curpage=<%=cint(kkpage)%>">第<%=cint(kkpage)%>页</option>
                          <%
				kkpage=kkpage+1
				loop
				%>
                        </select></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table>
            </div>
            <TABLE height=5 cellSpacing=0 cellPadding=0 width=75 border=0>
              <TBODY>
              <TR>
                <TD></TD></TR></TBODY></TABLE>
            </TD></TR></TBODY></TABLE>
     
          
  
<!--#include file="../end.asp"-->

</BODY></HTML>

⌨️ 快捷键说明

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