<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="companylogo.aspx.cs" Inherits="YCHR.Web.newhr.companylogo" %>
<!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>企业LOGO-<%=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>
<style>
<!--
.yingye_l {
	float:left;
	display:inline;
	margin:12px 27px 0 24px;
	width:498px;
	padding-right:12px;
	border-right:1px dashed #dedede;
	min-height:237px;
	height:auto !important;
	height:237px;
}
.yingye_l p {
	line-height:26px;
}
.yingye_r {
	float:left;
	width:212px;
	margin-top:12px;
}
.yingye_r h4 {
	line-height:40px;
	color:#29698D;
	font-weight:bold;
	font-size:14px;
}
.yingye_r li {
	clear:both;
	line-height:26px;
}
.yingye_r li p {
	padding:6px;
}
.yingye_r li a {
	color:#29698D;
}
.yingye_r .logoimg {
	margin:0 auto;
	display:table-cell;
	width:204px;
	height:204px;
	line-height:204px;
	border:1px solid #dedede;
	vertical-align:middle;
	text-align:center;
*display: block;
*font-size: 165px;
*font-family:Arial;
}
.yingye_r .logoimg img {
	padding:2px;
	vertical-align:middle;
	max-width:200px;
	max-height:200px;
width:expression(this.width>200&&this.width>this.height?200:this);
height:expression(this.height>200?120:this);
}
.btn_addPic {
	float:left;
	margin:0 10px;
	display: block;
	position: relative;
	width:70px;
	height: 33px;
	overflow: hidden;
	border: 1px solid #D5D5D5;
	background:url(<%=config.templatetheme%>/images/member/memberbg.gif) no-repeat 0 -420px;
	color:#999999;
	cursor: pointer;
	text-align:center;
}
.btn_addPic span {
	display: block;
	line-height: 33px;
}
.filePrew {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width:66px;
	height: 33px;
	font-size: 100px; /* 增大不同浏览器的可点击区域 */
	opacity: 0; /* 实现的关键点 */
	filter:alpha(opacity=0);/* 兼容IE */
}
-->
</style>
<script type="text/javascript">
        $(function () {
            $("#FileUpload").bind("change", function () {
                //开始提交
                $("#form1").ajaxSubmit({
                    beforeSubmit: function (formData, jqForm, options) {
                        //隐藏上传按钮
                        $(".files").hide();
                        //显示LOADING图片
                        $(".uploading").show();
                    },
                    success: function (data, textStatus) {
                        if (data.msg == 1)
                        {
                            $("#imagelogo").attr("src", data.msbox);
                            $("#txtImgUrl").val(data.msbox);
                        } else
                        {
                            alert(data.msbox);
                        }
                        $(".files").show();
                        $(".uploading").hide();
                    },
                    error: function (data, status, e) {
                        alert("上传失败，错误信息：" + e);
                        $(".files").show();
                        $(".uploading").hide();
                    },
                    url: "/ajax/Fileupload.ashx",
                    type: "post",
                    dataType: "json",
                    timeout: 600000
                });
            });
        });

        $(document).ready(function () {
            var options = {
                url: "/ajax/ajaxdo.ashx?act=logo",
                type: 'POST',
                dataType: 'script', //如果dataType == 'script'， 服务器响应将求值成纯文本。
                success: function (data) {
                    if (data == 'true')
                        alert("企业logo设置成功");
                    else
                        alert("企业logo设置失败");

                } //显示操作提示

            };
            $("#form1").validate({

                submitHandler: function (form) {

                    $(form).ajaxSubmit(options);
                },

                success: function (label) {
                    label.text(" ").addClass("success");
                },
                rules: {
                    txtImgUrl: { required: true }

                },
                messages: {
                    txtImgUrl: { required: "请选择要上传的形象图片" }
                },
                //错误输出方式
                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());
                }
            });
        });
    </script>
</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">基本资料</a></dd>
      <dd> <a href="CompanyLicence.aspx">营业执照</a></dd>
      <dd> <a href="Companylogo.aspx" class="now">企业标志</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><a href="companyinfomodify.aspx">基本资料</a></li>
        <li><a href="CompanyLicence.aspx">营业执照</a></li>
        <li class="cu"><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>
    <h3> <strong>企业标志上传</strong></h3>
    <div class="yingye_l">
      <form name="form1" method="post" action="Companylogo.aspx" id="form1">
        <p> ◇ 将企业LOGO拍照或扫描后在此上传，由客服人员认证审核。建议尺寸：136*106像素</p>
        <p style="padding-top: 10px;"> <strong>公司名称</strong>：<%=page_companyname %></p>
        <h5 style="padding-top: 10px;">
          <input id="txtImgUrl" name="txtImgUrl" class="input250" maxlength="50" type="text"
                        value="" runat="server" style="float: left;" />
          <a class="btn_addPic" href="javascript:void(0);"><span>添加图片</span>
          <input class="filePrew" title="支持jpg、jpeg、gif、png格式，文件小于3M" tabindex="3" type="file"
                                name="FileUpload" id="FileUpload" size="3" />
          </a>
          <input type="submit" value="上 传" class="select_add1" style="width: 70px; height: 35px;
                        padding: 0" id="Submit1">
        </h5>
        <p class="ft_hui"> 请确保图片上的文字清晰可见，图片大小不要超过3M。</p>
      </form>
    </div>
    <div class="yingye_r">
      <div class="logoimg"> <img id="imagelogo" width="136" height="106" alt="logo" src="<%=page_logourl %>"></div>
    </div>
    <div class="clear"> </div>
    <p style="padding: 12px 22px;"> <span class="ft_zi">注：您所上传的营业执照我们将作为机密资料专人接收、专人保管，充分保障您的权益。请放心上传。（如有疑问，请咨询客服人员）</span><br />
      客服专线：<%=config.sitetel %></p>
    <br />
    <br />
    <!--content-->
  </div>
  <div class="clear"> </div>
</div>
<!-- #include file="include/foot.html" -->
</body>
</html>
