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

📄 dir_need.asp

📁 默认管理员:etaodu 密码:etaodu 陶都房市++介绍: 本版本是基于<住易江南>美化
💻 ASP
字号:
<!--#include file=../conn/conn1.asp -->
<% if request.cookies("okadmin")="" and request.cookies("rank")="" then
  response.redirect "login.asp"
end if %>
<% dim typeto
typeto=trim(request("typeto")) %>
<title>求租求购房源</title>

<script language="JavaScript">
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
oncontextmenu='return false';
}
}
if (document.layers) {
if (e.which == 3) {
oncontextmenu='return false';
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
document.oncontextmenu = new Function("return false;")
</script>
<%
   dim MaxPerPage
   dim sql 
   dim rs
   dim gstBookID
   dim totalPut   
   dim CurrentPage
   dim TotalPages
    if not isempty(request("page")) then
      currentPage=cint(request("page"))
   else
      currentPage=1
   end if
%>

<html>
<head>
<style type="text/css">{  }
.9size {  font-family: "宋体"; font-size: 9pt; color: #000000; text-decoration: none}
.txt {  font-family: "宋体"; font-size: 9pt; color: #000000; text-decoration: none; background-color: #FFFFFF}
.link {  font-family: "宋体"; font-size: 9pt; color: #000000; text-decoration: underline; cursor: hand; page-break-before: auto; page-break-after: auto?, OffX=20, OffY=30, Positive=50); page-break-before: auto; page-break-after: auto}
a:hover {  font-family: "宋体"; font-size: 9pt; color: #FFFFFF}
.10size { font-family: "宋体"; font-size: 8pt; color: #000000; text-decoration: none }
-->
</style>
</head>
 <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#000000" vlink="#000000">
                <div align="center">
                  <center>
                
    
<table width="99%" height="343" border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" bgcolor="#FFFFFF" style="border-collapse: collapse">
  <tr> 
    <td width="100%" height="54" valign="bottom" style="border-left-style: none; border-left-width: medium"> 
      <div align="center"><strong><font size="4">求购求租信息一览</font></strong></div></td>
  </tr>
  <tr valign="top"> 
    <td valign="top" style="border-left-style: none; border-left-width: medium"> 
      <%   
set rs=server.createobject("adodb.recordset")   
sql= "SELECT * FROM need order by ZID Desc "
rs.open sql,conn,1,1   
if rs.eof and rs.bof then %> 
      <p align="center">还没有需求信息!</p>
      <% else    
   rs.pagesize=25   
   totalPut=rs.recordcount '记录总数    
   totalPage=rs.pagecount    
   MaxPerPage=rs.pagesize    
      if currentpage<1 then    
          currentpage=1    
      end if    
      if currentpage>totalPage then    
          currentpage=totalPage    
      end if    
   if currentPage=1 then    
      showpages    
      showContent    
      showpages1    
    else    
         if (currentPage-1)*MaxPerPage<totalPut then    
         rs.move  (currentPage-1)*MaxPerPage    
         dim bookmark    
         bookmark=rs.bookmark '移动到开始显示的记录位置    
         showpages    
         showContent    
         showpages1    
      else     
               
      end if    
   end if    
      rs.close    
end if    
set rs=nothing      
conn.close    
set conn=nothing      
    
sub showContent    
     dim i,j   
   
%>  <div align="center">
        <center>
      <table width="98%" cellpadding="2" cellspacing="1" bordercolor="#111111" style="border-collapse: collapse" height="29" bordercolorlight="#C0C0C0" bordercolordark="#C0C0C0">
        <tr bgcolor="#00CCFF" class="9size" valign="bottom"> 
          <td width="49" bgcolor="#D0D09D" style="border-style: solid; border-width: 1"> <p align="center">类 别</td>
          <td width="62" bgcolor="#D0D09D" style="border-style: solid; border-width: 1"> <div align="center">区 域</div></td>
          <td width="206" bgcolor="#D0D09D" style="border-style: solid; border-width: 1"> <div align="center">需求地段</div></td>
          <td width="66" bgcolor="#D0D09D" style="border-style: solid; border-width: 1"> <div align="center"><font size="2"><span class="9size"> 
              需求面积</span></font></div></td>
          <td width="86" bgcolor="#D0D09D" style="border-style: solid; border-width: 1"> <div align="center"> 价 格</div></td>
          <td width="59" bgcolor="#D0D09D" style="border-style: solid; border-width: 1"> <p align="center">有效期</td>
          <td width="82" bgcolor="#D0D09D" style="border-style: solid; border-width: 1"> <div align="center">登记时间</div></td>
          <td width="49" bgcolor="#D0D09D" style="border-style: solid; border-width: 1"> <div align="center">
            详情</div></td>
          <td width="42" bgcolor="#D0D09D" align="center" style="border-style: solid; border-width: 1"> 删除</td>
        </tr>
        <% i=1   
       do while not (rs.eof or err)%>
        <tr bgcolor="<%If (i Mod 2) Then%>#EAEAEA<%Else%>#FFFFFF<%End If%>"> 
                       <td width="49" align="center" style="border-style: solid; border-width: 1"> <span style="font-size:9pt">
                        <%=(rs.Fields.Item("qiu").Value)%></span> </td>
                      <td width="62" style="border-style: solid; border-width: 1"> 
                        <div align="center"><span style="font-size:9pt"><%=(rs.Fields.Item("Diduan").Value)%></span></div></td>
                      <td width="206" style="border-style: solid; border-width: 1"> 
                        <div align="center"><span style="font-size:9pt"><%=(rs.Fields.Item("Xiaoqm").Value)%></span></div></td>
                      <td width="66" style="border-style: solid; border-width: 1"> 
                        <div align="center"><span style="font-size:9pt"><%=(rs.Fields.Item("Mianj").Value)%></span><span style="font-size: 9pt"></font>M<sup>2</sup></span></div></td>
                      <td width="86" style="border-style: solid; border-width: 1"> 
                        <div align="center"><span style="font-size:9pt"><%=(rs.Fields.Item("Jiag").Value)%><% If (rs.Fields.Item("qiu").Value="求购") Then
					  response.Write("万元")
					  else
					  response.Write("元/月")
					  end if %>
                          </span></div></td>
                      <td width="59" align="center" style="border-style: solid; border-width: 1"> <span style="font-size:9pt">
                        <%=(rs.Fields.Item("D").Value)%>天</span></td>
                      <td width="82" style="border-style: solid; border-width: 1"> 
                        <div align="center"><span style="font-size:9pt"><%=(rs.Fields.Item("Dat").Value)%></span></div></td>
                      <td width="49" style="border-style: solid; border-width: 1"> 
                        <div align="center"><span style="font-size:9pt">
                          <a target="_blank" href="../list_need.asp?zid=<%= rs.Fields.Item("zid").Value %>&typeto=need"><font color="#0033FF">详情</font></a></span></div></td>
                      
          <td width="42" align="center" style="border-style: solid; border-width: 1"> <font color="#0000FF"><span style="font-size:9pt">
          <a target="main" href="need_delete.asp?typeto=need&<%= "zid=" & rs.Fields.Item("zid").Value &"&page="&currentPage %>">
          <font color="#800080">删除</font></a></span></font></td>
        </tr>
        <%     
   if i>=MaxPerPage then exit do '循环时如果到尾部则先退出,如果记录达到页最大显示数,也退出     
   i=i+1     
    rs.movenext     
    loop     
%>
      </table> 
        </center>
      </div>
      <%end sub %> <%sub showpages() %>
      <div align="center">
        <center> 
        <table width="98%" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
        <tr> 
          <td align="right"><div align="left"><span style="font-size:9pt">共<font color="#FF0000"><%=totalPage%></font>页/<font color="red"><%=totalPut%></font>条求购求租信息</span></div></td>
        </tr>
      </table>
        </center>
      </div>
      <%     
end sub     
sub showpages1()     
dim n     
n=totalPage     
%> <form action="dir_need.asp" method="GET" align="right">
        <div align="center"> 
          <center>
            <table width="108%" height="30" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="100%" height="30"> <div align="left"><span style="font-size:9pt"> 
                     共<font color="#FF0000"><%=totalPage%></font>页/<font color="red"><%=totalPut%></font>条求购求租信息</span> 
                    <% If currentPage <> 1 Then %>
                    <A href=dir_need.asp><font color="#FF6600"><span style="font-size:9pt">[首页]</span></font></A> 
                    <A href=dir_need.asp?Page=<%= (currentPage-1) %> ><font color="#FF6600"><span style="font-size:9pt">[上一页]</span></font></A> 
                    <% End If %>
                    <% If currentPage <> rs.PageCount Then %>
                    <A href=dir_need.asp?Page=<%= (currentPage+1) %> ><font color="#FF6600"><span style="font-size:9pt">[下一页]</span></font></A> 
                    <A href=dir_need.asp?Page=<%= totalPage %>><font color="#FF6600"><span style="font-size:9pt">[尾页]</span></font></A> 
                    <% End If %>
                    <span style="font-size:9pt">第<font color="#FF0000"><%=currentPage%></font>页/共<font color="#FF0000"><%=totalPage%></font>页 
                    <%   response.write " 转到:<select name='page' size=1 class=smallselsect style='font-family: 宋体; font-size: 9pt;'>"     
     
for i=1 to n     
   response.write "<option value="& i      
   if currentpage=i then      
     response.write " selected"     
   end if     
   response.write ">"& i &"</option>"     
next     
  response.write "</select>"     
  response.write "&nbsp;<input class=buttonface type='submit'  value='go'  style='font-family: 宋体; font-size: 9pt;'>"     
%>
                    </span> </div></td>
              </tr>
            </table>
          </center>
        </div>
      </form>
      <%end sub%>
    </td>
  </tr>
</table>
</div>
</body>
</html>

⌨️ 快捷键说明

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