index.jsp
上传用户:kimgenplus
上传日期:2016-06-05
资源大小:20877k
文件大小:6k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page language="java" contentType="text/html; charset=GB18030"
  2.     pageEncoding="GB18030"%>
  3. <%@include file="/common/common.jsp" %>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=GB18030">
  7. <link href="style/oa.css" rel="stylesheet" type="text/css">
  8. <script language="javascript" src="script/public.js"></script>
  9. <title>公文管理</title>
  10. </head>
  11. <BODY bgColor=#dee7ff leftMargin=0 background="" topMargin=0 marginheight="0" marginwidth="0">
  12. <center>
  13.       <TABLE width="778" border=0 cellPadding=0 cellSpacing=0 borderColor=#ffffff bgColor=#dee7ff style="FONT-SIZE: 10pt">
  14.         <TBODY>
  15.           <TR height=35>
  16.             <TD align=middle width=20 background=images/title_left.gif 
  17.           bgColor=#dee7ff></TD>
  18.             <TD align=middle width=120 background=images/title_left.gif 
  19.           bgColor=#dee7ff><FONT color=#f7f7f7> 我的公文管理<font color="#FFFFFF">&nbsp;</font></FONT> </TD>
  20.             <TD align=middle width=11 background=images/title_middle.gif 
  21.           bgColor=#dee7ff><FONT color=#f7f7f7>&nbsp;</FONT> </TD>
  22.             <TD align=middle background=images/title_right.gif 
  23.           bgColor=#dee7ff><FONT color=#f7f7f7>&nbsp;</FONT> </TD>
  24.           </TR>
  25.         </TBODY>
  26.       </TABLE>
  27.       <TABLE width="778" border=0 align=center cellPadding=0 cellSpacing=0 borderColor=#ffffff style="FONT-SIZE: 10pt">
  28.         <TBODY>
  29.           <TR>
  30.             <TD width="82%" height=14 align=right vAlign=center noWrap>
  31.             </TD>
  32.             <TD width="18%" align=right vAlign=center noWrap> </TD>
  33.           </TR>
  34.           <TR>
  35.             <TD height=14 align=right vAlign=center noWrap>
  36.              <!-- 在这里插入查询表单 -->
  37.              【我的公文】 
  38.              <a href="document.do?method=approvingList">待审公文</a> 
  39.              <a href="document.do?method=approvedList">已审公文</a>
  40.             </TD>
  41.             <TD height=14 align="left" vAlign=center noWrap>
  42.             <% 
  43.             /**
  44.             * 在这里定义“添加”,“查询”等按钮
  45.             * <input type="image" name="find" value="find" src="images/cz.gif">
  46.             * &nbsp;&nbsp;&nbsp;&nbsp; 
  47.             * <a href="#" onClick="openWin('document.do?method=addInput','470')">
  48.             * <img src="images/addpic.gif" border=0 align=absMiddle style="CURSOR: hand"></a>
  49.             */
  50.             %>
  51.             | <a href="#" onclick="openWin('document.do?method=selectFlow','selectFlow',600,200);">添加公文信息</a>
  52.             </TD>
  53.           </TR>
  54.           <TR>
  55.             <TD height=28 colspan="2" align=right vAlign=center noWrap background=images/list_middle.jpg>&nbsp;&nbsp;
  56.             <!-- 可以在这里插入分页导航条 -->
  57.             </TD>
  58.           </TR>
  59.         </TBODY>
  60.       </TABLE>
  61.       <table width="778" border="0" cellPadding="0" cellSpacing="1" bgcolor="#6386d6">
  62.           <!-- 列表标题栏 -->
  63.       <tr bgcolor="#EFF3F7" class="TableBody1">
  64.       <td width="15%" height="37" align="center"><b>公文名称</b></td>
  65.       <td width="15%" height="37" align="center"><B>公文描述</B></td>
  66.       <td width="15%" height="37" align="center"><B>创建时间</B></td>
  67.       <td width="15%" height="37" align="center"><B>公文状态</B></td>
  68.       <td width="8%" height="37" align="center"><B>流程名称</B></td>
  69.       <td width="7%" height="37" align="center"><B>附件</B></td>
  70.       <td width="15%" height="37" align="center"><B>审批历史</B></td>
  71.               <td width="10%" align="center"><b>相关操作</b></td>
  72.           </tr>
  73.           <!-- 列表数据栏 -->
  74.           <c:if test="${!empty pm.datas}">
  75.           <c:forEach items="${pm.datas }" var="document">
  76.       <tr bgcolor="#EFF3F7" class="TableBody1" onmouseover="this.bgColor = '#DEE7FF';" onmouseout="this.bgColor='#EFF3F7';">
  77.       <td align="center" vAlign="center">${document.title}</td>
  78.           <td align="center" vAlign="center">${document.description }</td>
  79.           <td align="center" vAlign="center">${document.createTime }</td>
  80.           <td align="center" vAlign="center">${document.status }</td>
  81.           <td align="center" vAlign="center">${document.workflow.name }
  82.           </td>
  83.           <td align="center" vAlign="center">
  84.           <c:if test="${!empty document.content }">
  85.           <a href="document.do?method=download&id=${document.id}">下载</a>
  86.           </c:if>
  87.           </td>
  88.           <td align="center" vAlign="center"><a href="#" onclick="openWin('document.do?method=approvedHistory&id=${document.id}')">查看</a></td>
  89.           <td align="center" vAlign="center">
  90.           <c:if test="${document.status eq '新建' }">
  91.           <a href="#" onclick="openWin('document.do?method=submitInput&id=${document.id}')">提交</a>
  92.           <a href="#" onclick="del('document.do?method=del&id=${document.id}')">删除</a>
  93.           </c:if>
  94.           </td>
  95.         </tr>
  96.         </c:forEach>
  97. </c:if>
  98.         <!-- 在列表数据为空的时候,要显示的提示信息 -->
  99.     <c:if test="${empty pm.datas}">
  100.     <tr>
  101.      <td colspan="7" align="center" bgcolor="#EFF3F7" class="TableBody1" onmouseover="this.bgColor = '#DEE7FF';" onmouseout="this.bgColor='#EFF3F7';">
  102.      没有找到相应的记录
  103.      </td>
  104.     </tr>
  105.     </c:if>
  106.       </table>
  107.       <TABLE width="778" border=0 align=center cellPadding=0 cellSpacing=0 borderColor=#ffffff style="FONT-SIZE: 10pt">
  108.         <TBODY>
  109.           <TR>
  110.             <TD height=28 align=right vAlign=center noWrap background=images/list_middle.jpg>&nbsp;&nbsp;
  111.             <!-- 可以在这里插入分页导航条 -->
  112. <pg:pager items="${pm.total }" url="document.do" export="currentPageNumber=pageNumber">
  113. <pg:first><a href="${pageUrl}">首页</a></pg:first>
  114. <pg:prev><a href="${pageUrl }">前页</a></pg:prev>
  115. <pg:pages>
  116. <c:choose>
  117. <c:when test="${ currentPageNumber eq pageNumber}">
  118. <font color="red">${pageNumber}</font>
  119. </c:when>
  120. <c:otherwise>
  121. <a href="${pageUrl }">${pageNumber }</a>
  122. </c:otherwise>
  123. </c:choose>
  124. </pg:pages>
  125. <pg:next><a href="${pageUrl }">下页</a></pg:next>
  126. <pg:last><a href="${pageUrl }">尾页</a></pg:last>
  127. </pg:pager>            
  128.      </TD>
  129.           </TR>
  130.         </TBODY>
  131.       </TABLE>
  132. </center>
  133. </body>
  134. </html>