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

📄 moreuhouse.asp

📁 一个不错的全站程序
💻 ASP
字号:
<!--#include file="tools.asp"-->
<html><head><title>自助房源信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link href="images/zzz.css" type="text/css" rel="stylesheet">
<script language="Javascript" src="function/function.js"></script>
<script language="JavaScript">
<!--
function SnR_MarkIE(theURL,theName,alertMsg) { //v3.0.3
var agt = navigator.userAgent.toLowerCase(); 
var is_win   = ((agt.indexOf("win")!= -1) || (agt.indexOf("16bit")!= -1));
var is_win95 = ((agt.indexOf("win95")!= -1) || (agt.indexOf("windows 95")!= -1));
var is_win16 = ((agt.indexOf("win16")!= -1) || (agt.indexOf("16bit")!= -1) || (agt.indexOf("windows 3.1")!= -1) || (agt.indexOf("windows 16-bit")!= -1) );
var is_win31 = ((agt.indexOf("windows 3.1")!= -1) || (agt.indexOf("win16")!= -1) || (agt.indexOf("windows 16-bit")!= -1));
var is_win98 = ((agt.indexOf("win98")!= -1) || (agt.indexOf("windows 98")!= -1));
var is_winnt = ((agt.indexOf("winnt")!= -1) || (agt.indexOf("windows nt")!= -1));
var is_win32 = (is_win95 || is_winnt || is_win98 || (agt.indexOf("win32")!= -1) || (agt.indexOf("32bit")!= -1));
//Error Causing Element from above line: ((is_major >= 4) && (navigator.platform == "Win32")) ||
var is_Mac = (agt.indexOf("mac") != -1);

	if (document.all && (is_win32)) { //IE Windows Only
		window.external.AddFavorite(theURL,theName);
		} 
	else { // all others 
		alert(alertMsg); 
		}

}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function s1_onchange() {
window.location=window.s1.value
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>

</head>
<body text="#000000" bgColor="#ffffff" leftMargin="0" topMargin="0" onload="MM_preloadImages('images/kk2.gif')">
<!--#include file="title.asp"-->
<table class="shuang" cellSpacing="0" cellPadding="0" width="778" align="center" background="images/bg4.gif" border="0"><!--整体的大表格-->
  <tbody>
  <tr>
    <td vAlign="bottom" width="193" height="23">
      <table height="19" cellSpacing="0" cellPadding="0" width="180" align="center" background="images/bg2.gif" border="0">
        <tbody>
        <tr>
          <td width="60" height="11">&nbsp;</td>
          <td vAlign="center" width="76" height="11">
            <div class="zzz" align="center">信 息 登 陆</div></td>
          <td width="44" height="11">&nbsp;</td></tr></tbody></table>
      </td>
    <td vAlign="center" width="5" rowSpan="2">&nbsp; </td>
    <td vAlign="top" width="580" rowSpan="2">
    
    
    <table class="shuang" cellSpacing="0" cellPadding="0" width="575" align="center" background="images/bg4.gif" border="0">
  <tr>
    <td vAlign="top" width="575"><table cellSpacing="1" cellPadding="1" width="575" bgColor="#666666" border="0">
<tbody>

<%
strsql="select hasimage,hid,houseaddress,hall,room,toilet,tel,ctel,me.uid,price from tbllease le join tblusers me on le.uid=me.uid order by hid desc"
%>
      <tr>
        <td class="zzz" bgColor="#ffcc66" width="5%" align="center"></td>
        <td class="zzz" bgColor="#ffcc66" width="35%" align="center"><p align="center">地址</td>
        <td class="zzz" bgColor="#ffcc66" width="11%" align="center">房型</td>
        <td class="zzz" bgColor="#ffcc66" width="11%" align="center">价格</td>
        <td class="zzz" bgColor="#ffcc66" width="18%" align="center">电话</td>
        <td class="zzz" bgColor="#ffcc66" width="16%" align="center">联系人</td>
      </tr>
      <%
      set rsd=server.CreateObject("adodb.recordset")
      rsd.Open strsql,conn,adOpenStatic
      page=trim(Request.QueryString("page"))
        if page="" or not(isnumeric(page)) then page=1
        page=cint(page)
        rsd.PageSize=30
        rsd.CacheSize=30
        cpage=rsd.PageCount
        
        rsd.AbsolutePage=page        
      do until rsd.EOF or i>20
      %>
      
      <tr>
        <td class="zzz" width="5%" align="center" bgColor="#eeeeee">出售</td>
        <td class="zzz" width="35%" bgColor="#eeeeee" height="15">
        <a href="#" onClick="window.open('showuhouse.asp?hid=<%=rsd("hid")%>','','resizable=1,scrollbars=yes,width=500,height=300');">
        <%=rsd("houseaddress")%></a>
        <%
      if rsd("hasimage")=1 then
      istrsql="select * from tblimages where hid=" & rsd("hid") & " and tblname='l'"
      set irsd=server.CreateObject("adodb.recordset")
      irsd.Open istrsql,conn
      %>
      <a href="mimages/<%=irsd("imgname")%>" target="_blank"><img src="images/fx.gif" border="0" WIDTH="49" HEIGHT="13"></a>
      <%set irsd=nothing%>
      <%end if%>
        </td>
        <td class="zzz" width="11%" bgColor="#eeeeee" height="15" align="center"><%=rsd("room")%>室<%=rsd("hall")%>厅</td>
        <td class="zzz" width="11%" bgColor="#eeeeee" height="15" align="right"><%=formatnumber(rsd("price"),0)%></td>
        <td class="zzz" width="18%" bgColor="#eeeeee" height="15">
                <%if isnull(rsd("ctel")) or rsd("ctel")="" then
        Response.Write rsd("tel")
        else
        Response.Write rsd("ctel")
        end if
        %>
        </td>
        <td class="zzz" width="16%" bgColor="#eeeeee"><a class="zzz"
          onclick="window.open('showperson.asp?uid=<%=rsd("uid")%>','','width=350,height=400')"
          href="#"><%=rsd("uid")%></a></td>
      </tr>
      <%
      rsd.MoveNext
      if rsd.EOF then
      exit do
      end if
      %>
      <tr bgColor="#ffffff">
        <td class="zzz"  width="5%" align="center">出售</td>
        <td class="zzz" width="35%">
        <a href="#" onClick="window.open('showuhouse.asp?hid=<%=rsd("hid")%>','','resizable=1,scrollbars=yes,width=500,height=300');"><%=rsd("houseaddress")%></a>
        <%
      if rsd("hasimage")=1 then
      istrsql="select * from tblimages where hid=" & rsd("hid") & " and tblname='l'"
      set irsd=server.CreateObject("adodb.recordset")
      irsd.Open istrsql,conn
      %>
      <a href="mimages/<%=irsd("imgname")%>" target="_blank"><img src="images/fx.gif" border="0" WIDTH="49" HEIGHT="13"></a>
      <%set irsd=nothing%>
      <%end if%>
        </td>
        <td class="zzz" width="11%" align="center"><%=rsd("room")%>室<%=rsd("hall")%>厅</td>
        <td class="zzz" width="11%" align="right"><%=formatnumber(rsd("price"),0)%></td>
        <td class="zzz" width="18%">
                <%if isnull(rsd("ctel")) or rsd("ctel")="" then
        Response.Write rsd("tel")
        else
        Response.Write rsd("ctel")
        end if
        %>
        </td>
        <td class="zzz" width="16%"><a class="zzz"
          onclick="window.open('showperson.asp?uid=<%=rsd("uid")%>','','width=350,height=400')"
          href="#"><%=rsd("uid")%></a></td>
      </tr>
      <%
      rsd.MoveNext
      loop
      rsd.Close
      %>
      
            <tr>
        <td class="zzz" width="100%" bgColor="#eeeeee" height="20" align="right" colspan="6">

        <table cellSpacing="0" cellPadding="0" width="570" align="center" border="0" height="10">
<tbody>
        <tr>
          <td bgColor="#fccb81"><font class="zzz">&nbsp;&nbsp;&nbsp;&nbsp;当前是第<%=page%>页</font></td>
          <td bgColor="#fccb81"><font class="zzz">总共有<%=cpage%>页</font></td>
          <%
          str=clearpage(Request.QueryString)
          if cpage>1 then
          %>
          <%if page<>1then%>
          <td bgColor="#fccb81"><font class="zzz"><a href="moreuhouse.asp?<%=str%>page=1">第一页 </font></td>
          <%end if%>
          <%if page>1 then%>
          <td bgColor="#fccb81"><font class="zzz"><a href="moreuhouse.asp?<%=str%>page=<%=page-1%>">上一页 </font></td>
          <%end if%>
          <%if page<cpage then%>
          <td bgColor="#fccb81"><font class="zzz"><a href="moreuhouse.asp?<%=str%>page=<%=page+1%>">下一页 </font></td>
          <%end if%>
          <%if page<>cpage then%>
          <td bgColor="#fccb81"><font class="zzz"><a href="moreuhouse.asp?<%=str%>page=<%=cpage%>">最后一页 </font></td>
          <%end if%>
          <%end if%>
          <td align="right" bgColor="#fccb81"><font class="zzz">转到指定页面:</font></td>
          <td align="left" bgColor="#fccb81">
          <select name="select" id="s1" LANGUAGE="javascript" onchange="return s1_onchange()">
          <%for i=1 to cpage%>
          <option <%if i=page then Response.Write " selected "%> value="moreuhouse.asp?<%=str%>page=<%=i%>"><%=i%></option>
          <%next%>
          
          </select>
        </tr>
</tbody>
      </table>
      
        </td>
      </tr>
</tbody>
    </table>
    </td>
  </tr>
</table>

    
    
    
    </td>
    </tr>



    <tr><td valign="top">
    
    <table cellSpacing="1" cellPadding="5" width="180" align="center" bgColor="#003399" border="0">
              <tr onmouseover="this.style.backgroundColor='#E6F2FF';" onmouseout="this.style.backgroundColor='#F9F7F2';" bgColor="#f9f7f2">
                <td><a class="zzz" href="addlhouse.asp" target="_blank"><p align="center">出&nbsp;&nbsp;租&nbsp;&nbsp;登&nbsp;&nbsp;记</a></td>
              </tr>
              <tr onmouseover="this.style.backgroundColor='#E6F2FF';" onmouseout="this.style.backgroundColor='#F9F7F2';" bgColor="#f9f7f2">
                <td><a class="zzz" href="addhouse.asp" target="_blank"><p align="center">售&nbsp;&nbsp;房&nbsp;&nbsp;登&nbsp;&nbsp;记</a></td>
              </tr>
              <tr onmouseover="this.style.backgroundColor='#E6F2FF';" onmouseout="this.style.backgroundColor='#F9F7F2';" bgColor="#f9f7f2">
                <td><a class="zzz" href="alease.asp" target="_blank"><p align="center">求&nbsp;&nbsp;租&nbsp;&nbsp;登&nbsp;&nbsp;记</a></td>
              </tr>
              <tr onmouseover="this.style.backgroundColor='#E6F2FF';" onmouseout="this.style.backgroundColor='#F9F7F2';" bgColor="#f9f7f2">
                <td><a class="zzz" href="ahouse.asp" target="_blank"><p align="center">购&nbsp;&nbsp;房&nbsp;&nbsp;登&nbsp;&nbsp;记</a></td>
              </tr>
            </table>
        </td>
      </tr>
      <tr>
        <td></td>
      </tr>
      <tr>
        <td>
        <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
                </td>
          </tr>
</tbody>
        </table>
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>



    
    </td></tr>
    </tbody></table>
<!--#include file="footer.asp"--></body></html>

⌨️ 快捷键说明

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