<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="companyinfomodify.aspx.cs"
    Inherits="YCHR.Web.newhr.companyinfomodify" %>
<!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/selectData.js"></script>
<script type="text/javascript" src="<%=config.templatetheme%>/js/jobsearch.js"></script>
<script type="text/javascript" src="<%=config.templatetheme%>/js/Job_Summary.js"></script>
<script type="text/javascript">
        $(document).ready(function () {
            showyearbox(".select_day");
            $("#form1").validate({
                success: function (label) {
                    label.text(" ").addClass("success")
                },
                rules: {
                    companyname: { required: true },
                    live: { required: true },
                    address: { required: true },
                    email: {  email: true },
                    tradeid: { required: true },
                    val_dropcompanynature: { required: true },
                    val_dropcompanysize: { required: true },
                    placeid: { required: true },
                    registered: { digits: true },
                    telephone: { required: true},
                    situationSelect_select: { required: true, isSituationSelect: true
                    },
                    QQ: { digits: true },

                    mobile: { isMobile: true },
                    companynatureSelect_Select: { required: true, isnatureSelect: true },
                    introduce: { required: true },
                    linkname: { required: true },
                    website: { url: true },
                    fax: { phone: true }
                },
                messages: {
                    companyname: { required: "请填写公司名称" },
                    live: { required: "请填写居住地" },
                    address: { required: "请填写公司地址" },
                    email: {email: jQuery.format("电子邮箱格式错误") },
                    tradeid: { required: "请选择行业类型" },
                    placeid: { required: "请选择企业驻地" },
                    val_dropcompanynature: { required: "请选择企业性质" },
                    val_dropcompanysize: { required: "请选择公司规模" },
                    registered: { digits: jQuery.format("注册资金必须为数字") },
                    telephone: { required: "请填写联系电话", phone: jQuery.format("电话号码格式不正确") },
                    situationSelect_select: { required: "请选择求职状态" },
                    QQ: { digits: jQuery.format("请正确填写qq号码") },

                    mobile: { isMobile: jQuery.format("手机号码格式不正确") },
                    companynatureSelect_Select: { required: "请填公司性质" },
                    introduce: { required: '请输入公司介绍', rangelength: '至少50个字符最长2000个字符' },
                    linkname: { required: "请填写企业联系人" },
                    website: { url: '网站地址格式不正确', maxlength: '网址最长256个字符' },
                    fax: { phone: 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($.trim(value)));
        }, "电话号码格式错误");
        // 手机号码验证 
        $.validator.addMethod("isMobile", function (value, element) {
            var length = $.trim(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($.trim(value)));
        }, "请正确填写您的手机号码");
        // 工作年限验证 
        $.validator.addMethod("isSituationSelect", function (value, element) {
            var Situation = value;
            return this.optional(element) || (Situation != "");
        }, "请选择工作年限");
        $.validator.addMethod("isnatureSelect", function (value, element) {
            var natureSelect = value;
            return this.optional(element) || (natureSelect != "");
        }, "请填选择公司性质");

    </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>
<!--head-->
<!-- #include file="include/head.html" -->
<!--nav-->
<div class="navbox">
  <div class="navtab">
    <ul>
      <li><a href="index.aspx">招聘中心</a></li>
      <li class="now"><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="companyinfomodify.aspx" class="now">基本资料</a></dd>
      <dd> <a href="CompanyLicence.aspx">营业执照</a></dd>
      <dd> <a href="Companylogo.aspx">企业标志</a></dd>
      <dd> <a href="Companyphoto.aspx">企业相册</a></dd>
      <dd> <a href="linkman.aspx">联系人管理</a></dd>
      <dd> <a href="baidumap.aspx">电子地图</a></dd>
      <dd> <a href="passwordmod.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">招聘中心</a> > 基本资料 </div>
  <div class="mbbox_r">
    <div class="tagT">
      <ul>
        <li class="cu"><a href="companyinfomodify.aspx">基本资料</a></li>
        <li><a href="CompanyLicence.aspx">营业执照</a></li>
        <li><a href="Companylogo.aspx">企业标志</a></li>
        <li><a href="Companyphoto.aspx">企业相册</a></li>
        <li><a href="linkman.aspx">联系人</a></li>
        <li><a href="baidumap.aspx">电子地图</a></li>
      </ul>
      <div class="tagTxt">
        <div class="left"> 资料完善度：</div>
        <div class="bar" style="margin-top: 16px;"> <span style="width: <%=getcomplete() %>%;"></span> </div>
        <%=getcomplete() %>%</div>
    </div>
    <div class="clear"> </div>
    <form id="form1" name="form1" runat="server">
      <h3> <em>为确保求职者能及时了解您的情况，我们建议您尽量将个人资料填写完整</em><strong>企业基本资料</strong></h3>
      <table width="100%" cellspacing="10" cellpadding="0" border="0">
        <tbody>
          <tr>
            <td width="16%" align="right" class="ft_13"><font color="#ff3300">*</font> 企业名称 </td>
            <td><input type="text" onmouseout="this.className='input250'" onmouseover="this.className='input251'"
                                class="input250" runat="server" value="" maxlength="50" name="companyname" id="companyname"></td>
          </tr>
          <tr>
            <td width="16%" align="right" class="ft_13"> 成立日期 </td>
            <td><div>
                <input type="text" runat="server" value="" tabindex="4" name="registerdate" class="select_day"
                                    id="registerdate">
              </div></td>
          </tr>
          <tr>
            <td align="right" class="ft_13"> 注册资金 </td>
            <td><input type="text" onmouseout="this.className='input250'" onmouseover="this.className='input251'"
                                class="input250" runat="server" value="" tabindex="4" name="registered" maxlength="6"
                                id="registered">
              万元 </td>
          </tr>
          <tr>
            <td width="16%" align="right" class="ft_13"><font color="#ff3300">*</font> 企业性质 </td>
            <td><div style="position:relative;z-index:8">
                <asp:DropDownList ID="dropcompanynature" CssClass="select_arr" runat="server"> </asp:DropDownList>
                <input type="hidden" value="" id="val_dropcompanynature" name="val_dropcompanynature"
                                runat="server">
              </div></td>
          </tr>
          <tr>
            <td width="16%" align="right" class="ft_13"><font color="#ff3300">*</font> 企业行业 </td>
            <td><input type="text" class="select_add2"  value="请选择" name="name_tradeid" runat="server" id="name_tradeid">
              <asp:HiddenField runat="server" ID="tradeid"></asp:HiddenField></td>
          </tr>
          <tr>
            <td width="16%" align="right" class="ft_13"><font color="#ff3300">*</font> 员工人数 </td>
            <td><div style="position:relative;z-index:7">
                <asp:DropDownList ID="dropcompanysize" CssClass="select_arr" runat="server"> </asp:DropDownList>
                <input type="hidden" value="" id="val_dropcompanysize" name="val_dropcompanysize"
                                runat="server">
              </div></td>
          </tr>
          <tr>
            <td width="16%" align="right" class="ft_13"><font color="#ff3300">*</font> 企业驻地 </td>
            <td><input type="text" onmouseout="this.className='input250'" onmouseover="this.className='input251'"
                                class="input250" value="" name="name_placeid" runat="server" id="name_placeid">
              <input type="hidden" name="placeid" runat="server" id="placeid"></td>
          </tr>
          <tr>
            <td width="16%" rowspan="2" align="right" valign="top" class="ft_13"> 企业介绍 </td>
            <td align="left"><textarea  name="introduce" runat="server"  id="introduce"  onmouseout="this.className='input250'"  onmouseover="this.className='input251'" class="input250" style="width: 450px; height:168px; line-height:24px"></textarea></td>
          </tr>
          <tr>
            <td align="left" class="ft_hui">友情提示：企业简介是求职者了解企业，企业自我宣传的主要途径,可以输入2000字 </td>
          </tr>
          <tr style="margin-top:10px">
            <td width="16%" rowspan="2" align="right" valign="top" class="ft_13">公司福利 </td>
            <td><asp:CheckBoxList ID="checkboxcorpwelfare" runat="server" RepeatColumns="4" 
                    RepeatDirection="Horizontal"> </asp:CheckBoxList></td>
          </tr>
          <tr>
            <td class="ft_hui">友情提示：求职者非常关注企业的福利待遇，好的福利待遇可以吸引更多的人才加入！</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"><font color="#ff3300">*</font> 联系人 </td>
            <td width="85%"><input type="text" onmouseout="this.className='input250'" onmouseover="this.className='input251'"
                                class="input250" runat="server" tabindex="5" name="linkname" maxlength="50" id="linkname"></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13">电子邮件 </td>
            <td width="85%"><input type="text" onmouseout="this.className='input250'" onmouseover="this.className='input251'"
                                class="input250" runat="server" value="" name="email" id="email"></td>
          </tr>
          <tr>
            <td align="right" class="ft_13"><font color="#ff3300">*</font> 通讯地址 </td>
            <td width="85%"><input type="text" onmouseout="this.className='input250'" onmouseover="this.className='input251'"
                                class="input250" runat="server" value="" name="address" id="address"></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"><font color="#ff3300">*</font> 联系电话 </td>
            <td width="85%"><input type="text" onmouseout="this.className='input250'" onmouseover="this.className='input251'"
                                class="input250" runat="server" value="" name="telephone" id="telephone"></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"> 传真号码 </td>
            <td width="85%"><input type="text" onmouseout="this.className='input250'" onmouseover="this.className='input251'"
                                class="input250" tabindex="5" name="fax" maxlength="20" runat="server" id="fax"></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13">手机号码 </td>
            <td width="85%"><input type="text" onmouseout="this.className='input250'" onmouseover="this.className='input251'"
                                class="input250" runat="server" value="" name="mobile" id="mobile"></td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"> 公司网站 </td>
            <td width="85%"><input type="text" onmouseout="this.className='input250'" onmouseover="this.className='input251'"
                                class="input250" runat="server" value="" name="website" id="website">
              (带 http:// 格式)</td>
          </tr>
          <tr>
            <td width="15%" align="right" class="ft_13"> 在线QQ </td>
            <td width="85%"><input type="text" onmouseout="this.className='input250'" onmouseover="this.className='input251'"
                                class="input250" runat="server" value="" name="QQ" id="QQ"></td>
          </tr>
          <tr>
            <td width="15%"><asp:HiddenField ID="hiddendepartment" runat="server" />
              <asp:HiddenField ID="hiddenschool" runat="server" />
              <asp:HiddenField ID="hiddenposition" runat="server" /></td>
            <td width="85%"><asp:Button Text="保存修改" OnClick="Button1_Click" CssClass="btn_set" runat="server"
                                ID="Button1"></asp:Button></td>
          </tr>
        </tbody>
      </table>
      <br />
    </form>
    <!--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 () {
            $('#dropcompanysize').scrollablecombo();
            $('#dropcompanynature').scrollablecombo();
            //行业
            $('#name_tradeid').bindCalling({
                max: 1,
                formInputName: 'tradeid'
            });
            $('#name_placeid').bindArea({
                max: 1,
                formInputName: 'placeid'
            });
        });

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