recomco_del.asp

来自「房地产管理系统 vb写的,很不错!!!!!!!!!!!」· ASP 代码 · 共 214 行

ASP
214
字号
<!--#include file="../inc/conn.asp"--><%'┌─  风云ASP在线  ────────────────────────┐'│                                                                 │'│  作者:赵振波.	http://www.fyasp.com	    				    │'│                                                                 │'│   Q Q:176189168  										   	    │'│                                                                 │'│ Email:fy96@163.com                                             │'│                                                                 │'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│'│                                                                 │'│                                                                 │'└───────────────────  http://www.fyasp.com ──┘%>
<%
If session("manager")="" Then
  Response.Redirect("manage.asp")
  Response.end
 End If
%>
<html>
<!-- DW6 -->
<head>
<title>后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../ht.css" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body bgcolor="#666666" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (index.psd) -->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><img src="../images/ht_01.gif" width=778 height=62 usemap="#Map" border="0"></td>
  </tr>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" background="../images/htbj.gif">
  <tr> 
    <td valign="top" align="left" width="145" height="395">
      <!--#include file="List.asp" -->
    </td>
    <td height="395" align="center" valign="top"> <br> <table width="621" border="0" cellspacing="0" cellpadding="0" height="98">
        <tr> 
          <td align="center" valign="top"> <table width="606" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="18"><img src="../images/httable_01.gif" width=606 height=17></td>
              </tr>
              <tr> 
                <td background="../images/httable_02.gif" height="34" align="center" valign="top"> 
                  <table width="315" border="0" cellspacing="0" cellpadding="0" height="26">
                    <tr> 
                      <td width="50%"> <div align="center"><a href="recomco_add.asp">[增加推荐公司]</a></div></td>
                      <td width="50%"> <div align="center"><a href="recomco_del.asp">[删除,修改]</a></div></td>
                    </tr>
                  </table>
                  <table width="600" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td> <hr noshade size="1"> </td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td background="../images/httable_02.gif" height="268" align="center" valign="top"> 
                  <form method="post" action="recomco_del_ok.asp" name="form1">
                    <div align="center"> 
                      <center>
                        <table border="0" width="93%" cellspacing="1" cellpadding="0" class="black">
                          <tr align="center" bgcolor="#999999"> 
                            <td width="4%" height="25">&nbsp;</td>
                            <td width="21%" height="25">公司名称</td>
                            <td width="12%">公司类型</td>
                            <td width="13%" height="25">联系人</td>
                            <td width="14%" height="25">联系电话</td>
                            <td width="26%" height="25">公司地址</td>
                            <td width="10%" height="25">&nbsp;</td>
                          </tr>
                          <%
						  opendataconn
              dim curpage
              if request("curpage")="" then
                 curpage=1
              else
                 curpage=request("curpage")
              end if
              const numperpage=15
              area=trim(request("area"))
			  developer=trim(request("developer"))
			  HouseName=trim(request("HouseName"))
			  price1=trim(request("price1"))
			  price2=Trim(Request("price2"))
			  opendataconn
              set rs=server.createobject("adodb.recordset")
              sql="select * from recomco"
			  if price1<>""  then
			  sql=sql & " and beginprice>='"&price1&"' or avgprice>='"&price1&"'"
			  end if
			  if price2<>""  then
			  sql=sql & " and beginprice>='"&price2&"' or avgprice<='"&price2&"'"
			  end if
			  if developer<>"" then
			  sql=sql & " and developer like '%"&developer&"%'"
			  end if
			  if HouseName<>"" then
			  sql=sql & " and HouseName like '%"&HouseName&"%'"
			  end if
			  if area<>"" then
			  sql=sql & " and area like '%"&area&"%'"
			  end if
			  sql=sql & " order by  dateandtime 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
            rs.pagesize=numperpage
            dim totalpages
            totalpages=rs.pagecount
            rs.absolutepage=curpage
            end if        
           dim count
           count=0
           do while not rs.eof and count<numperpage
              %>
                          <tr> 
                            <td height="20" align="center" bgcolor="#666666"> 
                              <input name="coid" type="checkbox" id="coid" value="<%=Trim(rs("coid"))%>"> 
                            </td>
                            <td height="20" align="center" bgcolor="#666666"><a href="../house/RecomCo_Detail.asp?Coid=<%=Trim(rs("Coid"))%>" target="_blank"><%=Trim(rs("coname"))%></a></td>
                            <td align="center" bgcolor="#666666"><%
							 Select Case Trim(rs("CoType"))
							  Case "1"
							   Response.Write("房产公司")
							  Case "2"
							   Response.Write"搬家公司"
							  Case "3"
							   Response.Write"评估公司"
							  Case "4"
							   Response.Write"物业公司"
							 End Select
							%></td>
                            <td height="20" align="center" bgcolor="#666666"><%=Trim(rs("linkman"))%></td>
                            <td height="20" align="center" bgcolor="#666666"><%=Trim(rs("Cotel"))%></td>
                            <td height="20" align="center" bgcolor="#666666"><%=Trim(rs("CoAddress"))%></td>
                            <td height="20" align="center" bgcolor="#666666"><a href="recomco_modi.asp?CoID=<%=Trim(Rs("CoID"))%>">修 
                              改</a></td>
                          </tr>
                          <%
						rs.movenext       
                count=count+1
                loop
               rs.close
               set rs=nothing
               closedataconn    
              %>
                          <tr> 
                            <td colspan="7"><div align="center"> 
                                <% if cint(curpage)<>1 then %>
                                <a href="hs.asp?curpage=1&area=<%=area%>&developer=<%=developer%>&HouseName=<%=HouseName%>&price1=<%=price1%>">首页&nbsp;</a> 
                                <% else %>
                                首页&nbsp; 
                                <% end if %>
                                <% if cint(curpage)>1 then %>
                                <a href="recomco_del.asp?curpage=<%=curpage-1%>&area=<%=area%>&developer=<%=developer%>&HouseName=<%=HouseName%>&price1=<%=price1%>">上一页&nbsp;</a> 
                                <% else %>
                                &nbsp;上一页 
                                <% end if %>
                                <% if cint(curpage)<>cint(totalpages) then %>
                                <a href="recomco_del.asp?curpage=<%=curpage+1%>&area=<%=area%>&developer=<%=developer%>&HouseName=<%=HouseName%>&price1=<%=price1%>">&nbsp;下一页 
                                <% else %>
                                &nbsp;下一页 
                                <% end if %>
                                <% if cint(curpage)<>cint(totalpages) then %>
                                </a><a href="hs.asp?curpage=<%=totalpages%>&area=<%=area%>&developer=<%=developer%>&HouseName=<%=HouseName%>&price1=<%=price1%>">&nbsp;末页 
                                <% else %>
                                &nbsp;末页 
                                <% end if %>
                                </a>   第<font color="#FF0000"><%=curpage%></font>页/共<%=totalpages%>页  
                                <input type="submit" value=" 删 除 " name="B12">
                                    </div></td>
                          </tr>
                        </table>
                      </center>
                    </div>
                  </form></td>
              </tr>
              <tr> 
                <td><img src="../images/httable_04.gif" width=606 height=19></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td><img src="../images/ht_04.gif" width="778" height="4"></td>
  </tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map">
  <area shape="rect" coords="630,36,775,56" href="http://www.fyasp.com" target="_blank">
</map>
</body>
</html>

⌨️ 快捷键说明

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