<!--#include file="byshop_conn.asp"-->
<!--#include file="session.asp"-->
<script language=JavaScript>
<%dim i_1,j_1
	set rs_s=server.createobject("adodb.recordset")
	sql="select * from province order by shengorder"
	rs_s.open sql,conn,1,1
%>
	var selects=[];
	selects['xxx']=new Array(new Option('-请选择市-','xxx'));
<%
	for i=1 to rs_s.recordcount
%>
	selects['<%=rs_s("ShengNo")%>']=new Array(

new Option('-请选择县-','xxx'),
<%
	set rs_s1=server.createobject("adodb.recordset")
	sql="select * from city where shengid="&rs_s("id")&" order by shiorder"
	rs_s1.open sql,conn,1,1
	if rs_s1.recordcount>0 then 
	%>


	<%		for j=1 to rs_s1.recordcount
		if j=rs_s1.recordcount then 
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'));
<%		else
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'),
<%
		end if
		rs_s1.movenext
		next
	else 
%>
		new Option('','0'));
<%
	end if
	rs_s1.close
	set rs_s1=nothing
	rs_s.movenext
	next
rs_s.close
set rs_s=nothing
%>
	function chsel(){
		with (document.formpub){
			if(province.value) {
				city.options.length=0;
				for(var i=0;i<selects[province.value].length;i++){
					city.add(selects[province.value][i]);
				}
			}
		}
	}



</script>
<script language="JavaScript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

function checkform() {
    if(checkspace(document.formpub.title.value)) {
    alert("请输入楼盘名称！");
	formpub.title.focus();
	return false;
	  }
	   if(checkspace(document.formpub.address.value)) {
    alert("请输入楼盘地址！");
	formpub.address.focus();
	return false;
	  }
	     if(checkspace(document.formpub.selladdress.value)) {
    alert("请输入售楼地址！");
	formpub.selladdress.focus();
	return false;
	  }
     if(checkspace(document.formpub.sellmobile.value)) {
    alert("请输入售楼电话！");
	formpub.sellmobile.focus();
	return false;
	  }
	      for ( iii = 1 ; iii <= formpub.sellmobile.value.length ; iii++ ) {
        chara =formpub.sellmobile.value.charAt(iii-1);
        if  ( chara != 0 && chara != 1 && chara != 2 && chara != 3 && chara != 4 && chara != 5 && chara != 6 && chara != 7 && chara != 8  && chara != 9 && chara != ".") {
        alert("售楼电话格式错误！");
        formpub.sellmobile.focus(); 
        		return false;
         }
  }
   
       if(checkspace(document.formpub.zdsize.value)) {
    alert("请输入占地面积！");
	formpub.zdsize.focus();
	return false;
	  }
	      for ( iii = 1 ; iii <= formpub.zdsize.value.length ; iii++ ) {
        chara =formpub.zdsize.value.charAt(iii-1);
        if  ( chara != 0 && chara != 1 && chara != 2 && chara != 3 && chara != 4 && chara != 5 && chara != 6 && chara != 7 && chara != 8  && chara != 9 && chara != ".") {
        alert("占地面积格式错误！");
        formpub.sellmobile.focus(); 
        		return false;
         }
  }
   
          if(checkspace(document.formpub.jzsize.value)) {
    alert("请输入建筑面积！");
	formpub.jzsize.focus();
	return false;
	  }
	      for ( iii = 1 ; iii <= formpub.jzsize.value.length ; iii++ ) {
        chara =formpub.jzsize.value.charAt(iii-1);
        if  ( chara != 0 && chara != 1 && chara != 2 && chara != 3 && chara != 4 && chara != 5 && chara != 6 && chara != 7 && chara != 8  && chara != 9 && chara != ".") {
        alert("建筑面积格式错误！");
        formpub.jzsize.focus(); 
        		return false;
         }
  }


} 
// -->
</script>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div align="center">
<table width="95%" border="1" bordercolor="#C0C0C0" style="border-collapse: collapse" cellspacing="1" cellpadding="3">
<form name="formpub" method="post"  onsubmit="return checkform()" action="savebuild.asp?action=add" onsubmit="return checkform()">
  <tr>
   <td  colspan="3" bgcolor="#E8F1FF">
   <p align="center"><b>新楼盘-添加</b></td>
  </tr>
  <tr>
   <td  colspan="3" bgcolor="#F7F7F7">
   <p align="right">审核：<select name="by_shenhe" >
  <option value="1" >通过</option>
   <option value="0" >待审核</option>
    <option value="-1" >未通过</option>
</select><font color="#FF6600"> </font>&nbsp;<font color="#FF0000">* </font></td>
  </tr>
  <tr>
   <td width="643" colspan="3" bgcolor="#F7F7F7">楼盘信息</td>
  </tr>
  <tr>
   <td width="128" bgcolor="#F7F7F7">　</td>
   <td width="93" bgcolor="#F7F7F7">
	楼盘名称</td>
   <td width="596" bgcolor="#F7F7F7">
   					<input class="wenbenkuang" maxLength="40" name="title" ><font color="#FF6600">
					</font><font color="#FF0000">*</font></td>
  </tr>
  <tr>
   <td width="128" bgcolor="#F7F7F7">　</td>
   <td width="93" bgcolor="#F7F7F7">
	楼盘地址</td>
   <td width="596" bgcolor="#F7F7F7">
   					<input class="wenbenkuang" maxLength="80" name="address" ><font color="#FF6600">
					</font><font color="#FF0000">*</font></td>
  </tr>
  <tr>
   <td width="128" bgcolor="#F7F7F7">　</td>
   <td width="93" bgcolor="#F7F7F7">楼盘类型</td>
   <td width="596" bgcolor="#F7F7F7">
   					<select id="Select10" name="sort">
					<option value="1">普通住宅</option>
					<option value="2">小高层住宅</option>
					<option value="3">高层住宅</option>
					<option value="4">别墅</option>
					<option value="5">写字楼</option>
					<option value="6">店面房</option>
					<option value="7">厂房</option>
					<option value="8">车库车位</option>
					<option value="9">公寓</option>
					<option value="10">单身公寓</option>
					<option value="11">其他</option>
					</select><font color="#FF6600"> </font>
					<font color="#FF0000">*</font></td>
  </tr>
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">售楼地址</td>
  <td width="596" bgcolor="#F7F7F7">
 					<input class="wenbenkuang" maxLength="80" name="selladdress" ><font color="#FF0000"> *</font></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">售楼电话</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="15" name="sellmobile" ><font color="#FF0000"> *</font></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">　</td>
  <td width="596" bgcolor="#F7F7F7">
					　</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">远景</td>
  <td width="596" bgcolor="#F7F7F7"><%
					ServerName1=Cstr(Request.ServerVariables("HTTP_REFERER"))
					%><input class="wenbenkuang" maxLength="40" name="pico" > <input  type="button" name="Submit2" value="上传图片" onClick="window.open('../Up_byshopPic2.asp?formname=formpub&editname=pico&byshopuppath=upload/build&filelx=jpg&ServerName1=<%=ServerName1%>','','status=no,scrollbars1=no,top=20,left=110,width=420,height=165')" class="go-wenbenkuang">&nbsp;
	237*179 像素</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">近景</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="pict" >
					<input  type="button" name="Submit8" value="上传图片" onClick="window.open('../Up_byshopPic2.asp?formname=formpub&editname=pict&byshopuppath=upload/build&filelx=jpg&ServerName1=<%=ServerName1%>','','status=no,scrollbars1=no,top=20,left=110,width=420,height=165')" class="go-wenbenkuang">&nbsp; 
					237*179</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">地理位置</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="pics" >
					<input  type="button" name="Submit9" value="上传图片" onClick="window.open('../Up_byshopPic2.asp?formname=formpub&editname=pics&byshopuppath=upload/build&filelx=jpg&ServerName1=<%=ServerName1%>','','status=no,scrollbars1=no,top=20,left=110,width=420,height=165')" class="go-wenbenkuang">&nbsp; 
					237*179</td>
 </tr>
 
 <tr> 
  <td width="639" colspan="3" bgcolor="#F7F7F7">项目概述</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">投资商</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="tzs"></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">开发商</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="kfs" ></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">建筑商</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="jzs" ></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">设计单位</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="sjdw" ></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">物业公司</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="wygs" ></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">销售代理</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="xsdl" ></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">行销策划</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="hxch" ></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">开盘时间</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="kptime" > 
					格式2006-5-1</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">入住时间</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="rztime" > 
					格式2006-5-1</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">占地面积</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="zdsize" > 米&sup2;
					<font color="#FF0000">*</font></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">建筑面积</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="jzsize" > 米&sup2;
					<font color="#FF0000">*</font></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">得房率</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="dfl" > 格式 
					80%</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">绿化率</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="lhl" > 格式 
					80%</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">交房类型</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="jflx" ></td>
 </tr>
 
 <tr> 
  <td width="639" colspan="3" bgcolor="#F7F7F7">周边环境</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">公交线路</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="gjxl" ></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">超市</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="supermarket" ></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">银行</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="bank" ></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">餐厅</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="restaurant" ></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">学校</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="school" ></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">邮局</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="postoffice" ></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">医院</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="hospital" ></td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">其它</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="other" ></td>
 </tr>
 
 <tr> 
  <td width="639" colspan="3" bgcolor="#F7F7F7">小区配置</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="514" colspan="2" bgcolor="#F7F7F7"><table border="0" width="100%" cellspacing="0">
						<tr>
							<td width="25%"><input id="bz1" type="checkbox"  name="xschool" value="1" class="input1">学校</td>
							<td width="25%"><input id="bz2" type="checkbox"  name="xnatatorium" value="1" class="input1"> 
							游泳池 </td>
							<td width="25%">
	<input id="bz3" type="checkbox"  name="xchamber" value="1" class="input1">会所</td>
							<td width="25%"><input id="bz4" type="checkbox" name="xhealthfarm" value="1" class="input1"> 
							健康中心</td>
						</tr>
					</table>
					</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="514" colspan="2" bgcolor="#F7F7F7">

					<table border="0" width="100%" cellspacing="0">
						<tr>
							<td width="25%">
							<input id="bz5" type="checkbox"  name="xcleaners" value="1" class="input1">洗衣店</td>
							<td width="25%">
							<input id="bz6" type="checkbox"  name="xznab" value="1" class="input1"> 
							智能安保</td>
							<td width="25%">
	<input id="bz7" type="checkbox"  name="xsupermarket" value="1" class="input1">小型超市</td>
							<td width="25%">
							<input id="bz8" type="checkbox" name="xtenniscourt" value="1" class="input1"> 
							网球场</td>
						</tr>
					</table>
					</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="514" colspan="2" bgcolor="#F7F7F7">

					<table border="0" width="100%" cellspacing="0">
						<tr>
							<td width="25%">
							<input id="bz9" type="checkbox"  name="xpart" value="1" class="input1">停车场</td>
							<td width="25%">
							<input id="bz10" type="checkbox"  name="xtelevision" value="1" class="input1"> 
							卫星电视</td>
							<td width="25%">
	<input id="bz11" type="checkbox"  name="xeden" value="1" class="input1">儿童乐园</td>
							<td width="25%">
							<input id="bz12" type="checkbox" name="xbroadband" value="1" class="input1"> 宽代接入</td>
						</tr>
					</table>
					</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="514" colspan="2" bgcolor="#F7F7F7">

					<table border="0" width="100%" cellspacing="0">
						<tr>
							<td width="25%">
							<input id="bz13" type="checkbox"  name="xbank" value="1" class="input1">银行</td>
							<td width="25%">　</td>
							<td width="25%">
	　</td>
							<td width="25%">　</td>
						</tr>
					</table>
					</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">其它配置</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="80" name="xother" ></td>
 </tr>
 
 <tr> 
  <td width="639" colspan="3" bgcolor="#F7F7F7">物业管理</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="93" bgcolor="#F7F7F7">物业管理费</td>
  <td width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="wyglf" ></td>
 </tr>
 
 <tr> 
  <td width="639" colspan="3" bgcolor="#F7F7F7">项目介绍</td>
 </tr>
 
 <tr> 
  <td width="128" bgcolor="#F7F7F7">　</td>
  <td width="517" colspan="2" bgcolor="#F7F7F7">

					<textarea class="smallarea" style="FONT-FAMILY: 宋体" name="content" rows="5" cols="49" class="wenbenkuang" ></textarea></td>
 </tr>
 
 <tr> 
  <td valign="top" width="639" colspan="3" bgcolor="#F7F7F7">　</td>
 </tr>
 
 <tr> 
  <td valign="top" width="213" bgcolor="#F7F7F7">　</td>
  <td valign="top" width="93" bgcolor="#F7F7F7">发布类型</td>
  <td valign="top" width="596" bgcolor="#F7F7F7">
					<select id="Select18" name="pubsort">
					<option value="1">本站发布</option>
					<option value="2">中介发布</option>
					<option value="3">个人发布</option>
					</select></td>
 </tr>
 
 <tr> 
  <td valign="top" width="213" bgcolor="#F7F7F7">　</td>
  <td valign="top" width="93" bgcolor="#F7F7F7">浏览次数</td>
  <td valign="top" width="596" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="count" value="0"  ></td>
 </tr>
 
 <tr> 
  <td valign="top" width="213" bgcolor="#F7F7F7">　</td>
  <td valign="top" width="93" bgcolor="#F7F7F7">发布日期</td>
  <td valign="top" width="596" bgcolor="#F7F7F7">
					<%=now()%></td>
 </tr>
 <tr> 
  <td valign="top" width="639" colspan="3" bgcolor="#F7F7F7"><div align="center">&nbsp;　<input type="submit" name="Submit" value="添  加"  class=wenbenkuang >
	<input type="reset" name="Submit7" value="清  除"  class=wenbenkuang ></div>
	</td>
 </tr>
   </form>
   </table>
</div>
</body>
</html>