?? add_cz_xie_zi.asp
字號:
<!-- #include file="session.asp" -->
<!-- #include file="lwconn.asp" -->
<!-- #include file="head.asp" -->
<%if request.QueryString("add")="true" then
%>
<!-- #include file="check_empty2.asp" -->
<%
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="" then
%>
<script language=javascript>
history.back()
alert("錯誤:物業名稱 沒有填寫!")
</script>
<%
Response.End
end if
set rs=server.CreateObject ("Adodb.RecordSet")
rs.Source="select * from z_xie_zi 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("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("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")=request.Cookies("user_name")
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="31%"> </td>
</tr>
<tr>
<td width="17%">物業名稱*:</td>
<td width="32%"><input name="name2" type="text" id="name2"></td>
<td width="20%">房產證號*: </td>
<td><input name="house_id" type="text" id="house_id"></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>
</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><input name="mian_ji" type="text" id="mian_ji" size="10">
平方米</td>
<td>車位*:</td>
<td><select name="car" size="1" id="car">
<option value="有">有</option>
<option value="無" selected>無</option>
</select></td></tr>
<tr><td> 租金*: </td>
<td><input name="price" type="text" id="price" size="10">
元/月</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>
<option value="三月一付" >三月一付</option>
<option value="半年一付" >半年一付</option>
<option value="一年一付" >一年一付</option>
</select></td>
</tr>
<td>聯系人*: </td>
<td><input name="contact" type="text" id="contact2" size="16"></td>
<td> 聯系電話*:
</td>
<td><input name="tel" type="text" id="tel" size="16"></td>
</tr>
<tr><td>信息類別*:</td>
<td><select name="info_type" size="1" id="info_type">
<option selected value="1">中介</option>
<option value="2">非中介</option>
</select></td>
<td>中介簡稱: </td>
<td ><input name="company" type="text" id="company2" size="16">
</td>
</tr>
<tr>
<td valign="top">上傳圖片:</td>
<td colspan="3"> <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 + -