<%@include file="/auth.jsp"%>
<%@page import="com.zky.manager.Util" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%
	HashFmlBuf buf=(HashFmlBuf)request.getAttribute("by_trainId");
%>
<title>人员培训记录表</title>
<style>
body{margin:0 auto; width:700px;}
.mainone{text-align:center;}
.maintwo{text-align:center; font-family:宋体; font-size:14px;}
table{border-collapse:collapse; cellspacing="0px" cellpadding="0px"}
.mainthree{font-family:宋体; font-size:14px;}
.z1{text-align:left; padding-left:30px; padding-top:5px;}
.z2{text-align:right; padding-top:5px; padding-right:5px;}
</style>
</head>
<body>
<div class="mainone">
<h1>人员培训记录表</h1>
</div>
<div class="mainone"><h2>2012年度</h2></div>
<div class="maintwo"><table width="700px" border="1">
  <tr>
    <td width="101" height="30">编号</td>
    <td width="583">
    <%if(buf.fget("train_id",0).equals("")){ %>
    				未填写
    <%}else{ %>
   	<%=buf.fget("train_id",0)%><%} %>
    </td>
  </tr>
  <tr>
    <td height="30">培训对象</td>
    <td>
            <%
             String tempSubject=buf.fget("train_subject",0);
 			if (tempSubject.equals("0")) {
				tempSubject = "涉密文件";
			} else if(tempSubject.equals("1")) {
				tempSubject = "涉密设备";
		     }else if(tempSubject.equals("2")){
					tempSubject = "涉密资产";
		     }else if(tempSubject.equals("3")){
		    	 tempSubject = "涉密工作人员";
		     }
             %>
             <%if(tempSubject.equals("")){ %>
    				未填写
    			<%}else{ %>
   			<%=tempSubject%><%} %>
    </td>
  </tr>
  <tr>
    <td height="30">培训方式</td>
    <td>
     <%
             String tempType=buf.fget("train_type",0);
 			if (tempType.equals("0")) {
				tempType = "资料学习";
			} else if(tempType.equals("1")) {
				tempType = "视频学习";
		    }else if(tempType.equals("2")) {
					tempType = "音频学习";
			 }
             %>
             <%if(tempType.equals("")){ %>
    				未填写
    			<%}else{ %>
   			<%=tempType%><%} %>
    </td>
  </tr>
</table>
</div>
<div class="maintwo">
<table width="700" border="1" style="border-top:none;">
  <tr>
    <td width="100" height="30" style="border-top:none;">培训日期</td>
    <td width="250" style="border-top:none;">
    <%if(buf.fget("train_time",0).equals("")){ %>
    				未填写
    <%}else{ %>
   	<%=buf.fget("train_time",0)%><%} %> 
    </td>
    <td width="91" style="border-top:none;">培训地点</td>
    <td width="231" style="border-top:none;">
    <%if(buf.fget("train_address",0).equals("")){ %>
    				未填写
    <%}else{ %>
   	<%=SM4.SM4Decrypt(Base64.decode(buf.fget("train_address",0)))%><%} %>
    </td>
  </tr>
</table>

</div>
<div class="maintwo">
<table width="700" border="1" style="border-top:none;">
  <tr>
    <td height="30" width="100">授课人</td>
    <td colspan="2">
     <%if(buf.fget("train_name",0).equals("")){ %>
    				未填写
    <%}else{ %>
   	<%=buf.fget("train_name",0)%><%} %> 
    </td>
  </tr>
  <tr>
    <td height="30">考试类型</td>
    <td colspan="2">
    <% 
    String tklxtype=buf.fget("tklxtype",0);
    String tmptklx=tklxtype;
	if (tmptklx.equals("1")) {
		tmptklx = "专业题库";
	} else {
		tmptklx = "基础题库";
	}
    %>
    <%=tmptklx%>
    </td>
  </tr>
  <tr>
    <td height="30">考试时间</td>
    <td colspan="2">
     <%if(buf.fget("RADIODATE",0).equals("")){ %>
    				
    <%}else{ %>
   	<%=buf.fget("RADIODATE",0)%><%} %> 
     </td>
  </tr>
  <tr>
    <td height="30">考试成绩</td>
    <td colspan="2">
    <%if(buf.fget("radioresult",0).equals("") || buf.fget("radioresult1",0).equals("") ){ %>
    				未填写
    <%}else{ %>
   	<%
   	 if (tmptklx.equals("1")) {
   		 %>
   			<%=tmptklx%>:<%=buf.fget("radioresult",0) %>分
   		<%
	} else {
		 %>
			<%=tmptklx%>:<%=buf.fget("radioresult1",0) %>分
		<%
	}
    %>
   	<%} %>
    </td>
  </tr>
    <tr>
    <td height="31" >审 批 人</td>
    <td>
     <%if(buf.fget("empid",0).equals("")){ %>
    				未填写
    <%}else{ %>
    
   	<%=buf.fget("empid",0)%>
   	
   	<%} %> 
   	</td>
    <td height="31"  align="left">日期:
    <%if(buf.fget("TRAIN_DATE",0).equals("")){ %>
    				未填写
    <%}else{ %>
   	<%=buf.fget("TRAIN_DATE",0)%><%} %> 
    </td>
  </tr>
</table><br/>
<%@include file="/print/print.jsp"%>
</div>
</table>
</body>
</html>