<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="companyphoto.aspx.cs" Inherits="YCHR.Web.hr.companyphoto" %>
<!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" />
<link rel="stylesheet" href="<%=config.templatetheme%>/js/jquery.uploadify/uploadify.css" />
<script language="JavaScript" src="<%=config.templatetheme%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=config.templatetheme%>/js/jquery.uploadify/swfobject.js"></script>
<script type="text/javascript" src="<%=config.templatetheme%>/js/jquery.uploadify/jquery.uploadify.js"></script>
<script>
        $(document).ready(function () {
            $("#uploadify").uploadify({
                'uploader': '<%=config.templatetheme%>/js/jquery.uploadify/uploadify.swf',
                'script': '/ajax/imageHandler.ashx?uid=<%=uid %>',
                'cancelImg': '<%=config.templatetheme%>/js/jquery.uploadify/cancel.png',
                'folder': '/upload/companyphtoto/<%=companyid %>',
                'buttonText': 'SELECT Pic',
                'buttonImg': '<%=config.templatetheme%>/images/member/browse.jpg',  
                'fileExt': '*.jpg;*.gif,*.png',                 //允许上传的文件格式为*.jpg,*.gif,*.png
                'fileDesc': 'Web Image Files(.JPG,.GIF,.PNG)',  //过滤掉除了*.jpg,*.gif,*.png的文件
                'queueID': 'fileQueue',             
                'sizeLimit': '2048000',                         //最大允许的文件大小为2M
                'auto': false,                                  //需要手动的提交申请
                'multi': true,                                 //一次只允许上传一张图片
                'onCancel': funCancel,                          //当用户取消上传时
                'onComplete': funComplete,                      //完成上传任务
                'OnError': funError                             //上传发生错误时
            });
        });

        //用户取消函数
        function funCancel(event, ID, fileObj, data) {
            alert('您取消了操作');
            return;
        }

        //图片上传发生的事件
        function funComplete(event, ID, fileObj, response, data) {
            if (response == 0)
            {
                alert('图片' + fileObj.name + '操作失败');
                return;
            }
            $("#pic").attr("src", "UploadFile/" + response).height(150).width(300);       
            return;
        }

        //上传发生错误时。
        function funError(event, ID, fileObj, errorObj) {
            alert(errorObj.info);
            return;
        }
    </script>
<style>
<!--
.yingye_tab {
	margin:12px 27px 0 24px;
	line-height:30px
}
.yingye_tab li {
	float:left;
	display:inline;
	margin:12px 2px 0 15px;
	border:1px solid #dedede;
	width:148px;
	height:178px;
	padding:6px;
}
.yingye_tab li p {
	display:table-cell;
	width:148px;
	height:124px;
	line-height:124px;
	border:1px solid #dedede;
	vertical-align:middle;
	text-align:center;
*display: block;
*font-size: 115px;
*font-family:Arial;
}
.yingye_tab li p img {
	vertical-align:middle;
	max-width:140px;
	max-height:110px;
width:expression(this.width>140&&this.width>this.height?140:this);
height:expression(this.height>110?110:this);
}
.yingye_tab .td1 {
	background:#f2f2f2;
	height:24px;
	line-height:24px;
	position:relative;
	border:none
}
.btn_xc, .btn_xc2, .btn_xc3 {
	display:inline-block;
	background:url(<%=config.templatetheme%>/images/member/bg_xc.gif) right -71px;
	width:68px;
	height:29px;
	line-height:24px;
	border:none;
	margin:0 6px;
	text-align:center; color:#fff;
}
.btn_xc2 {
	height:25px;
	background-position:0 0;
	width:84px;
	overflow:hidden;
	text-indent:-2000em
}
.btn_xc3 {position:absolute; left:100px; top:0px;
	height:25px;
	background-position:right 0;
	width:84px;
	overflow:hidden;
	text-indent:-2000em
}
.yingye_tab .td2 {
	clear:both;
	margin-top:10px;
	border:1px solid #fae3ad;
	padding:10px;
	line-height:24px;
	background:#fffdf1;
	height:100%
}

-->
</style>
</head>
<body>
<form id="form1" runat="server">
  <!--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">企业标志</a></dd>
        <dd> <a href="Companyphoto.aspx" class="now">企业相册</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><a href="Companylogo.aspx">企业标志</a></li>
          <li class="cu"><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_tab" id="photoadd" runat="server" visible="false">
        <div class="td1"> <a href="Companyphoto.aspx" class="btn_xc"><font color="#FFFFFF">上传照片</font></a> <a href="Companyphoto.aspx?action=list">相册管理</a></div>
        <div class="td2">
          <p> ◇ 温馨提示：一次可最多上传5张图片，如需上传更多，重复操作即可。</p>
          <p> ◇ 图片支持jpg、png、gif格式，图片大小不超过2MB（2048K），若上传的图片过大，我们会对图片进行缩小处理。</p>
          <p class="ft_red"> ◇ 企业相册可选择展示员工风采、办公环境或团队活动等企业的宣传照片。不得利用企业相册进行以营销为目的的产品宣传，若发现此类违规照片，我们有权作删除处理。</p>
        </div>
        <div class="h5px"></div>
        <p style="margin:10px; position:relative;">
          <input type="file" name="uploadify" id="uploadify" />
          <a href="javascript:$('#uploadify').uploadifyUpload()" class="btn_xc3">上传照片</a></p>
        <div id="fileQueue"> </div>
      </div>
      <div class="yingye_tab" id="photolist" runat="server">
        <div class="td1"> <a href="Companyphoto.aspx" >上传照片</a><a href="Companyphoto.aspx?action=list" class="btn_xc"><font color="#FFFFFF">相册管理</font></a></div>
        <ul>
          <asp:Repeater ID="replist" runat="server" onitemcommand="replist_ItemCommand">
            <ItemTemplate>
              <li>
                <p><img src="/upload/companyphtoto/<%=companyid %>/<%#Eval("photo")%>" /></p>
                 
                <h5><em>
                  <asp:LinkButton runat="server" CssClass="blue" ID="lbtDelete" CommandArgument='<%# Eval("photo")%>'   CommandName="Delete" Text="删除"></asp:LinkButton>
                  &nbsp;&nbsp;&nbsp;&nbsp;</em><span >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%#Eval("state").ToString()=="0"?"<font color='red'>未审核</font>":"已审核"%></span>  </h5>
              </li>
            </ItemTemplate>
          </asp:Repeater>
        </ul>
      </div>
      <div class="clear"> </div>
      <br />
      <br />
      <!--content-->
    </div>
    <div class="clear"> </div>
  </div>
  <!-- #include file="include/foot.html" -->
</form>
</body>
</html>
