<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@page import="com.zky.pojo.MyUtils"%>
<%@page import="com.zky.pub.HashFmlBuf"%>
<!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>涉密人员培训信息</title>
<link href="../../../css/font.css" rel="stylesheet" type="text/css"></link>
<style>
.bt{text-align:center;}
body {
	background-color: #FFF;
    margin:0 auto; width:740px;
}
.partone{ font-family:宋体; font-size:14px; font-weight:bolder;}
.main{float:left; font-family:宋体; font-size:14px; text-align:center;}
table{border-collapse:collapse; cellspacing="0px" cellpadding="0px"}
.maintwo{float:left;font-family:宋体; font-size:14px; text-align:center;}
.footer{float:left;font-family:宋体; font-size:14px; margin-left:500px; margin-top:10px;}
</style>
</head>
<%
          HashFmlBuf buf=(HashFmlBuf)request.getAttribute("SmryTj_info");
        int rowcount1 = buf.getRowCount();
%>
<body>
<div class="bt">
<br />
<h1 style="font-size: 25px;"><%= buf.fget("DEPARTNAME",0)%>人员培训信息表</h1>
</div>
<div>
<table width="740" border="0" >
  <tr>
    <td width="8%" class="partone">单位:</td>
    <td width="70%" class="partone"><%=buf.fget("departname",0) %></td>
    <td width="8%" class="partone" align="right">日期:</td>
    <td width="12%" class="partone" align="right"><%=MyUtils.getDateString() %></td>
  </tr>
</table>
</div>
<div class="main">
 <table width="740px" border="1" >
   <tr height="30" >
     <td >所属地市</td>
     <td >所属区县</td>
     <td >单位名称</td>
     <td >培训次数</td>
   </tr >
    <tr height="30" >
     <td style="border-bottom: none;"><%= buf.fget("FRAMEWORKNAME",0)%></td>
     <td style="border-bottom: none;"><%= buf.fget("AREADEF",0)%></td>
     <td style="border-bottom: none;"><%= buf.fget("DEPARTNAME",0)%></td>
     <td style="border-bottom: none;"><%=rowcount1 %></td>
   </tr>
</table>
<table width="740px" border="1" >
  <tr >
    <td width="100" height="40" >人员姓名</td>
    <td width="100" height="40" >培训类型</td>
    <td width="100"height="40" >培训对象</td>
     <td width="110"height="40" >培训开始时间</td>
     <td width="100" height="40"  >培训结束时间</td>
       <td width="100" height="40"  >培训地点</td>
  </tr>
  <%
  HashFmlBuf buf1=(HashFmlBuf)request.getAttribute("SmryTj_info");
	      if (buf1 != null) {
		    int rowcount = buf1.getRowCount();
		    for (int i=0; i<rowcount; i++) {
		    	String disabled = "";
				String tempTrainid = buf.fget("train_id",i);
				String tempType=buf.fget("train_type", i);
				String tempState=buf.fget("train_state", i);
				String tempSubject=buf.fget("train_subject",i);
				if (tempType.equals("0")) {
					tempType = "资料学习";
					disabled = "";
				} else if(tempType.equals("1")) {
					tempType = "视频学习";
					disabled = "disabled";
			    }else if(tempType.equals("2")) {
						tempType = "音频学习";
						disabled = "disabled";
				 }
				
				if (tempState.equals("0")) {
					tempState = "通过";
					disabled = "";
				} else {
					tempState ="不通过";
					disabled = "disabled";
			    }
				
				if (tempSubject.equals("0")) {
					tempSubject = "涉密文件";
					disabled = "";
				} else if(tempSubject.equals("1")) {
					tempSubject = "涉密设备";
					disabled = "disabled";
			     }else if(tempSubject.equals("2")){
						tempSubject = "涉密资产";
						disabled = "disabled";
			     }else if(tempSubject.equals("3")){
			    	 tempSubject = "涉密人员";
				     disabled = "disabled";
			     }
		    	  %>
   <tr >
    <td height="40"  ><%=buf1.fget("train_name", i) %></td>
    <td><%=tempType %></td>
   	    <td><%=tempSubject %></td>
	    <td><%=buf.fget("train_time", i) %></td>
	    <td><%=buf.fget("train_timeend", i) %></td>
	       <td><%=buf.fget("TRAIN_ADDRESS", i) %></td>
  </tr>
  <%
	      }
  %>
  <%
	      }
  %>
</table>
<br></br>
<table align="center">
   <tr>
    <td><%@include file="/print/print.jsp"%></td>
  </tr>
</table>
 
</div>
</body>
</html>