<!--#include file="usertop.asp"-->
<!--#include file="usercookies.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>发布出售房源信息--<%=title%>--<%=web%></title>
</head>

<body>
<script LANGUAGE=JavaScript>
  function textLimitCheck(thisArea, maxLength){
    if (thisArea.value.length > maxLength){
      alert(maxLength + ' 个字限制. \r超出的将自动去除.');
      thisArea.value = thisArea.value.substring(0, maxLength);
      thisArea.focus();
    }
    /*回写span的值，当前填写文字的数量*/
    messageCount.innerText = thisArea.value.length;
  }
</script>
<div align="center">
<script language=javascript>
 function checkNum(frm)
 {
  if(window.event.keyCode > '9'.charCodeAt(0) || 
   window.event.keyCode < '0'.charCodeAt(0))
  {
   /*用下面两条语句中的任何一条，都可以实现取消这次输入的字符值*/
   //window.event.keyCode = 0;
   window.event.returnValue = false;
  }
 }
</script>
<script language="JavaScript">
  function isDigit(c)
{
    if(c.length > 1){
        return false;
    }
    ic = c - '0';
    return ic >= 0 && ic <= 9;
}
function checkinput(){

        	if(form_fox.fangbt.value.length<2 || form_fox.fangbt.value.length>12 ){
            alert("标题在2-12字之间！");
            form_fox.fangbt.focus();
            return false;
        }
	       if(form_fox.fangdz.value.length<1 || form_fox.fangdz.value.length>30 ){
            alert("具体地址填写错误！");
            form_fox.fangdz.focus();
            return false;
        } 
			if(form_fox.sheng.value == "0" || form_fox.sheng.value == ""){
            alert("请选择区域大类！");
            form_fox.sheng.focus();
            return false;
        } 
			if(form_fox.shi.value == "0" || form_fox.shi.value == ""){
            alert("请选择区域小类！");
            form_fox.shi.focus();
            return false;
        } 
            if(form_fox.fangjia.value == ""){
            alert("请输入出售价格！");
            form_fox.fangjia.focus();
            return false;
        }  
            if(form_fox.fanglxr.value == ""){
            alert("请输入联系人！");
            form_fox.fanglxr.focus();
            return false;
        } 
　　　　　　if(form_fox.fangtel.value == ""){
            alert("请输入联系电话！");
            form_fox.fangtel.focus();
            return false;
        } 
 
	if(form_fox.fangemail.value == ""){
            alert("请输入您有效的电子邮件,方便我们能联系到您！");
            form_fox.fangemail.focus();
            return false;
        }
    return true;
}  
function isEmail(strEmail) {
 if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
  return true;
 else
  alert("请输入您有效的电子邮件,方便我们能联系到您！");
}
</script>
<table cellSpacing="0" cellPadding="0" width="760" border="0" id="table1">
		<tr>
			<td  height="25" colspan="2" class="tdtop"><b>&nbsp;<img border="0" src="images/z1.gif" width="50" height="18"> 您的位置  
			<font color="#FFFFFF">-></font> <a class="scap1" href="index.htm"><%=title%></a>
			<font color="#FFFFFF">-></font> 发布出售房源信息：</b></td>
		</tr>
		<tr bgColor="#d9ebe5">
			<td  width="255" bgcolor="#FFFFFF" rowspan="2" valign="top">
            <!--#include file="caozuo.asp"-->
			</td>
		<tr bgColor="#d9ebe5">
			<td valign="top" width="505" height="315" bgcolor="#FFFFFF">
			<table border="1" width="100%" id="table2" bordercolorlight="#D9EBE5" bordercolordark="#D9EBE5" style="border-collapse: collapse" cellpadding="0" cellspacing="0">
				<tr>
					<td class="tdtxt07" bgcolor="#D9EBE5">&nbsp;<img border="0" src="images/a01.gif" width="25" height="25">
用户：<font color="#FF0000"><%=username%></font>，您好，欢迎来到会员中心！您登陆本站共<font color="#FF0000"><%=rsuser("dlcs")%></font>次。<br>
您目前级别：<%if rsuser("huitype")="0" then%><font color="#FF0000"><%=aname%>会员</font><%elseif rsuser("huitype")="1" then%><font color="#FF0000"><%=bname%>会员</font><%elseif rsuser("huitype")="2" then%><font color="#FF0000"><%=cname%>会员</font><%end if%>
，验证状态：<%if rsuser("yz")="0" then%><font color="#FF0000">没有通过验证</font>，验证后才可以享受更多权利！<%elseif rsuser("yz")="1" then%><font color="#FF0000">已通过验证</font>，祝您愉快！<%end if%></td>
				</tr>
				<tr>
					<td class="tdtxt07" bgcolor="#D9EBE5" height="20">
					<table border="0" width="100%" id="table3" cellspacing="0" cellpadding="0" class="table2">
						<tr>
							<td bgcolor="#FFFFFF" colspan="6" height="40">
							<p align="center">
							<img border="0" src="images/a01.gif" width="25" height="25"><b>发布出售房源信息</b>（
							成功发布将获赠 <font color="#FF0000"><%=lmjf%></font> 分/个；被删除扣<font color="#FF0000"> <%=lmjf*lmjf%> </font>分/个）</td>
						</tr>
	<form name="form_fox" onsubmit="return checkinput()" method="post" action="addsfchk.asp">

						<input name="leixing" type="hidden" value="3">
						<input name="yz" type="hidden" value="<%=rsuser("yz")%>">
						<input name="huitype" type="hidden" value="<%=rsuser("huitype")%>">
						<input name="username" type="hidden" value="<%=rsuser("username")%>">

						<tr>
							<td bgcolor="#FFFFFF" width="99%" height="5" align="right" colspan="6" class="tdbg2"></td>
						</tr>

						<tr>
							<td bgcolor="#FFFFFF" width="1%" align="right">
							　</td>
							<td bgcolor="#FFFFFF" width="10%" align="right">
							　</td>
							<td bgcolor="#FFFFFF" width="20%" align="right" colspan="2">
							　</td>
							<td bgcolor="#FFFFFF" width="40%" align="right">
							　</td>
							<td bgcolor="#FFFFFF" width="27%" align="center" class="tdbg2">
							<font color="#FF0000">基本资料（必填）</font></td>
						</tr>

						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>标&nbsp;&nbsp;&nbsp; 题：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input type="text" name="fangbt" size="20" maxlength="12"></td>
						</tr>

						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>房&nbsp;&nbsp;&nbsp; 型：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<select size="1" name="fangfx">
			<option selected value="普通住宅">普通住宅</option>
			<option value="小高层住宅">小高层住宅</option>
			<option value="高层住宅">高层住宅</option>
			<option value="别墅">别墅</option>
			<option value="写字楼">写字楼</option>
			<option value="酒店式公寓">酒店式公寓</option>
			<option value="商住两用">商住两用</option>
			<option value="商铺">商铺</option>
			<option value="厂房">厂房</option>
			</select></td>
						</tr>

						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>户&nbsp;&nbsp;&nbsp; 型：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input type="text" name="fanghx1" size="1" value="1" onkeypress="checkNum(this.form)"> 室 
			<input type="text" name="fanghx2" size="1" value="0" onkeypress="checkNum(this.form)"> 厅 
			<input type="text" name="fanghx3" size="1" value="0" onkeypress="checkNum(this.form)"> 卫 
			<input type="text" name="fanghx4" size="1" value="0" onkeypress="checkNum(this.form)"> 阳台</td>
						</tr>
<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>户屋产权：</td>
							<td bgcolor="#FFFFFF" width="74%" height="30" colspan="3">
							<select size="1" name="fangdw">
							<option selected value="公产房">公产房</option>
							<option value="私产房">私产房</option>
							<option value="企业产权">企业产权</option>
							<option value="商品房合同">商品房合同</option>
							</select></td>

						</tr>
<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>区&nbsp;&nbsp;&nbsp; 域：</td>
							<td bgcolor="#FFFFFF" width="74%" height="30" align="right" colspan="3">
							<p align="left">
<%
dim rss
dim sqls
dim count
username=request.cookies("fox")("username")
set rss=server.createobject("adodb.recordset")
sqls = "select * from FOX_shi order by paixu desc"
rss.open sqls,conn,1,1
%>
                              <SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rss.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rss("shi"))%>","<%= trim(rss("sheng"))%>","<%= trim(rss("id"))%>");
        <%
        count = count + 1
        rss.movenext
        loop
        rss.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.form_fox.shi.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.form_fox.shi.options[document.form_fox.shi.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
                      </SCRIPT>
                              <%
sqls = "select * from FOX_sheng order by paixu desc"
rss.open sqls,conn,1,1
if rss.eof and rss.bof then
response.write "请先添加栏目。"
response.end
else
%>
                              <SELECT name="sheng" onChange="changelocation(document.form_fox.sheng.options[document.form_fox.sheng.selectedIndex].value)" size="1" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;">
                                <OPTION selected value="0">=区域=</OPTION>
                                <%do while not rss.eof
%>
                                <OPTION value="<%=trim(rss("id"))%>"><%=trim(rss("sheng"))%></OPTION>
                                <%
        rss.movenext
        loop
	    end if
        rss.close
%>
                              </SELECT>
                              <SELECT name="shi"  style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;">
                                <OPTION selected value="0">=细分=</OPTION>
                              </SELECT> 小区名：<input type="text" name="fangxq" size="11" maxlength="8">没有小区可不填</td>

						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							　<font color="#FF0000">* </font>具体地址：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input id="topic6" maxLength="12" size="31" name="fangdz" class="button01" maxlength="30"> 
			</td>
						</tr>

						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>楼&nbsp;&nbsp;&nbsp; 层：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input type="text" name="fanglc1" size="1" value="1">/<input type="text" name="fanglc2" size="1" value="1"> 
			所在楼层/<b>总楼层</b></td>
						</tr>
						
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>有效期限：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<select size="1" name="fangyxq">
			<option selected value="30">一月</option>
			<option value="90">三月</option>
			<option value="180">半年</option>
			<option value="365">一年</option>
			</select></td>
						</tr>
						
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>建筑面积：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input type="text" name="fangzq" maxlength="10" size="10" onkeypress="checkNum(this.form)">平方米</td>
						</tr>
<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>建筑年代：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input type="text" name="fangyj" maxlength="10" size="10" onkeypress="checkNum(this.form)">年</td>
						</tr>						
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>出售总价：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input type="text" name="fangjia" size="12" maxlength="8" onkeypress="checkNum(this.form)">元</td>
						</tr>
	  <script language="JavaScript">
function show_o(){     
		oth.style.display = "";     
}	     
function show(){     
		oth.style.display = "none"; 
	    vip.style.display = "none";
}	     
function show_vip(){     
	if (vip.style.display=="none"){
	vip.style.display = "";     
    }else{     
	vip.style.display = "none";
	}
	}	     
</script>					
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>是否中介：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input id="advcheck" type="radio" name="fangjai" value="1" onClick="show_o()">我是中介 <input type="radio" name="fangjai" value="0" checked onClick="show()">我是房东 
			<span lang="zh-cn">（<font color="#A2A2A2">中介机构请选择中介</font>）</span></td>
						</tr>
					
						<tr id=oth style="DISPLAY: none">
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							是否收费：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input type="radio" name="fangjaif" value="1">收取中介费
			<input type="radio" name="fangjaif" value="0" checked>免收中介费</td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="99%" height="5" align="right" colspan="6" class="tdbg2"></td>
						</tr>

						<tr>
							<td bgcolor="#FFFFFF" width="1%" align="right">
							　</td>
							<td bgcolor="#FFFFFF" width="10%" align="right">
							　</td>
							<td bgcolor="#FFFFFF" width="20%" align="right" colspan="2">
							　</td>
							<td bgcolor="#FFFFFF" width="40%" align="right">
							　</td>
							<td bgcolor="#FFFFFF" width="27%" align="center" class="tdbg2">
							<font color="#008080">补充资料（选填）</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							使用面积：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input type="text" name="fangjzm" size="8" onkeypress="checkNum(this.form)">平方米</td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							房屋朝向：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input type="text" name="fangfk" maxlength="20"></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							装修程度：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input type="radio" name="fangzxc" value="尚未装修">尚未装修 <input type="radio" name="fangzxc" value="简单装修">简单装修 <input type="radio" name="fangzxc" value="中档装修">中档装修 <input type="radio" name="fangzxc" value="高档装修">高档装修</td>
						</tr>
						
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							配套设施：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<table border="0" width="100%" id="table4" cellspacing="0" cellpadding="0">
				<tr>
					<td>
			<input type="checkbox" name="fangpt1" value="ON">厨房</td>
					<td><input type="checkbox" name="fangpt2" value="ON">床</td>
					<td><input type="checkbox" name="fangpt3" value="ON">家具</td>
					<td><input type="checkbox" name="fangpt4" value="ON">有线电视</td>
					<td><input type="checkbox" name="fangpt5" value="ON">宽带网</td>
					<td><input type="checkbox" name="fangpt6" value="ON">电话</td>
					<td><input type="checkbox" name="fangpt7" value="ON">热水器</td>
				</tr>
				<tr>
					<td><input type="checkbox" name="fangpt8" value="ON">电视机</td>
					<td><input type="checkbox" name="fangpt9" value="ON">空调</td>
					<td><input type="checkbox" name="fangpt10" value="ON">洗衣机</td>
					<td><input type="checkbox" name="fangpt11" value="ON">冰箱</td>
					<td><input type="checkbox" name="fangpt12" value="ON">煤气</td>
					<td><input type="checkbox" name="fangpt13" value="ON">暖气</td>
					<td><input type="checkbox" name="fangpt14" value="ON">汽车库</td>
				</tr>
			</table>
							</td>
						</tr>
						
						
						
						
						
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							其他说明：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<textarea  class="button02" rows="3" onkeyUp="textLimitCheck(this, 200);" name="fangsm" cols="48"></textarea><br><font color=#666666>
			例：联系时间、周围环境等，限 200 字符  已输入 <font color="#CC0000"><span id="messageCount">0</span></font> 个字</font></td>
						</tr>
						
						<tr>
							<td width="99%" height="30" align="right" colspan="6" class="tdbg2">
							<p align="left">
							<b>&nbsp;&nbsp; 联系人信息：</b></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>联系人：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input id="topic0" maxLength="4" size="14" name="fanglxr" class="button01" value="<%=rsuser("lxrname")%>">
			<input name="fangyz" type="hidden" value="<%=rsuser("yz")%>"></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>联系电话：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input id="topic1" maxLength="30" size="14" name="fangtel" class="button01" value="<%=rsuser("usertel")%>"></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							常用手机：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input id="topic2" maxLength="12" size="14" name="fangmod" class="button01" value="<%=rsuser("phone")%>"></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							联系QQ：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input id="topic7" maxLength="12" size="14" name="fangqq" class="button01" value="<%=rsuser("qq")%>"></td>
						</tr>
						
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							<font color="#FF0000">* </font>EMAIL：</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input id="topic3" maxLength="30" size="23" onblur="isEmail(this.value)" name="fangemail" class="button01" value="<%=rsuser("email")%>"></td>
						</tr>
						
						<tr>
							<td bgcolor="#FFFFFF" width="25%" height="30" align="right" colspan="3">
							　</td>
							<td bgcolor="#FFFFFF" height="30" width="74%" colspan="3">
			<input class="inputb" border="0" name="I5" type="submit" value="我要发布"></td>
						</tr></form>
					</table>
					</td>
				</tr>
			</table>

			</td>
			</tr>

</table>
<%rsuser.close
set rsuser=nothing%>
</div>

</body>
<!--#include file="userbottom.asp"--></body></html>

</body></html>