<%@page import="com.zky.pojo.MyUtils"%>
<%@include file="/auth.jsp"%>
<%@page import="com.zky.manager.Util" %>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
	HashFmlBuf bufInfo=(HashFmlBuf)request.getAttribute("by_WjtjId");
    int rowcount1 = bufInfo.getRowCount();
%>
<!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>
<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;
    text-align:center;
}
.partone{ font-family:宋体; font-size:14px; font-weight:bolder;}
.main{ font-family:宋体; font-size:14px; text-align:center;}
table{border-collapse:collapse; cellspacing:0px;cellpadding:0px;text-align: center;}
</style>
</head>
<body>
<div class="bt" >
<br />
<h1 style="font-size: 25px;"><%= bufInfo.fget("DEPARTNAME",0)%>涉密文件信息表</h1>
</div>
<div>
<table width="740" border="0" >
  <tr>
    <td width="8%" class="partone">单位:</td>
    <td width="70%" class="partone" align="left"><%=bufInfo.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><%=bufInfo.fget("FRAMEWORKNAME",0)%></td>
     <td><%=bufInfo.fget("AREADEF",0)%></td>
     <td><%=bufInfo.fget("DEPARTNAME",0) %></td>
     <td ><%=rowcount1 %></td>
   </tr>
  </table>
  <table width="740px" border="1" >
	<tr  height="40">
	  <td align="center">文件名称</td>
	  <td align="center">文件号</td>
	  <td align="center">发放人员</td>
	  <td align="center">发放日期</td>
	</tr>
	<%
         HashFmlBuf buf=(HashFmlBuf)request.getAttribute("by_WjtjId");
      if (buf != null) {
	  int rowcount = buf.getRowCount();
	  for (int i=0; i<rowcount; i++) {
	%>
	<tr bgcolor="#FFFFFF" height="40">
	  <td align="center"><%=buf.fget("FILE_NAME",i) %></td>
	  <td align="center"><%=buf.fget("FILE_NUM",i) %></td>
	  <td align="center"><%=buf.fget("PROVIDE_STAFFID",i) %></td>
	  <td align="center"><%=buf.fget("PROVIDE_DATE",i) %></td>
	</tr>
       <%
      }
       %>		
       <%
      }
       %>	
   </table>	
   <table width="740" align="center">
		<tr align="center" height="60" valign="middle">
		<td>
		<%@include file="/print/print.jsp"%>
		</td>
		</tr>
	</table>
</div>
</body>
</html>