<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>人员简历信息管理</title>
	<meta name="decorator" content="default"/>
	<style type="text/css">
		img{width: 50px;height: 50px;}
	</style>
	<script type="text/javascript">
        $(function(){
//            $("img").not(".upload_ico").each(function () {
//                var num = 1 ;
//                $(this).click(function () {
//                    var flag = num%2;
//                    if(flag == 1){
//                        $(this).css("width","90%");
//                        $(this).css("height","90%");
//                        num++;
//                    }else if(flag ==0){
//                        $(this).css("width","50px");
//                        $(this).css("height","50px");
//                        num++;
//                    }
//                })
//            });
        });

	</script>
</head>
<body class="hideScroll">
		<form:form id="inputForm" modelAttribute="userInfo" class="form-horizontal">
		<table class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
		   <tbody>
			   <tr>
				   <td class="width-15 active"><label class="pull-right">姓名：</label></td>
				   <td class="width-35">
						   ${userInfo.name}
				   </td>
				   <td class="width-15 active"><label class="pull-right">性别：</label></td>
				   <td class="width-35">
						   ${fns:getDictLabel(userInfo.gender,'sex' ,'' )}
				   </td>
			   </tr>
			   <tr>
				   <td class="width-15 active"><label class="pull-right">昵称：</label></td>
				   <td class="width-35">
						   ${userInfo.nickName}
				   </td>
				   <td class="width-15 active"><label class="pull-right">工号：</label></td>
				   <td class="width-35">
						   ${userInfo.jobNumber}
				   </td>
			   </tr>
			   <tr>
				   <td class="width-15 active"><label class="pull-right">联系电话：</label></td>
				   <td class="width-35">
						   ${userInfo.mobilePhone}
				   </td>
				   <td class="width-15 active"><label class="pull-right">电子邮件：</label></td>
				   <td class="width-35">
						   ${userInfo.email}
				   </td>
			   </tr>
			   <tr>
				   <td class="width-15 active"><label class="pull-right">个人简介：</label></td>
				   <td class="width-35" colspan="3">
						   ${userInfo.personalProfile}
				   </td>
			   </tr>
			   <tr>
				   <td class="width-15 active"><label class="pull-right">备注信息：</label></td>
				   <td class="width-35" colspan="3">
						   ${userInfo.remarks}
				   </td>
			   </tr>
			   <tr>
				   <td class="width-15 active"><label class="pull-right">简历：</label></td>
				   <td class="width-35" colspan="3">
					   <div>
						   <div style="float:left; height: 100%; width: 100%; ">
							   <table id="listFile"  style="text-align: center;width: 100%;margin-top:10px;"  class="table table-striped table-bordered table-condensed" >
								   <tr>
									   <%--<td>序号</td>--%><td>文件名</td><td>上传人</td><td>上传时间</td><td>操作</td>
								   </tr>
								   <tr>
									   <c:if test="${not empty userInfo.user.jobResume.id}">
										 <%--  <td>1</td>--%>
										   <c:choose>
											   <c:when test="${fn:containsIgnoreCase(userInfo.user.jobResume.attachmentName,'jpg')
															   or fn:containsIgnoreCase(userInfo.user.jobResume.attachmentName,'png')
															   or fn:containsIgnoreCase(userInfo.user.jobResume.attachmentName,'gif')
															   or fn:containsIgnoreCase(userInfo.user.jobResume.attachmentName,'jpeg')}">
												   <td><img src="${userInfo.user.jobResume.url}" onclick="openDialogView(' ','${ctx}/sys/picturepreview/picturePreview?url=${userInfo.user.jobResume.url}','860px','600px')" width="50" height="50" alt="${userInfo.user.jobResume.attachmentName}"/></td>
											   </c:when>
											   <c:otherwise>
												   <c:choose>
													   <c:when test="${fn:containsIgnoreCase(userInfo.user.jobResume.attachmentName,'pdf')}">
														   <td><a href="javascript:void(0)" onclick="preview('预览','${userInfo.user.jobResume.url}','80%','80%','1')">
															   <span title="${userInfo.user.jobResume.attachmentName}">${fns:abbr(userInfo.user.jobResume.attachmentName, 30)}</span></a></td>
													   </c:when>
													   <c:otherwise>
														   <td><a href="javascript:void(0)" onclick="preview('预览','${userInfo.user.jobResume.url}','80%','80%')">
															   <span title="${userInfo.user.jobResume.attachmentName}">${fns:abbr(userInfo.user.jobResume.attachmentName, 30)}</span></a></td>
													   </c:otherwise>
												   </c:choose>
											   </c:otherwise>
										   </c:choose>
										   <td>${userInfo.user.jobResume.attachmentUser}</td>
										   <td><fmt:formatDate value="${userInfo.user.jobResume.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
										   <td>
											   <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${userInfo.user.jobResume.url}');" class="btn btn-success btn-xs">下载</a>
											   <%--<a href="${ctx}/workfullmanage/workFullManage/downLoadAttach?file=${userInfo.user.jobResume.url}" class="btn btn-success btn-xs">下载</a>--%>
										   </td>
									   </c:if>
								   </tr>
							   </table>
						   </div>
					   </div>
				   </td>
			   </tr>
		 	</tbody>
		</table>
	</form:form>
</body>
</html>