ModuleManage.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:7k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <%
  5. Vector vt = ModuleManager.getAllRecord();
  6. %>
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  10. <title>功能模块管理-- GForce OA 2.0</title>
  11. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  12. <script language="JavaScript" src="/js/changestyle.js"></script>
  13. <script language="JavaScript" type="text/javascript">
  14. function checkaddmodule()
  15. {
  16.     if(document.addmodule.ModuleName.value=='')
  17.     {
  18.         alert("请输入功能模块名称!");
  19.         document.addmodule.ModuleName.focus();
  20.         return false;
  21.     }
  22. }
  23. </script>
  24. </head>
  25. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  26.    <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  27.     <tr>
  28.     <td align="center" valign="top">
  29.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  30.         <tr>
  31.           <td height="50" valign="top" background="../images/dy-back.gif">
  32.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  33.               <tr valign="middle">
  34.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  35.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">系统功能模块管理
  36. </font></strong></td>
  37.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  38.                    <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59">&nbsp;-->
  39.                   <!--单增<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59">&nbsp;-->
  40.                   <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59">&nbsp;-->
  41.                   <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59">&nbsp;-->
  42.                   <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59">&nbsp;-->
  43.                   <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79">&nbsp;-->
  44.                 </td>
  45.               </tr>
  46.             </table>
  47.           </td>
  48.         </tr>
  49.       </table>
  50. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  51.     <tr>
  52.         <td align="center" valign="top"><p>&nbsp;</p>
  53.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  54.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  55.                     <th width="6%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  56.                     <th width="8%" nowrap><font color="#000000">序号</font></th>
  57.                     <th width="55%" nowrap><font color="#000000">功能模块名称</font></th>
  58.                     <th width="11%" nowrap><font color="#000000">添加</font></th>
  59.                     <th width="11%" nowrap><font color="#000000">修改</font></th>
  60.                     <th width="12%" nowrap><font color="#000000">删除</font></th>
  61.                 </tr>
  62.                 <%
  63. for(int i=0;i<vt.size();i++)
  64. {
  65.     String strID = ((Vector)vt.get(i)).get(0).toString();
  66.     if(i % 2 == 0)
  67.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  68.     else
  69.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  70.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  71.     out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  72.     out.println("<td align="left" valign="middle" nowrap  onclick="openeditwindow('RightPageManage.jsp?ModuleID=" + strID + "')" title="在此单击查看、修改该功能模块可访问页面">" + ((Vector)vt.get(i)).get(1).toString() + "</td>");
  73.     out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  74.     out.println("<td align="center" valign="middle" nowrap><a href="EditModule.jsp?ID=" + strID + "">修改</a></td>");
  75.     out.println("<td align="center" valign="middle" nowrap><a href="DelModule.jsp?ID=" + strID + "" onclick="return confirm('您确实要删除该功能模块吗?\n删除该功能模块之前必须删除该功能模块的所有有权页面记录和使用该功能模块的所有用户角色,\n否则会出错,您是否继续?');">删除</a></td>");
  76.     out.println("</tr>");
  77. }
  78. %>
  79.                 <form name="addmodule" action="AddModuleAction.jsp" method="post" onSubmit="javascript:return checkaddmodule();">
  80.                     <tr bgcolor="<%=m_session.GetString("TitleColor")%>">
  81.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  82.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  83.                         <th align="left" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  84.                             <input name="ModuleName" type="text" maxlength="20"></th>
  85.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  86.                             <input type="submit" value="添加"></th>
  87.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  88.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  89.                     </tr>
  90.                 </form>
  91.             </table>
  92.         </td>
  93.     </tr>
  94. </table>
  95. </body>
  96. </html>