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

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.             </TD>
  37.             <TD height=14 align="left" vAlign=center noWrap>
  38.             <% 
  39.             /**
  40.             * 在这里定义“添加”,“查询”等按钮
  41.             * <input type="image" name="find" value="find" src="images/cz.gif">
  42.             * &nbsp;&nbsp;&nbsp;&nbsp; 
  43.             * <a href="#" onClick="openWin('document.do?method=addInput','470')">
  44.             * <img src="images/addpic.gif" border=0 align=absMiddle style="CURSOR: hand"></a>
  45.             */
  46.             %>
  47.             <a href="#" onclick="openWin('org.do?method=addInput&parentId=${orgForm.parentId}','addOrg',600,200);">添加机构信息</a>
  48.             <a href="org.do?parentId=${ppid}">返回</a>
  49.             </TD>
  50.           </TR>
  51.           <TR>
  52.             <TD height=28 colspan="2" align=right vAlign=center noWrap background=images/list_middle.jpg>&nbsp;&nbsp;
  53.             <!-- 可以在这里插入分页导航条 -->
  54.             </TD>
  55.           </TR>
  56.         </TBODY>
  57.       </TABLE>
  58.       <table width="778" border="0" cellPadding="0" cellSpacing="1" bgcolor="#6386d6">
  59.           <!-- 列表标题栏 -->
  60.       <tr bgcolor="#EFF3F7" class="TableBody1">
  61.       <td width="5%" height="37" align="center"><b>序号</b></td>
  62.       <td width="18%" height="37" align="center"><B>机构名称</B></td>
  63.       <td width="18%" height="37" align="center"><b>机构编号</b></td>
  64.       <td width="18%" height="37" align="center"><b>父机构名称</b></td>
  65.               <td width="18%" height="37" align="center"><b>相关操作</b></td>
  66.           </tr>
  67.           <!-- 列表数据栏 -->
  68.           <c:if test="${!empty pm.datas}">
  69.           <c:forEach items="${pm.datas }" var="org">
  70.       <tr bgcolor="#EFF3F7" class="TableBody1" onmouseover="this.bgColor = '#DEE7FF';" onmouseout="this.bgColor='#EFF3F7';">
  71.       <td align="center" vAlign="center">${org.id }</td>
  72.           <td align="center" vAlign="center"><a href="org.do?parentId=${org.id }">${org.name }</a></td>
  73.           <td align="center" vAlign="center">${org.sn }</td>
  74.           <td align="center" vAlign="center">${org.parent.name }</td>
  75.           <td align="center" vAlign="center">
  76.           <a href="#" onclick="del('org.do?method=del&id=${org.id }');">删除</a></td>
  77.         </tr>
  78.         </c:forEach>
  79. </c:if>
  80.         <!-- 在列表数据为空的时候,要显示的提示信息 -->
  81.     <c:if test="${empty pm.datas}">
  82.     <tr>
  83.      <td colspan="7" align="center" bgcolor="#EFF3F7" class="TableBody1" onmouseover="this.bgColor = '#DEE7FF';" onmouseout="this.bgColor='#EFF3F7';">
  84.      没有找到相应的记录
  85.      </td>
  86.     </tr>
  87.     </c:if>
  88.       </table>
  89.       <TABLE width="778" border=0 align=center cellPadding=0 cellSpacing=0 borderColor=#ffffff style="FONT-SIZE: 10pt">
  90.         <TBODY>
  91.           <TR>
  92.             <TD height=28 align=right vAlign=center noWrap background=images/list_middle.jpg>&nbsp;&nbsp;
  93.             <!-- 可以在这里插入分页导航条 -->
  94. <pg:pager url="org.do" items="${pm.total }" export="currentPageNumber=pageNumber">
  95. <pg:param name="parentId"/>
  96. <pg:first>
  97. <a href="${pageUrl}">首页</a>
  98. </pg:first>
  99. <pg:prev>
  100. <a href="${pageUrl }">前页</a>
  101. </pg:prev>
  102. <pg:pages>
  103. <c:choose>
  104. <c:when test="${currentPageNumber eq pageNumber }">
  105. <font color="red">${pageNumber }</font>
  106. </c:when>
  107. <c:otherwise>
  108. <a href="${pageUrl }">${pageNumber }</a>
  109. </c:otherwise>
  110. </c:choose>
  111. </pg:pages>
  112. <pg:next>
  113. <a href="${pageUrl }">后页</a>
  114. </pg:next>
  115. <pg:last>
  116. <a href="${pageUrl }">尾页</a>
  117. </pg:last>
  118. </pg:pager>
  119.      </TD>
  120.           </TR>
  121.         </TBODY>
  122.       </TABLE>
  123. </center>
  124. </body>
  125. </html>