<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false"  CodeBehind="zmzm_addjobs.aspx.cs" Inherits="YCHR.Web.newhr.zmzm_addjobs" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>发布职位-<%=config.sitename%></title>
<link rel="stylesheet" type="text/css" href="<%=config.templatetheme%>/css/member.css" />
<script language="JavaScript" src="<%=config.templatetheme%>/js/jquery.js"></script>
<script language="JavaScript" src="<%=config.templatetheme%>/js/jquery.validate.min.js"></script>
<script language="JavaScript" src="<%=config.templatetheme%>/js/jquery.form.js"></script>
<script type="text/javascript" src="<%=config.templatetheme%>/js/Job_Summary.js"></script>
<script type="text/javascript" src="<%=config.templatetheme%>/js/selectdata.js"></script>
<script type="text/javascript" src="<%=config.templatetheme%>/js/jobsearch.js"></script>
<script type="text/javascript">


        $(document).ready(function () {
            $("#form1").validate({
                success: function (label) {
                    label.text(" ").addClass("success")
                },
                rules: {
                    jobname: { required: true },
                   
                    address: { required: true },
                    positionid: { required: true },
                    tradeid: { required: true },
                    placeid: { required: true },
                    amount: { required: true, digits: true },
                    QQ: { digits: true },
                  
                    telephone: { required: true},
               
                    description: { required: true},
                    linkname: { required: true },
                  
                    days: { required: true, digits: true }

                },
                messages: {
                    jobname: { required: "请填写职位名称" },
                  
                    address: { required: "请填写公司地址" },
                    positionid: { required: "请填写职位类型" },
                    tradeid: { required: "请选择行业类型" },
                    placeid: { required: "请选择企业驻地" },
                    amount: { required: "请填写招聘人数", digits: jQuery.format("招聘人数必须是数字") },
                    QQ: { digits: jQuery.format("请正确填写qq号码") },
                
                    telephone: { required: "请填写联系电话"},
                  
                    description: { required: '请输入职位介绍', rangelength: '至少50个字符最长2000个字符' },
                    linkname: { required: "请填写企业联系人" },
                    
                    days: { required: "请填写职位有效天数", digits: jQuery.format("请填写数字") }
                }, errorElement: "span", 
                errorPlacement: function (error, element) {
                    if (element.is(":radio")) error.appendTo(element.parent().next().next());
                    else if (element.is(":checkbox")) error.appendTo(element.next());
                    else error.appendTo(element.parent())
                }
            })
        });
        // 电话号码验证
        $.validator.addMethod("phone", function (value, element) {
            var tel = /^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/;
            return this.optional(element) || (tel.test(value));
        }, "电话号码格式错误");
//        // 手机号码验证 
//        $.validator.addMethod("isMobile", function (value, element) {
//            var length = value.length;
//            var mobile = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
//            return this.optional(element) || (length == 11 && mobile.test(value));
//        }, "请正确填写您的手机号码"); 
    </script>
<style type="text/css">
#checkboxcorpwelfare {
	border-collapse: collapse;
	line-height: 18px;
}
#checkboxcorpwelfare td {
	width: 300px;
	padding-left: 5px;
}
#checkboxcorpwelfare label {
	margin-right: 22px;
	padding-left: 8px;
	line-height: 30px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
  <!--head-->
  <!-- #include file="include/head.html" -->
  <!--nav-->
  <div class="navbox">
    <div class="navtab">
      <ul>
        <li class="now"><a href="index.aspx">招聘中心</a></li>
        <li><a href="companyinfomodify.aspx">企业资料</a></li>
        <li><a href="account.aspx">我的账户</a></li>
        <li><a href="server_buy.aspx">增值服务</a></li>
        <li><a href="/resume" target="_blank">最新人才库</a></li>
        <li class="search"><a href="resumesearch.aspx">简历搜索</a></li>
        <li class="add"><a href="addjobs.aspx">发布职位</a></li>
      </ul>
    </div>
  </div>
  <div class="clear"> </div>
  <!--content-->
  <div class="box">
    <!--menu-->
    <div class="mb_menu">
      <dl>
        <dt class="m1"><a href="javascript:void(0);">职位管理</a></dt>
        <dd> <a href="addjobs.aspx" class="now">发布职位</a></dd>
        <dd> <a href="joblist.aspx">职位管理</a></dd>
        <dt style="margin-top: 8px" class="m2"><a href="javascript:void(0);">简历搜索</a></dt>
        <dd> <a href="resumesearch.aspx">简历搜索</a></dd>
        <dd> <a href="resumeseek.aspx">简历搜索器</a></dd>
        <dt style="margin-top: 8px" class="m3"><a href="javascript:void(0);">简历管理</a></dt>
        <dd> <a href="receivedresume.aspx">收到的简历</a></dd>
        <dd> <a href="mydownresume.aspx">下载的简历</a></dd>
        <dd> <a href="sendoutinvite.aspx">发出的邀请</a></dd>
        <dd> <a href="collectresume.aspx">收藏的简历</a></dd>
        <dd> <a href="invitetemp.aspx">邀请模板管理</a></dd>
      </dl>
      <div class="ad200"> <img src="<%=config.templatetheme%>/images/member/ad2.gif" width="198" height="70"
                    alt="ad2" /></div>
    </div>
    <!--right-->
    <div class="navmbs"> 您的位置： <a href="/">网站首页</a> > <a href="/hr/Index.aspx">招聘中心</a> > 发布职位 > </div> 
    <div class="mbbox_r">
      <h3> <em>职位发布正行中...</em><strong>职位描述</strong></h3>
      <table width="100%" cellspacing="10" cellpadding="0" border="0">
        <tbody>
          <tr>
            <td width="15%" align="right" class="ft_13"><font color="#ff3300">* </font>职位名称 </td>
            <td width="85%"><input id="jobname" name="jobname" class="input250" maxlength="50" type="text" value=""
                                runat="server" /></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13" style="height: 35px; line-height: 35px;"><font color="#ff3300">* </font>工作类型 </td>
            <td width="85%"><asp:RadioButtonList ID="type" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"> </asp:RadioButtonList></td>
          </tr>
          <tr>
            <td align="right" class="ft_13"><font color="#ff3300">* </font>招聘人数 </td>
            <td width="85%"><input id="amount" class="input" maxlength="6" name="amount" tabindex="4" type="text"
                                value="" style="width: 70px;" runat="server" />
              (0表示若干) </td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"><font color="#ff3300">* </font>职位类型 </td>
            <td width="85%"><input id="name_positionid" runat="server" name="name_positionid" type="text" value="请选择职位类型"
                                class="select_add1" onmouseover="this.className='select_add2'" />
              <input id="positionid" runat="server" name="positionid" type="hidden" /></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"><font color="#ff3300">* </font>工作地点 </td>
            <td width="85%"><input id="name_placeid" runat="server" name="name_placeid" type="text" value="请选择工作地点"
                                class="select_add1" onmouseover="this.className='select_add2'" />
              <input id="placeid" runat="server" name="placeid" type="hidden" /></td>
          </tr>
        
          <tr>
            <td width="15%" align="right" class="ft_13" valign="top"><font color="#ff3300">* </font>职位要求</td>
            <td width="85%"><textarea id="description" class="input250" cols="20" runat="server" onkeyup="Words_limit('form1',this.value,'showinput',0);"
                                onchange="Words_limit('form1',this.value,'showinput',0);" name="description"
                                style="width: 450px; height: 150px; margin-bottom: 6px;"></textarea></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13" valign="top">&nbsp;</td>
            <td width="85%">职位要求也是企业自我宣传的主要途径，请认真仔细填写。 可以输入2000字 已输入<font id="showinput" color="#FF0000">0</font>个字 </td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"> 月薪范围 </td>
            <td width="85%"><div style="position: relative; z-index: 8">
                <asp:DropDownList ID="paytemp" Style="width: 134px;" runat="server"> </asp:DropDownList>
                <input type="hidden" value="" id="val_paytemp" name="val_paytemp" runat="server" />
              </div></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"> 其它待遇</td>
            <td width="85%"><input id="qtdy" name="qtdy" class="input250" 
                    maxlength="50" type="text" value=""
                                runat="server" /></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"><font color="#ff3300">* </font>招聘有效时间 </td>
            <td width="85%"><input id="days" class="input" maxlength="6" name="days" tabindex="4" type="text"
                                value="30" style="width: 70px;" runat="server" />
              （注：默认有效期是30天，这里只需要填写有效天数，系统会自动计算过期时间） </td>
          </tr>
        </tbody>
      </table>
      <h3> 职位要求</h3>
      <table width="100%" cellspacing="10" cellpadding="0" border="0">
        <tbody>
          <tr>
            <td width="15%" align="right" class="ft_13"> 工作经验 </td>
            <td width="85%"><div style="position: relative; z-index: 7">
                <asp:DropDownList ID="dropworkage" class="select_arr" Style="width: 134px;" runat="server"> </asp:DropDownList>
                <input type="hidden" value="" id="val_dropworkage" name="val_dropworkage" runat="server">
              </div></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"> 学历要求 </td>
            <td width="85%"><div style="position: relative; z-index: 6">
                <asp:DropDownList ID="dropedu" name="similate" runat="server" class="select_arr"
                                    Style="width: 134px;"> </asp:DropDownList>
                <input type="hidden" value="" id="val_dropedu" name="val_dropedu" runat="server">
              </div></td>
          </tr>
          <tr>
            <td align="right" class="ft_13"> 年 龄 </td>
            <td width="85%"><div style="float: left; width: auto; margin-right: 10px; position: relative; z-index: 5">
                <select id="age1" name="age1" size="1" runat="server" class="select_arr" style="width: 60px;">
                  <option selected="" value="0">不限</option>
                  <option value="16">16岁</option>
                  <option value="17">17岁</option>
                  <option value="18">18岁</option>
                  <option value="19">19岁</option>
                  <option value="20">20岁</option>
                  <option value="21">21岁</option>
                  <option value="22">22岁</option>
                  <option value="23">23岁</option>
                  <option value="24">24岁</option>
                  <option value="25">25岁</option>
                  <option value="26">26岁</option>
                  <option value="27">27岁</option>
                  <option value="28">28岁</option>
                  <option value="29">29岁</option>
                  <option value="30">30岁</option>
                  <option value="31">31岁</option>
                  <option value="32">32岁</option>
                  <option value="33">33岁</option>
                  <option value="34">34岁</option>
                  <option value="35">35岁</option>
                  <option value="36">36岁</option>
                  <option value="37">37岁</option>
                  <option value="38">38岁</option>
                  <option value="39">39岁</option>
                  <option value="40">40岁</option>
                  <option value="41">41岁</option>
                  <option value="42">42岁</option>
                  <option value="43">43岁</option>
                  <option value="44">44岁</option>
                  <option value="45">45岁</option>
                  <option value="46">46岁</option>
                  <option value="47">47岁</option>
                  <option value="48">48岁</option>
                  <option value="49">49岁</option>
                  <option value="50">50岁</option>
                  <option value="51">51岁</option>
                  <option value="52">52岁</option>
                  <option value="53">53岁</option>
                  <option value="54">54岁</option>
                  <option value="55">55岁</option>
                  <option value="56">56岁</option>
                  <option value="57">57岁</option>
                  <option value="58">58岁</option>
                  <option value="59">59岁</option>
                  <option value="60">60岁</option>
                </select>
                <input type="hidden" value="" id="val_age1" name="val_age1" runat="server">
              </div>
              <div style="float: left"> 至</div>
              <div style="width: auto; margin: 0 10px; padding-left: 10px; display: inline-block;
                                position: relative; z-index: 5">
                <select id="age2" name="age2" size="1" style="width: 60px;" runat="server">
                  <option selected="" value="0">不限</option>
                  <option value="16">16岁</option>
                  <option value="17">17岁</option>
                  <option value="18">18岁</option>
                  <option value="19">19岁</option>
                  <option value="20">20岁</option>
                  <option value="21">21岁</option>
                  <option value="22">22岁</option>
                  <option value="23">23岁</option>
                  <option value="24">24岁</option>
                  <option value="25">25岁</option>
                  <option value="26">26岁</option>
                  <option value="27">27岁</option>
                  <option value="28">28岁</option>
                  <option value="29">29岁</option>
                  <option value="30">30岁</option>
                  <option value="31">31岁</option>
                  <option value="32">32岁</option>
                  <option value="33">33岁</option>
                  <option value="34">34岁</option>
                  <option value="35">35岁</option>
                  <option value="36">36岁</option>
                  <option value="37">37岁</option>
                  <option value="38">38岁</option>
                  <option value="39">39岁</option>
                  <option value="40">40岁</option>
                  <option value="41">41岁</option>
                  <option value="42">42岁</option>
                  <option value="43">43岁</option>
                  <option value="44">44岁</option>
                  <option value="45">45岁</option>
                  <option value="46">46岁</option>
                  <option value="47">47岁</option>
                  <option value="48">48岁</option>
                  <option value="49">49岁</option>
                  <option value="50">50岁</option>
                  <option value="51">51岁</option>
                  <option value="52">52岁</option>
                  <option value="53">53岁</option>
                  <option value="54">54岁</option>
                  <option value="55">55岁</option>
                  <option value="56">56岁</option>
                  <option value="57">57岁</option>
                  <option value="58">58岁</option>
                  <option value="59">59岁</option>
                  <option value="60">60岁</option>
                </select>
                <input type="hidden" value="" id="val_age2" name="val_age2" runat="server">
              </div></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"> 性 别 </td>
            <td width="85%"><div style="position: relative; z-index: 4">
                <select id="sex" name="sex" runat="server" class="select_arr" style="width: 60px;">
                  <option selected="" value="2">不限</option>
                  <option value="1">男性</option>
                  <option value="0">女性</option>
                </select>
                <input type="hidden" value="2" id="val_sex" name="val_sex" runat="server">
              </div></td>
          </tr>
        </tbody>
      </table>
      <h3> <em><a href="linkman.aspx" class="btn_set a_fff">联系人管理</a></em> 联系方式</h3>
      <table width="100%" cellspacing="10" cellpadding="0" border="0">
        <tbody>
          <tr>
            <td width="15%" align="right" class="ft_13">切换联系人</td>
            <td width="85%">
                <asp:DropDownList ID="droplinkname"  runat="server" class="select_arr"
                                    Style="width: 104px;"> </asp:DropDownList>
              
              
                             </td>
          </tr>
           
          <tr>
            <td width="15%" align="right" class="ft_13"><font color="#ff3300">* </font>联系人 </td>
            <td width="85%">
              
              
               <input type="hidden" value="" id="val_droplinkname" name="val_droplinkname" runat="server">
              <input id="linkname" class="input250" maxlength="10" name="linkname" tabindex="5"
                                type="text" runat="server" style=""  />
                             </td>
          </tr>
           
            <tr>
            <td width="15%" align="right" class="ft_13"> 招聘部门 </td>
            <td width="85%">
           
             <input id="dept" name="dept" type="text" value="" class="input250" runat="server" />  
              
           </td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"> 联系人职位 </td>
            <td width="85%">
           
           <input id="positionname" name="positionname" type="text" value="" class="input250" runat="server"
                                onmouseover="this.className='input251'" onmouseout="this.className='input250'" />
              
           </td>
          </tr>
           <tr>
            <td width="15%" align="right" class="ft_13">毕业学校 </td>
            <td width="85%"><input id="school" name="school" type="text" value="" class="input250" runat="server"
                                 /></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13">电子邮件 </td>
            <td width="85%"><input id="email" name="email" type="text" value="" class="input250" runat="server"
                                 /></td>
          </tr>
          <tr>
            <td align="right" class="ft_13"><font color="#ff3300">* </font>通讯地址 </td>
            <td width="85%"><input id="address" name="address" type="text" value="" class="input250" runat="server" /></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"><font color="#ff3300">* </font>联系电话 </td>
            <td width="85%"><input id="telephone" name="telephone" type="text" value="" class="input250" runat="server" />
               </td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"> 传真号码 </td>
            <td width="85%"><input id="fax" runat="server" class="input250" maxlength="20" name="fax" tabindex="5"
                                type="text" /></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13">手机号码 </td>
            <td width="85%"><input id="mobile" name="mobile" type="text" value="" class="input250" runat="server" /></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"> 在线QQ </td>
            <td width="85%"><input id="QQ" name="QQ" type="text" value="" class="input250" runat="server" /></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"> 微博</td>
            <td width="85%"><input id="weibo" name="weibo" type="text" value="" class="input250" 
                    runat="server" /></td>
          </tr>
          <tr>
            <td width="15%">&nbsp;</td>
            <td width="85%"><asp:Button ID="Btnsave" runat="server" CssClass="btn_set" OnClick="Btnsave_Click"
                                Text="保存修改" />
              <asp:HiddenField ID="hidengroupid" runat="server" /><asp:HiddenField ID="hidenphoto" runat="server" />
              <asp:HiddenField ID="hidenedate" runat="server" />
              <asp:HiddenField ID="hiddencompanyname" runat="server" /></td>
          </tr>
        </tbody>
      </table>
      <br />
      <!--content-->
    </div>
    <div class="clear"> </div>
  </div>
  <script type="text/javascript" src="<%=config.templatetheme%>/js/jquery.scrollablecombo.js"></script>
  <script type="text/javascript">

        $(document).ready(function () {
            $('#paytemp').scrollablecombo();
            $('#dropworkage').scrollablecombo();
            $('#dropedu').scrollablecombo();
            $('#age1').scrollablecombo();
            $('#age2').scrollablecombo();
            $('#sex').scrollablecombo(); $('#droplinkname').scrollablecombo();
            $('#Dropdept').scrollablecombo();
            $('#name_placeid').bindArea({
                max: 1,
                formInputName: 'placeid'
            });
            $('#name_positionid').bindJobsort({
                max: 1,
                formInputName: 'positionid'
            });
        });

        function choosedroplinkname(id) {
            
            var url = "/hr/zmzm_ajax_json.aspx?linkid=" + id;
            $.ajax({
                type: 'POST',
                url: url,
                data: '',
                dataType: "json",
                success: function (data) {
                    $("#linkname").val(data[0].linkname);
                    $("#email").val(data[0].email);
                    $("#address").val(data[0].address);
                    $("#school").val(data[0].school);
                    $("#telephone").val(data[0].tele);
                    $("#fax").val(data[0].fax);
                    $("#mobile").val(data[0].mobile);
                    $("#QQ").val(data[0].qq);
                    $("#dept").val(data[0].department);
                    $("#weibo").val(data[0].weibo);
                    $("#hidenphoto").val(data[0].photo);
                    $("#positionname").val(data[0].positionname);
                    
                }
            });

        }


    </script>
  <!-- #include file="include/foot.html" -->
</form>
</body>
</html>
