?? add_hz_zhu_zai.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%"> </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="確定">
<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 + -