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

📄 dir_need.asp

📁 默认管理员:etaodu 密码:etaodu 陶都房市++介绍: 本版本是基于<住易江南>美化
💻 ASP
📖 第 1 页 / 共 3 页
字号:
                          <TBODY>
                            <TR> 
                              <TD bgColor=#e4e4cb height=6 style="BORDER-LEFT: medium none" 
                vAlign=bottom width=567> <TABLE border=0 borderColor=#111111 cellPadding=0 
                  cellSpacing=0 style="BORDER-COLLAPSE: collapse" width="98%">
                                  <TBODY>
                                    <TR> 
                                      <TD align=right> 
                                        <%   
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"><font color="#FF0000">还没有求购求租信息!</font></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   
   
%>
                                      </TD>
                                    </TR>
                                  </TBODY>
                                </TABLE></TD>
                            </TR>
                            <TR> 
                              <TD style="BORDER-LEFT: medium none" vAlign=top width=567> 
                                <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber6">
                                  <tr> 
                                    <td width="100%" valign="top" style="border-left-style: none; border-left-width: medium"> 
                                      <table width="100%" bordercolor="#C0C0C0" style="border-collapse: collapse"  border="0">
                                        <tr bgcolor="#00CCFF" class="9size" valign="bottom"> 
                                          <td width="40" bgcolor="#FFFFFF" style="border-style: solid; border-width: 1"> 
                                            <p align="center">类 别</td>
                                          <td width="53" bgcolor="#FFFFFF" style="border-style: solid; border-width: 1"> 
                                            <div align="center">需求区域</div></td>
                                          <td width="20%" bgcolor="#FFFFFF" style="border-style: solid; border-width: 1"> 
                                            <div align="center">需求地段</div></td>
                                          <td width="53" bgcolor="#FFFFFF" style="border-style: solid; border-width: 1"> 
                                            <div align="center"><font size="2"><span class="9size"> 
                                              需求面积</span></font></div></td>
                                          <td width="61" bgcolor="#FFFFFF" style="border-style: solid; border-width: 1"> 
                                            <div align="center"> 价 格</div></td>
                                          <td width="12%" bgcolor="#FFFFFF" style="border-style: solid; border-width: 1"> 
                                            <p align="center">有效期</td>
                                          <td width="18%" bgcolor="#FFFFFF" style="border-style: solid; border-width: 1"> 
                                            <div align="center">登记时间</div></td>
                                          <td width="8%" bgcolor="#FFFFFF" style="border-style: solid; border-width: 1"> 
                                            <div align="center"> 详情</div></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="40" align="center" style="border-style: solid; border-width: 1"> 
                                            <span style="font-size:9pt"> <%=(rs.Fields.Item("qiu").Value)%></span> 
                                             </td>
                                          <td width="53" style="border-style: solid; border-width: 1"> 
                                            <div align="center"><span style="font-size:9pt"><%=(rs.Fields.Item("Diduan").Value)%></span></div></td>
                                          <td style="border-style: solid; border-width: 1"> 
                                            <div align="center"><span style="font-size:9pt"><%=(rs.Fields.Item("Xiaoqm").Value)%></span></div></td>
                                          <td 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">M<sup>2</sup></span></div></td>
                                          <td width="61" 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 align="center" style="border-style: solid; border-width: 1"> 
                                            <span style="font-size:9pt"> <%=(rs.Fields.Item("D").Value)%>天</span></td>
                                          <td 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="56" style="border-style: solid; border-width: 1"> 
                                            <div align="center"><a target="_blank" onClick="return newpage(this.href);"  href="list_need.asp?zid=<%= rs.Fields.Item("zid").Value %>&typeto=need" ><span style="font-size:9pt"><font color="#0033FF">详情</font></span></a></div></td>
                                        </tr>
                                        <%     
   if i>=MaxPerPage then exit do '循环时如果到尾部则先退出,如果记录达到页最大显示数,也退出     
   i=i+1     
    rs.movenext     
    loop     
%>
                                      </table>
                                      <%end sub %>
                                      <%sub showpages() %>
                                      <%     
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" bgcolor="#FFFFFF"> 
                                                  <p align="center"><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> </td>
                                              </tr>
                                            </table>
                                          </center>
                                        </div>
                                      </form>
                                      <%end sub%>
                                    </td>
                                  </tr>
                                </table>
                                <CENTER>
                                </CENTER></TD>
                            </TR>
                          </TBODY>
                        </TABLE></TD>
                    </TR>
                  </TBODY>
                </TABLE>
                
              </TD>
            </TR></TBODY></TABLE>
      <TABLE height=16 cellSpacing=0 cellPadding=0 width=528 border=0>
        <TBODY>
        <TR>
              <TD background=images/line.gif height=5></TD>
            </TR></TBODY></TABLE>
      
    </TD>
  </TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center bgColor=#ffffff 
border=0>
  <TBODY>
  <TR>
    <TD>&nbsp;</TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center bgColor=#ffffff 
border=0>
  <TBODY>
    <TR> 
      <TD bgColor=#ffffff height=1></TD>
    </TR>
  </TBODY>
</TABLE>
</BODY></HTML>
<!--#include file="inc/bottom.asp"-->

⌨️ 快捷键说明

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