<%@ page language="C#" autoeventwireup="true" inherits="user_housesell_do, ZKCMS" maintainscrollpositiononpostback="true" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="tip_bar" TagPrefix="UC" Src="~/s/include/tip_bar.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<%@ Register TagName="side_menu" TagPrefix="UC" Src="~/user/side_menu.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>会员中心_
        <%=ZK.config("sitetitle") %></title>
    <meta name="keywords" content="<%=ZK.config("sitekeywords") %>" />
    <meta name="description" content="<%=ZK.config("sitedescription") %>" />
    <UC:meta ID="meta1" runat="server" />
</head>
<body>
    <div class="wrap">
        <a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <UC:tip_bar ID="tip_bar1" runat="server" />
        <form id="form1" runat="server" autocomplete="off">
        <div class="box">
            <div class="hot">
                <div class="fl" style="width: 180px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl">
                            </div>
                            <div class="con" style="width: 80px">
                                功能菜单</div>
                            <div class="fr">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="v">
                            <UC:side_menu ID="side_menu1" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="fr flow" style="width: 765px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl">
                            </div>
                            <div class="con">
                                <asp:Literal ID="PathTitleActType" runat="server">发布</asp:Literal>房屋出售信息</div>
                            <div class="fr">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="v">
                            <div class="do1">
                                <style type="text/css">
                                    .do1 td td u
                                    {
                                        color: #666;
                                        padding-top: 3px;
                                        padding-left: 5px;
                                        text-decoration: none;
                                    }
                                    .do1 td td i
                                    {
                                        color: #666;
                                        padding-top: 3px;
                                        padding-right: 5px;
                                        font-style: normal;
                                    }
                                    .self_CheckBoxList
                                    {
                                        border: solid 1px #fac184;
                                        width: 613px;
                                        height: 23px;
                                        background-color: #fff5e3;
                                        padding-left: 4px;
                                        display: block;
                                        padding-top: 3px; *padding-top:4px;}
                                    .self_CheckBoxList input
                                    {
                                        display: block;
                                        float: left;
                                        margin-top: 3px; *margin-top:-3px;margin-left:4px;*margin-left:0px;margin-right:3px;*margin-right:0px;}
                                    .self_CheckBoxList label
                                    {
                                        display: block;
                                        float: left;
                                        color: #666;
                                        margin-right: 6px;
                                    }
                                </style>

                                <script type="text/javascript">var ContinueMake=1;                
            function check(){if(ContinueMake!=1){setTimeout(check,1000);return false;}                  
            if(document.getElementById("title").value==""){alert("请填写信息标题！");return false;}
            //<<
            var arr1="fwdz,hx1,mj,sj".split(",");
            var arr2="房屋地址,户型,面积,售价".split(",");if(document.getElementById("lx").value!="住宅"){arr1="fwdz,mj,sj".split(",");arr2="房屋地址,面积,售价".split(",");}
            for(var i=0;i<arr1.length;i++){if(document.getElementById(arr1[i]).value==""){alert(arr2[i]+"不能为空！");return false;}}
            //>>
            if(document.getElementById("title").value.length<5){alert("信息标题太短！");return false;}
            if(!ifHasChn(document.getElementById("title").value)){alert("信息标题不符合规范！");return false;}
            if(document.getElementById("lc1").value!=""&&document.getElementById("lc2").value!=""){ if(parseInt(document.getElementById("lc2").value)>parseInt(document.getElementById("lc1").value)){alert("楼层填写错误！");return false;}}
            if(document.getElementById("areaid").value==""){alert("请选择所在区域！");return false;}
            if(document.getElementById("contact").value==""){alert("请填写联系人！");return false;}
            if(document.getElementById("phone").value==""&&document.getElementById("qq").value=="")if(document.getElementById("tel").value==""){alert("请填写联系手机！");return false;}           
            if(document.getElementById("tel").value!=""){if (!telReg.test(document.getElementById("tel").value)){alert("请输入正确的手机号码！");return false;}}   
            if(document.getElementById("qq").value!=""){if (!qqReg.test(document.getElementById("qq").value)){alert("请输入正确的QQ号！");return false;}}
            if(document.getElementById("intermediary").value==""){alert("请选择信息类型！");return false;}
            if(<%=ZK.config("switchvalidatecode1") %>==1)if(document.getElementById("vc").value==""){alert("验证码不能为空！");return false;}else{if(document.getElementById("msg_vc").innerHTML!=""&&document.getElementById("msg_vc").innerHTML.indexOf("请输入")==-1){alert("验证码不正确！");return false;}}   
}
                                </script>

                                <table border="0" cellpadding="0" cellspacing="0" class="table1">
                                    <tr>
                                        <td class="tt">
                                            <b>信息标题：</b><asp:HiddenField ID="HiddenField_AddSwitch" runat="server" Value="0" />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="title" runat="server" MaxLength="60" CssClass="inp4" Width="392" onmouseover="document.getElementById('HiddenField_AddSwitch').value='1'"></asp:TextBox><span
                                                style="margin-left: 10px"><span class="msgon">请填写信息标题！</span></span><asp:HiddenField
                                                    ID="HiddenField_enable" runat="server" />
                                        </td>
                                    </tr>
                                    <%--========================--%>
                                    <tr>
                                        <td class="tt">
                                            <b>房屋地址：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="fwdz" runat="server" MaxLength="200" CssClass="inp4" Width="392"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>类型：</b>
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:DropDownList ID="lx" runat="server" Width="127" CssClass="sel1">
                                                            <asp:ListItem>不限</asp:ListItem>
                                                            <asp:ListItem>住宅</asp:ListItem>
                                                            <asp:ListItem>写字楼</asp:ListItem>
                                                            <asp:ListItem>商铺</asp:ListItem>
                                                            <asp:ListItem>厂房</asp:ListItem>
                                                            <asp:ListItem>别墅</asp:ListItem>
                                                            <asp:ListItem>公寓</asp:ListItem>
                                                            <asp:ListItem>商住房</asp:ListItem>
                                                            <asp:ListItem>其它</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td class="tt" style="padding-left: 30px">
                                                        <b>户型：</b>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="hx1" runat="server" MaxLength="1" CssClass="inp4" Width="40" onkeyup="this.value=this.value.replace(/\D/g,'')"
                                                            onblur="this.value=this.value.replace(/\D/g,'')"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <u>室</u>
                                                    </td>
                                                    <td style="padding-left: 5px">
                                                        <asp:TextBox ID="hx2" runat="server" MaxLength="1" CssClass="inp4" Width="40" onkeyup="this.value=this.value.replace(/\D/g,'')"
                                                            onblur="this.value=this.value.replace(/\D/g,'')"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <u>厅</u>
                                                    </td>
                                                    <td style="padding-left: 5px">
                                                        <asp:TextBox ID="hx3" runat="server" MaxLength="1" CssClass="inp4" Width="40" onkeyup="this.value=this.value.replace(/\D/g,'')"
                                                            onblur="this.value=this.value.replace(/\D/g,'')"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <u>卫</u>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>面积：</b>
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="mj" runat="server" MaxLength="6" CssClass="inp4" Width="40" onkeyup="this.value=this.value.replace(/\D/g,'')"
                                                            onblur="this.value=this.value.replace(/\D/g,'')"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <u>平米</u>
                                                    </td>
                                                    <td class="tt" style="padding-left: 30px">
                                                        房龄：
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="fl" runat="server" MaxLength="2" CssClass="inp4" Width="40" onkeyup="this.value=this.value.replace(/\D/g,'')"
                                                            onblur="this.value=this.value.replace(/\D/g,'')"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <u>年</u>
                                                    </td>
                                                    <td class="tt" style="padding-left: 30px">
                                                        <b>售价：</b>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="sj" runat="server" MaxLength="7" CssClass="inp4" Width="44" onkeyup="this.value=this.value.replace(/[^\.0-9_]/g,'')"
                                                            onblur="this.value=this.value.replace(/[^\.0-9_]/g,'')"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <u>万元（如果填0则表示“面议”）</u>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>装修：</b>
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:DropDownList ID="zx" runat="server" Width="127" CssClass="sel1">
                                                            <asp:ListItem>毛坯</asp:ListItem>
                                                            <asp:ListItem>简单装修</asp:ListItem>
                                                            <asp:ListItem>中等装修</asp:ListItem>
                                                            <asp:ListItem>豪华装修</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td class="tt" style="padding-left: 30px">
                                                        朝向：
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="cx" runat="server" MaxLength="10" CssClass="inp4" Width="144"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            楼层：
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <i>楼层总高</i>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="lc1" runat="server" MaxLength="2" CssClass="inp4" Width="40" onkeyup="this.value=this.value.replace(/\D/g,'')"
                                                            onblur="this.value=this.value.replace(/\D/g,'')"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <u>层</u>
                                                    </td>
                                                    <td style="padding-left: 30px">
                                                        <i>本房在</i>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="lc2" runat="server" MaxLength="2" CssClass="inp4" Width="40" onkeyup="this.value=this.value.replace(/\D/g,'')"
                                                            onblur="this.value=this.value.replace(/\D/g,'')"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <u>层</u>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            特色：
                                        </td>
                                        <td>
                                            <asp:CheckBoxList ID="ts" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal"
                                                CssClass="self_CheckBoxList">
                                                <asp:ListItem>绿化率高</asp:ListItem>
                                                <asp:ListItem>交通便捷</asp:ListItem>
                                                <asp:ListItem>物业管理好</asp:ListItem>
                                                <asp:ListItem>拎包即住</asp:ListItem>
                                                <asp:ListItem>学区房</asp:ListItem>
                                                <asp:ListItem>配套齐全</asp:ListItem>
                                                <asp:ListItem>繁华市区</asp:ListItem>
                                                <asp:ListItem>酒店式公寓</asp:ListItem>
                                            </asp:CheckBoxList>
                                            <div class="clear">
                                            </div>
                                        </td>
                                    </tr>
                                    <%--========================--%>
                                    <tr>
                                        <td class="tt">
                                            代表图片：
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0" style="cursor: default">
                                                <tr>
                                                    <td>
                                                        <div class="abs" style="*display: none">
                                                            <table width="400" border="0" cellspacing="0" cellpadding="0" height="24">
                                                                <tr>
                                                                    <td id="upimg1_txt" width="322" style="border: solid 1px #ccc">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                    <td width="72" style="border: solid 1px #ccc" class="ce" style="color: #333">
                                                                        浏览...
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                        <asp:FileUpload ID="upimg1" runat="server" size="55" CssClass="inp4 self_inp4" ToolTip="jpg,jpeg,gif,bmp,png" />
                                                    </td>
                                                    <td style="padding-left: 8px">
                                                        <div id="thumbnailviewbox">
                                                            <asp:Literal ID="thumbnailview" runat="server"></asp:Literal></div>
                                                        <asp:HiddenField ID="thumbnail" runat="server" />
                                                    </td>
                                                </tr>
                                            </table>
                                            <style type="text/css">
                                                .self_inp4
                                                {
                                                    width: 393px; *width:400px;height:20px;*height:24px;filter:-moz-opacity:0;opacity:0;font-size:12px;}</style>

                                            <script type="text/javascript">
                                     if (navigator.userAgent.indexOf('Firefox') >= 0){document.getElementById("upimg1").style.width="400px";  document.getElementById("upimg1").style.height="24px";}
                                            </script>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>所在区域：</b>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="areaid" runat="server" Width="200" CssClass="sel1">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>详细描述：</b>
                                        </td>
                                        <td>
                                            <%@ register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
                                            <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="~/s/tool/fck/" Height="400"
                                                Width="620" ToolbarSet="Edit1">
                                            </FCKeditorV2:FCKeditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>有效限期：</b>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="endtime" runat="server" Width="200" CssClass="sel1">
                                                <asp:ListItem Value="36500">不限</asp:ListItem>
                                                <asp:ListItem Value="3">3天</asp:ListItem>
                                                <asp:ListItem Value="7">1星期</asp:ListItem>
                                                <asp:ListItem Value="15">半个月</asp:ListItem>
                                                <asp:ListItem Value="30">1个月</asp:ListItem>
                                                <asp:ListItem Value="90">3个月</asp:ListItem>
                                                <asp:ListItem Value="183">半年</asp:ListItem>
                                                <asp:ListItem Value="365">1年</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>联系人：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="contact" runat="server" MaxLength="15" CssClass="inp4" Width="192"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            联系地址：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="address" runat="server" MaxLength="80" CssClass="inp4" Width="392"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            联系电话：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="phone" runat="server" MaxLength="50" CssClass="inp4" Width="192"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>联系手机：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tel" runat="server" MaxLength="11" CssClass="inp4" Width="192"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            联系QQ：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="qq" runat="server" MaxLength="15" CssClass="inp4" Width="192"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>信息类型：</b>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="intermediary" runat="server" Width="200" CssClass="sel1">
                                                <asp:ListItem Value="">请选择</asp:ListItem>
                                                <asp:ListItem Value="个人">个人发布</asp:ListItem>
                                                <asp:ListItem Value="中介">中介信息</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            醒目设置：
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:DropDownList ID="istop" runat="server" Width="98" CssClass="">
                                                            <asp:ListItem></asp:ListItem>
                                                            <asp:ListItem Value="1">信息置顶</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td style="padding-left: 5px">
                                                        <asp:DropDownList ID="isred" runat="server" Width="98" CssClass="">
                                                            <asp:ListItem></asp:ListItem>
                                                            <asp:ListItem Value="1">标题套红</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td width="440" style="padding-left: 8px">
                                                        <div style="margin-top: -12px">
                                                            <span class="msgon" style="float: none">
                                                                <asp:Literal ID="Literal_remaining" runat="server" Visible="false"><a href="chongzhi.aspx" style="color:#ff6600" target="_blank">您的余额不足，请充值！</a></asp:Literal>信息置顶需花费<%=ZK.isTopMoneyCost %>金币，标题套红需花费<%=ZK.isRedMoneyCost %>金币。</span>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr id="VCBOX">
                                        <td class="tt">
                                            <b>验证码：</b><%=WMcompare.IsEqual(ZK.config("switchvalidatecode1"), "0", "<script type=\"text/javascript\">document.getElementById(\"VCBOX\").style.display=\"none\";</script>", "")%>
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="vc" runat="server" MaxLength="4" CssClass="inp4" Width="60" onkeyup="if(this.value.length>0)check_vc();"></asp:TextBox>
                                                    </td>
                                                    <td style="padding-left: 5px; width: 300px">
                                                        <img src="/s/tool/fun/ValidateCode.aspx?type=en&len=4&height=24&str=&cookie=vc_user_housesell_do"
                                                            title="点击刷新验证码" onclick="this.src='/s/tool/fun/ValidateCode.aspx?type=en&len=4&height=24&str=&cookie=vc_user_housesell_do&rd'+Math.random()"
                                                            style="cursor: pointer" align="absmiddle" /><span id="msg_vc" style="margin-left: 10px"><span
                                                                class="msgon">请输入验证码！</span></span>
                                                    </td>
                                                </tr>
                                            </table>

                                            <script type="text/javascript">
function check_vc(){if(document.getElementById("vc").value!=""){
ContinueMake=0;ajax("get","/s/tool/fun/ValidateCode.aspx?act=check&cookie=vc_user_housesell_do&value="+base64en(document.getElementById("vc").value)+"&msg="+encodeURI("验证码输入不正确！")+"&rd="+Math.random(),"",function OnHandler(){if(xmlHttp.readyState == 4){if(xmlHttp.responseText.indexOf("验证码输入不正确！")!=-1)document.getElementById("msg_vc").innerHTML=xmlHttp.responseText;else document.getElementById("msg_vc").innerHTML="";ContinueMake=1;}});
}}
                                            </script>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:Button ID="ButtonSubmit" runat="server" CssClass="but4" Text="确定发布" OnClick="ButtonSubmit_Click"
                                                OnClientClick="return check()" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
      </form><UC:foot ID="foot1" runat="server" /></div></body></html><script src="city.aspx"></script>