<%@ page language="C#" autoeventwireup="true" inherits="user_housedemand_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">

                                <script type="text/javascript">var ContinueMake=1;                
            function check(){if(ContinueMake!=1){setTimeout(check,1000);return false;}        
            if(document.getElementById("type").value==""){alert("请选择信息类型！");return false;}
            if(document.getElementById("title").value==""){alert("请填写信息标题！");return false;}
            if(document.getElementById("title").value.length<5){alert("信息标题太短！");return false;}
            if(!ifHasChn(document.getElementById("title").value)){alert("信息标题不符合规范！");return false;}          
            if(document.getElementById("qq").value!=""){if (!qqReg.test(document.getElementById("qq").value)){alert("请输入正确的QQ号！");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">
                                            信息类型：
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="type" runat="server" Width="200" CssClass="sel1">
                                                <asp:ListItem Value="">请选择</asp:ListItem>
                                                <asp:ListItem Value="qz">房屋求租</asp:ListItem>
                                                <asp:ListItem Value="qg">房屋求购</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <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>
                                            <%@ 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">
                                            有效限期：
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="endtime" runat="server" Width="200" CssClass="sel1">
                                                <asp:ListItem Value="365">1年</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="36500">不限</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            联系人：
                                        </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="phone" runat="server" MaxLength="50" 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">
                                            醒目设置：
                                        </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_housedemand_do"
                                                            title="点击刷新验证码" onclick="this.src='/s/tool/fun/ValidateCode.aspx?type=en&len=4&height=24&str=&cookie=vc_user_housedemand_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_housedemand_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>