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

📄 fb.asp

📁 本源代码为大学生购物网的源代码,欢迎大家的下载,学习与交流
💻 ASP
字号:
<!-- #include file="top.asp"-->
<%if request("gn")="up" then
mytype=request("mytype")
fw_city=request("fw_city")
fw_quyu=request("fw_quyu")
fw_dizhi=request("fw_dizhi")
fw_jiaotong=request("fw_jiaotong")
fw_leixing=request("fw_leixing")
fw_jiegou=request("fw_jiegou")
fw_louceng=request("fw_louceng")
fw_mianji=request("fw_mianji")
fw_zhuangxiu=request("fw_zhuangxiu")
fw_jiage=request("fw_jiage")
fw_jiageLX=request("fw_jiageLX")
fw_lxdh=request("fw_lxdh")
fw_lxname=request("fw_lxname")
fw_guoqi=request("fw_guoqi")
fw_qtsm=request("fw_qtsm")
fw_peitao=request("fw_peitao")
fw_uid=request("fw_uid")
bh=request("bh")

set rs=server.CreateObject("adodb.recordset")
sql="select * from house"
rs.open sql,conn,1,3

rs.addnew

rs("mytype")=mytype
rs("fw_city")=fw_city
rs("fw_quyu")=fw_quyu
rs("fw_dizhi")=fw_dizhi
rs("fw_jiaotong")=fw_jiaotong
rs("fw_leixing")=fw_leixing
rs("fw_jiegou")=fw_jiegou
rs("fw_louceng")=fw_louceng
rs("fw_mianji")=fw_mianji
rs("fw_zhuangxiu")=fw_zhuangxiu
rs("fw_jiage")=fw_jiage
rs("fw_jiageLX")=fw_jiageLX
rs("fw_lxdh")=fw_lxdh
rs("fw_lxname")=fw_lxname
rs("fw_guoqi")=fw_guoqi
rs("fw_qtsm")=fw_qtsm
rs("fw_peitao")=fw_peitao
rs("fw_uid")=fw_uid
rs("bh")=bh

rs.update

Response.Write"<script language=JavaScript>"
Response.Write"alert(""恭喜!信息发布成功"");"
Response.Write"window.location='index.asp'"
Response.Write"</script>"
else
response.Write""
end if
%>
<SCRIPT language="javascript">
<!--
function del_space(s)
{
	for(i=0;i<s.length;++i)
	{
	 if(s.charAt(i)!=" ")
		break;
	}

	for(j=s.length-1;j>=0;--j)
	{
	 if(s.charAt(j)!=" ")
		break;
	}

	return s.substring(i,++j);
}

function VerifySubmit()
{
	fw_dizhi = del_space(document.all("fw_dizhi").value);
     if (fw_dizhi == 0)
     {
        alert("注意:房屋地址不能为空!");
	return false;
     }

	fw_louceng = del_space(document.all("fw_louceng").value);
     if (fw_louceng.length == 0)
     {
        alert("注意:房屋楼层不能为空!");
		return false;
     }
	 
	 fw_mianji = del_space(document.all("fw_mianji").value);
     if (fw_mianji == 0)
     {
        alert("注意:房屋面积不能为空!");
        return false;
     }
	 
	 fw_jiage = del_space(document.all("fw_jiage").value);
     if (fw_jiage.length == 0)
     {
        alert("注意:房屋价格不能为空!");
		return false;
     }
	 fw_lxdh = del_space(document.all("fw_lxdh").value);
     if (fw_lxdh.length == 0)
     {
        alert("注意:联系电话不能为空!");
		return false;
     }
	 fw_lxname = del_space(document.all("fw_lxname").value);
     if (fw_lxname.length == 0)
     {
        alert("注意:联系人姓名不能为空!");
        return false;
     }

	return true;
}
//-->
</SCRIPT>
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center bgColor=#ffffff border=0>
  <TR vAlign=top> 
      <TD> <TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 borderColor=#111111 background="images/c-b.gif" style="BORDER-COLLAPSE: collapse">
        <TR> 
          <TD><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="100%" bgcolor="#FF8F2A" height="24">
				<font color="#FFFFFF">发布信息</font></td>
              </tr>
            </table></TD>
        </TR>
        <TR> 
          <TD><DIV align=center> 
                
              <table width="100%" border="0" cellpadding="3" bgcolor="#FF8F2A" cellspacing="1">
                <form name="regform" onSubmit="return VerifySubmit()" method="post" action="fb.asp?gn=up"><tr> 
                    <td width="124" bgcolor="#ffe7d0"> 
                      <div align="right"><font size="2">房屋性质:</font></div></td>
                    <td width="363" bgcolor="#ffe7d0">
<div align="left"><font size="2"> 
                        <input name="mytype" type="radio" value="出售" checked>出售
						<input name="mytype" type="radio" value="求购">
                        求购
						<input name="mytype" type="radio" value="出租">
                        出租
						<input name="mytype" type="radio" value="求租">
                        求租
						<input name="mytype" type="radio" value="合租">

                        合租                    <input name="mytype" type="radio" value="日租">

                        日租 </font></div></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td> 
                      <div align="right"><font size="2">所属城市:</font></div></td>
                    <td><font size="2"> 
                      <input name="fw_city" type="radio" value="杭州" checked>
                      杭州
                      <input name="fw_city" type="radio" value="其他城市">
                      其他城市 </font></td>
                  </tr>
                  <tr> 
                    <td bgcolor="#FFE7D0"> 
                      <div align="right"><font size="2">所属校区:</font></div></td>
                    <td bgcolor="#FFE7D0"><font size="2"> 
                      <input name="fw_quyu" type="radio" value="校内" checked>
                      校内 
                      <input name="fw_quyu" type="radio" value="校外">
                      校外 
                     
<input name="fw_quyu" type="radio" value="其他">
                      其他</font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td> 
                      <div align="right"><font size="2">房屋地址:</font></div></td>
                    <td> 
                      <div align="left"><font size="2"> 
                        <input name="fw_dizhi" type="text" id="fw_dizhi5" size="50">
                        <font color="#FF0000">*</font> </font></div></td>
                  </tr>
                  <tr> 
                    <td bgcolor="#ffe7d0"> 
                      <div align="right"><font size="2">公交路线:</font></div></td>
                    <td bgcolor="#ffe7d0"> 
                      <div align="left"><font size="2"> 
                        <input name="fw_jiaotong" type="text" id="fw_jiaotong5" size="50">
                        </font></div></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td> 
                      <div align="right"><font size="2">房屋类型:</font></div></td>
                    <td> 
                      <div align="left"><font size="2">
                        <select name="fw_leixing" id="select26">
                          <option selected>住宅</option>
                          <option>公寓</option>
                          <option>别墅</option>
                          <option>厂房</option>
                          <option>仓库</option>
                          <option>农民房</option>
                          <option>商品房</option>
                          <option>写字楼</option>
                          <option>其他</option>
                        </select>
                        </font></div></td>
                  </tr>
                  <tr> 
                    <td bgcolor="#ffe7d0"> 
                      <div align="right"><font size="2">房屋结构:</font></div></td>
                    <td bgcolor="#ffe7d0"> 
                      <div align="left"><font size="2"> 
                        <select name="fw_jiegou" id="select27">
                          <option>一室户</option>
                          <option>一室一厅</option>
                          <option selected>二室一厅</option>
                          <option>二室二厅</option>
                          <option>三室一厅</option>
                          <option>三室二厅</option>
                          <option>四室一厅</option>
                          <option>四室二厅</option>
                          <option>其他结构</option>
                        </select>
                        </font></div></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td height="22"> 
                      <div align="right"><font size="2">所在楼层:</font></div></td>
                    <td> 
                      <div align="left"> <font size="2"> 
                        <input name="fw_louceng" type="text" id="fw_louceng" size="10">
                        <font face="Times New Roman, Times, serif">层</font><font color="#FF0000"> 
                        *</font>
						<font color="#FF0000" face="Times New Roman, Times, serif">(例如3/6,表示6层楼的3楼,-1代表地下一层)</font></font></div></td>
                  </tr>
                  <tr> 
                    <td bgcolor="#ffe7d0"> 
                      <div align="right"><font size="2">房屋面积:</font></div></td>
                    <td bgcolor="#ffe7d0"> 
                      <div align="left"><font size="2"> 
                        <input name="fw_mianji" type="text" id="fw_mianji5" size="10">
                        平方米 <font color="#FF0000">*</font></font></div></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td> 
                      <div align="right"><font size="2">装修情况:</font></div></td>
                    <td> 
                      <div align="left"><font size="2"> 
                        <select name="fw_zhuangxiu" id="select30">
                          <option selected>无装修</option>
                          <option>一般装修</option>
                          <option>中档装修</option>
                          <option>高档装修</option>
                          <option>顶级装修</option>
                        </select>
                        </font></div></td>
                  </tr>
                  <tr> 
                    <td bgcolor="#ffe7d0">
<div align="right"><font size="2">房屋配套:</font></div></td>
                    <td bgcolor="#ffe7d0">
<div align="left"> <font size="2"> 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="煤气">
                        煤气 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="热水器">
                        热水器 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="空调">
                        空调 &nbsp; 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="有线电视">
                        有线电视 &nbsp; 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="宽带网">
                        宽带网 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="家具">
                        家具 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="防盗门">
                        防盗门 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="封阳台">
                        封阳台 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="独立厨房">
                        独立厨房 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="公用厨房">
                        公用厨房 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="独立卫生间">
                        独立卫生间 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="公用卫生间">
                        公用卫生间 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="汽车库/位 ">
                        汽车库/位 
                        <input name="fw_peitao" type="checkbox" id="fw_peitao" value="阁楼">
                        阁楼</font></div></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td> 
                      <div align="right"><font size="2">价

⌨️ 快捷键说明

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