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.             </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('module.do?method=addInput&parentId=${moduleForm.parentId}','addModule',600,200);">添加模块信息</a>
  48.             <a href="module.do?parentId=0">返回</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="15%" height="37" align="center"><B>模块名称</B></td>
  63.       <td width="15%" height="37" align="center"><b>模块编号</b></td>
  64.       <td width="15%" height="37" align="center"><b>父模块名称</b></td>
  65.       <td width="30%" height="37" align="center"><b>模块地址</b></td>
  66.       <td width="8%" height="37" align="center"><b>排序号</b></td>
  67.               <td width="12%" height="37" align="center"><b>操作</b></td>
  68.           </tr>
  69.           <!-- 列表数据栏 -->
  70.           <c:if test="${!empty pm.datas}">
  71.           <c:forEach items="${pm.datas }" var="module">
  72.       <tr bgcolor="#EFF3F7" class="TableBody1" onmouseover="this.bgColor = '#DEE7FF';" onmouseout="this.bgColor='#EFF3F7';">
  73.       <td align="center" vAlign="center">${module.id}</td>
  74.           <td align="center" vAlign="center"><a href="module.do?parentId=${module.id }">${module.name }</a></td>
  75.           <td align="center" vAlign="center">${module.sn }</td>
  76.           <td align="center" vAlign="center">${module.parent.name }</td>
  77.           <td align="center" vAlign="center">${module.url }</td>
  78.           <td align="center" vAlign="center">${module.orderNo }</td>
  79.           <td align="center" vAlign="center">
  80.           <a href="#" onclick="openWin('module.do?method=updateInput&id=${module.id}','addorg',600,200)">更新</a>
  81.           <a href="#" onclick="del('module.do?method=del&id=${module.id}')">删除</a>
  82.           </td>
  83.         </tr>
  84.         </c:forEach>
  85. </c:if>
  86.         <!-- 在列表数据为空的时候,要显示的提示信息 -->
  87.     <c:if test="${empty pm.datas}">
  88.     <tr>
  89.      <td colspan="7" align="center" bgcolor="#EFF3F7" class="TableBody1" onmouseover="this.bgColor = '#DEE7FF';" onmouseout="this.bgColor='#EFF3F7';">
  90.      没有找到相应的记录
  91.      </td>
  92.     </tr>
  93.     </c:if>
  94.       </table>
  95.       <TABLE width="778" border=0 align=center cellPadding=0 cellSpacing=0 borderColor=#ffffff style="FONT-SIZE: 10pt">
  96.         <TBODY>
  97.           <TR>
  98.             <TD height=28 align=right vAlign=center noWrap background=images/list_middle.jpg>&nbsp;&nbsp;
  99.             <!-- 可以在这里插入分页导航条 -->
  100. <pg:pager url="module.do" items="${pm.total }" export="currentPageNumber=pageNumber">
  101. <pg:param name="parentId"/>
  102. <pg:first>
  103. <a href="${pageUrl}">首页</a>
  104. </pg:first>
  105. <pg:prev>
  106. <a href="${pageUrl }">前页</a>
  107. </pg:prev>
  108. <pg:pages>
  109. <c:choose>
  110. <c:when test="${currentPageNumber eq pageNumber }">
  111. <font color="red">${pageNumber }</font>
  112. </c:when>
  113. <c:otherwise>
  114. <a href="${pageUrl }">${pageNumber }</a>
  115. </c:otherwise>
  116. </c:choose>
  117. </pg:pages>
  118. <pg:next>
  119. <a href="${pageUrl }">后页</a>
  120. </pg:next>
  121. <pg:last>
  122. <a href="${pageUrl }">尾页</a>
  123. </pg:last>
  124. </pg:pager>
  125.      </TD>
  126.           </TR>
  127.         </TBODY>
  128.       </TABLE>
  129. </center>
  130. </body>
  131. </html>