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

📄 dir_need.asp

📁 中介之家房产中介系统 V4.0企业共享版
💻 ASP
📖 第 1 页 / 共 2 页
字号:
sql= "SELECT * FROM need where uid='"&uid&"' order by ZID Desc "
rs.open sql,conn,1,1   
if rs.eof and rs.bof then %>
                </P>
                <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>
        <TR>
              <TD> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber6">
                  <tr> 
                    <td valign="top" style="border-left-style: none; border-left-width: medium"> 
                      <table width="551" bordercolor="#C0C0C0" style="border-collapse: collapse"  border="1">
                        <tr bgcolor="#99CC00" class="9size" valign="bottom"> 
                          <td width="41" style="border-style: solid; border-width: 1"> 
                            <p align="center">类 别</td>
                          <td width="49" style="border-style: solid; border-width: 1"> 
                            <div align="center">需求区域</div></td>
                          <td width="154" style="border-style: solid; border-width: 1"> 
                            <div align="center">需求地段</div></td>
                          <td width="63" style="border-style: solid; border-width: 1"> 
                            <div align="center"><font size="2"><span class="9size"> 
                              需求面积</span></font></div></td>
                          <td width="68" style="border-style: solid; border-width: 1"> 
                            <div align="center"> 价 格</div></td>
                          <td width="38" style="border-style: solid; border-width: 1"> 
                            <p align="center">有效期</td>
                          <td width="63" style="border-style: solid; border-width: 1"> 
                            <div align="center">登记时间</div></td>
                          <td width="50" 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="41" align="center" style="border-style: solid; border-width: 1"> 
                            <span style="font-size:9pt"> <%=(rs.Fields.Item("qiu").Value)%></span> 
                             </td>
                          <td width="49" 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="154" style="border-style: solid; border-width: 1"> 
                            <div align="center"><span style="font-size:9pt"> <a target="_blank" onClick="return newpage(this.href);" href="../list_need.asp?zid=<%= rs.Fields.Item("zid").Value %>&typeto=need"> 
                              <u><%=(rs.Fields.Item("Xiaoqm").Value)%></u></a></span></div></td>
                          <td width="63" 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="68" 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="38" align="center" style="border-style: solid; border-width: 1"> 
                            <span style="font-size:9pt"> <%=(rs.Fields.Item("D").Value)%>天</span></td>
                          <td width="63" 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="44" style="border-style: solid; border-width: 1"> 
                            <p align="center"> <a href="need_delete.asp?typeto=need&<%= "zid=" & rs.Fields.Item("zid").Value &"&page="&currentPage %>"> 
                              <font color="#0000FF">删除</font></a></td>
                        </tr>
                        <%     
   if i>=MaxPerPage then exit do '循环时如果到尾部则先退出,如果记录达到页最大显示数,也退出     
   i=i+1     
    rs.movenext     
    loop     
%>
                      </table>
                      <%end sub %>
                      <%sub showpages() %>
                      <table width="98%">
                        <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>
                      <%     
end sub     
sub showpages1()     
dim n     
n=totalPage     
%>
                      <div align="center"> 
                        <center>
                          <table width="108%" height="30" border="0" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td width="100%" height="30" bgcolor="#99CC00"> 
                                <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>
                      <%end sub%>
                    </td>
                  </tr>
                  <tr> 
                    <td width="100%"> </td>
                  </tr>
                </table></TD>
            </TR>
        <TR>
          <TD height=50>
            <DIV align=center></DIV></TD></TR></FORM></TBODY></TABLE></TR></TBODY></TABLE><MAP 
  name=Map><AREA shape=RECT coords=66,65,147,87 
  href='javascript:pass("myziliao.asp")'><AREA shape=RECT coords=26,109,82,131 
  href="manage.asp"><AREA shape=RECT 
  coords=122,112,178,131 href="logout.asp"></MAP>
<META http-equiv=Content-Language content=zh-cn>
<STYLE type=text/css>.font12 {
	FONT-SIZE: 12px; LINE-HEIGHT: 15px
}
</STYLE>
</BODY></HTML>

⌨️ 快捷键说明

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