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

📄 add_hz_zhu_zai.asp

📁 后台路径:admin/login.asp 用户名:manage 密码:fansyou
💻 ASP
字号:
<!-- #include file="lwconn.asp" -->
<!-- #include file="head.asp" -->

<%if request.QueryString("add")="true" then 
    if request.form("s1")="省份" then 
		 %>
<script language=javascript>
   history.back()
   alert("错误:请选择所在地区!")
</script> 
<%
Response.End
		 end if

name2=trim(request.Form("name2"))
		house_id=trim(request.Form("house_id"))
		 if name2="" or house_id="" then 
		 %>
<script language=javascript>
   history.back()
   alert("错误:物业名称或物业权属没有填写!")
</script> 
<%
Response.End
		 end if
set rs=server.CreateObject ("Adodb.RecordSet")
rs.Source="select * from hz_zhu_zai where id is null"
rs.Open rs.Source,conn,1,3
if not rs.eof then
%>
<script language=javascript>
   history.back()
   alert("该信息已经存在,请不要重复添加!")
</script> 
<%
Response.End
else
rs.addnew
rs("name2")=trim(request.Form("name2"))
rs("house_id")=trim(request.Form("house_id"))
rs("area1")=trim(request.Form("s1"))
rs("area2")=trim(request.Form("s2")) 
rs("area3")=trim(request.Form("s3"))
rs("address")=trim(request.Form("address"))
rs("ttype")=trim(request.Form("ttype"))
rs("floor")=trim(request.Form("floor")) 
rs("total_floor")=trim(request.Form("total_floor"))
rs("room_type")=trim(request.Form("room_type"))
rs("direct")=trim(request.Form("direct"))
rs("mian_ji")=trim(request.Form("mian_ji")) 
rs("price")=trim(request.Form("price"))
rs("car")=trim(request.Form("car"))
rs("price2")=trim(request.Form("price2"))
rs("price_way")=trim(request.Form("price_way"))

rs("sex1")=trim(request.Form("sex1"))
rs("sex2")=trim(request.Form("sex2"))
rs("live_num")=trim(request.Form("live_num"))



rs("info_type")=trim(request.Form("info_type")) 
rs("company")=trim(request.Form("company"))
rs("contact")=trim(request.Form("contact"))
rs("tel")=trim(request.Form("tel"))
rs("content")=trim(request.Form("content")) 
rs("picurl")=trim(request.Form("picurl"))
rs("userid")=session("userid")
rs("click")=1 
rs.update
rs.close
set rs=nothing
response.Write(" 信息成功添加!")
end if

 
 
else %>

<form action="?add=true" method="post"  name="form1">
<TABLE width="582" height="53" border="1" align="center" cellpadding="4" cellspacing="1" bordercolor="#111111" bordercolorlight="#E0E0C2" bordercolordark="#E0E0C2" style="border-collapse: collapse">
  <tr>
    <td colspan="3"><strong>二手房-住宅-合租信息</strong></td>
    <td width="35%">&nbsp;</td>
  </tr>
  <tr>
    <td width="15%">物业名称*:</td>
    <td width="32%"><input name="name2" type="text" id="name2"></td>
    <td width="18%">物业权属*:    </td>
    <td>      <select name="house_id" size="1" id="house_id">
      <option value="自我房产" selected>自我房产</option>
	  <option value="他人房产">他人房产</option>
      </select></td>
  </tr>
  <tr>
    <td>所在地区*:</td>
    <td colspan="3"> <!--   #include file="area_form2.asp" --></td>
   </tr><tr> <td>详细地址*:    </td>
    <td colspan="3"><input name="address" type="text" id="address"></td>
  </tr>
  <tr>
    <td> 物业类型*: </td>
    <td> <select name="ttype" size="1" id="ttype">
      <option value="高层" selected>高层</option>
      <option value="小高层">小高层</option>
      <option value="多层">多层</option>
      <option value="排屋">排屋</option>
	  <option value="别墅">别墅</option>
	  
    </select>    </td>
    <td> 所在楼层*:</td>
    <td>第
      <input name="floor" type="text" id="floor" size="4"> 
    层共
    <input name="total_floor" type="text" id="total_floor" size="4"> 
    层</td>
  </tr>
  <tr>
    <td>房型*:</td>
    <td colspan="3"><input name="room_type" type="text" id="room_type2" value=" 室 厅 厨 卫"> 
 (例如:3室2厅1厨1卫)</td>
  </tr>
  <tr>
    <td>联系人*: </td>
    <td><input name="contact" type="text" id="contact2" size="16"></td>
    <td> 朝向*:    </td>
    <td><select name="direct" size="1" id="direct">
        <option value="东" selected>东</option>
	    <option value="西">西</option>
	    <option value="南">南</option>
	    <option value="北">北</option>
            </select></td>
  </tr>
  <tr>
    <td> 建筑面积*:     </td>
    <td><input name="mian_ji" type="text" id="mian_ji" size="10">
    平方米</td>
    <td> 租金*:      </td>
    <td><input name="price" type="text" id="price" size="10">
    元/月</td>
  </tr>
  <tr>
    <td>车位*:</td>
    <td><select name="car" size="1" id="car">
      <option value="有">有</option>
      <option value="无" selected>无</option>
    </select></td>
    <td>押金*:           </td>
    <td> <input name="price2" type="text" id="price2" size="16">
    元</td>
  </tr>
   <tr>
   
    <td> 租金支付方式*:</td>
    <td> <select name="price_way" size="1">
      <option value="一月一付" selected>一月一付</option>
    </select></td>
    <td>现居住人数:</td>
    <td><input name="live_num" type="text" id="live_num" size="10">
      人</td>
   </tr>
  
   <tr>
     <td>现居住人性别</td>
     <td><select name="sex1" size="1" id="sex1">
       <option value="男" selected>男</option>
	    <option value="女">女</option>
	    <option value="男女共有">男女共有</option>
     </select></td>
     <td>合租人性别要求</td>
     <td><select name="sex2" size="1" id="sex2">
       <option value="男" selected>男</option>
       <option value="女">女</option>
       <option value="男女不限">男女不限</option>
          </select></td>
   </tr>
   <tr>
    <td>信息类别*:</td>
    <td><select name="info_type" size="1" id="info_type">
      <option value="不限类别" selected>不限类别</option>
	      <option value="中介">中介</option>
	      <option value="公司">公司</option>
	      <option value="个人">个人</option> 
	  
	  
    </select></td>
    <td> 联系电话*:
    </td>
    <td><input name="tel" type="text" id="tel" size="16"></td>
  </tr>
  <tr>
    <td>中介简称: </td>
    <td colspan="3"><input name="company" type="text" id="company2" size="16">
    (限四个汉字以内) 
 </td>
  </tr>
  <tr>
    <td valign="top">上传图片:</td>
    <td colspan="3"><input name="image" type="checkbox" id="image" value="1"><input name="picurl" type=text id="picurl" size="30" readonly><a href="#" onclick=window.open("upload_form.asp","","width=480,height=200,menubar=no,scrollbar=no")>无组件上传图片</a>	
	 
	
	</td>
  </tr>
  <tr>
    <td valign="top">备注*:</td>
    <td colspan="3"><textarea name="content" cols="55" rows="16" wrap="VIRTUAL" id="content"></textarea></td>
  </tr>
  <tr>
    <td colspan="4"><div align="center">
      <input type="submit" name="Submit" value="确定">
      &nbsp;&nbsp;&nbsp;&nbsp;
      <input type="reset" name="Submit2" value="重填">
    </div></td>
  </tr>
</table>
</form>
<%end if
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

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