<%@ page language="C#" autoeventwireup="true" inherits="user_job_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" />
                            <script type="text/javascript">showonly_user_side_menu("2,3,4,5,6");</script>
                        </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("HiddenField_classid").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("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(<%=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;}}   
if(document.getElementById("CustomArea").style.display!="none"){
var strTemp="";var list=document.getElementById("CustomArea").getElementsByTagName("input");
for(var i=0;i<list.length && list[i];i++){ if(i%2==0)strTemp+= (list[i].value+"：").replace("：：","：");else strTemp+= list[i].value+"_";}
document.getElementById("customcode").value=strTemp;
}
            }
                                </script>

                                <table border="0" cellpadding="0" cellspacing="0" class="table1">
                                    <tr>
                                        <td class="tt">
                                            <b>信息类别：</b>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="parentclassid" runat="server" Width="200" CssClass="sel1" onchange="document.getElementById('CustomAreaTr').style.display='none';if(this.value=='1'||this.value=='2'){self_mark_i=this.value;self_ininjs2();}setDropDownListSubClass(this.value,'classid','job_do.aspx?act=ajax&type=getsubclass',0,0,'classid',0,0)">
                                            </asp:DropDownList>
                                            <asp:DropDownList ID="classid" runat="server" Width="195" CssClass="sel1" Style="display: none"
                                                onchange="document.getElementById('HiddenField_classid').value=this.value;setCustomCode(this.value,0,'job_do.aspx?act=ajax&type=custom')">
                                            </asp:DropDownList>
                                            <script type="text/javascript">
                                            var self_mark_i=0;
                                            function self_ininjs1(){
                                            var url=location.href.toLowerCase();
                                            if(url.indexOf("type=1")!=-1||url.indexOf("type=2")!=-1){
                                            var i=url.substring(url.length-1);self_mark_i=i;
                                            setDropDownListSubClass(i,'classid','job_do.aspx?act=ajax&type=getsubclass',0,0,'classid',0,0);
                                            document.getElementById("parentclassid")[i].selected=true;
                                            }
                                            }
                                            self_ininjs1();
                                            </script>
                                        </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">
                                         <span id="self_b1">代表图片：</span>
                                        </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;}
                                                #CustomArea td
                                                {
                                                    padding-top: 5px;
                                                }
                                                #CustomArea .self_custom_inp
                                                {
                                                    font-size: 12px;
                                                    padding-left: 6px;
                                                }
                                            </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 id="self_b">所在区域：</b>                                      
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="areaid" runat="server" Width="200" CssClass="sel1">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr id="CustomAreaTr" style="display: none">
                                        <td class="tt">
                                            属性描述：
                                        </td>
                                        <td>
                                            <div id="CustomArea">
                                            </div>
                                            <div class="clear">
                                            </div>
                                            <asp:HiddenField ID="customcode" runat="server" />
                                            <asp:HiddenField ID="HiddenField_classid" runat="server" />
                                            <asp:Literal ID="JS_classid" runat="server"></asp:Literal>
                                            <asp:Literal ID="JS_css1" runat="server"><style type="text/css">
                                                                                         #CustomArea .self_custom_inp
                                                                                         {
                                                                                             width: 508px;
                                                                                             margin-left: 4px;
                                                                                         }
                                                                                     </style></asp:Literal>

                                            <script type="text/javascript">if(location.href.indexOf("act=mod")!=-1){if(document.getElementById("classid").length==0)window.location="control.aspx";}</script>

                                        </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">
                                            醒目设置：
                                        </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_job_do"
                                                            title="点击刷新验证码" onclick="this.src='/s/tool/fun/ValidateCode.aspx?type=en&len=4&height=24&str=&cookie=vc_user_job_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_job_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>
        
              <script type="text/javascript">
              if(document.getElementById("parentclassid").value!=""&&document.getElementById("parentclassid").value!="0") self_mark_i=document.getElementById("parentclassid").value;
                                             function self_ininjs2(){
                                            if(self_mark_i=="1")
                                            {
                                            document.getElementById("self_b").innerHTML="公司地址：";document.getElementById("self_b1").innerHTML="公司照片：";
                                            }
                                            else if(self_mark_i=="2")
                                            {
                                            document.getElementById("self_b").innerHTML="现居地区：";document.getElementById("self_b1").innerHTML="你的照片：";
                                            }                                            
                                            }
                                            self_ininjs2();
                                            </script>
                                            
                                            
                                            
     </form><UC:foot ID="foot1" runat="server" /></div></body></html><script src="city.aspx"></script>
