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

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin1.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <%
  5. Request m_request = new Request(request);
  6. int iModuleID =m_request.GetInt("ModuleID");
  7. Vector vt = PageRight.getRecordByModuleID(iModuleID);
  8. %>
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  12. <title>模块页面信息管理-- GForce OA 2.0</title>
  13. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  14. <script language="JavaScript" src="/js/changestyle.js"></script>
  15. <script language="JavaScript" type="text/javascript">
  16. function checkaddrightpage()
  17. {
  18.     if(document.addrightpage.PageURL.value=='')
  19.     {
  20.         alert("请输入模块页面URL!");
  21.         document.addrightpage.PageURL.focus();
  22.         return false;
  23.     }
  24. }
  25. </script>
  26. </head>
  27. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  28. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  29.     <tr>
  30.         <td align="center" valign="top"><p>&nbsp;</p>
  31.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  32.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  33.                     <th width="6%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  34.                     <th width="8%" nowrap><font color="#000000">序号</font></th>
  35.                     <th width="52%" nowrap><font color="#000000">模块页面URL</font></th>
  36.                     <th width="11%" nowrap><font color="#000000">添加</font></th>
  37.                     <th width="11%" nowrap><font color="#000000">修改</font></th>
  38.                     <th width="12%" nowrap><font color="#000000">删除</font></th>
  39.                 </tr>
  40.                 <%
  41. for(int i=0;i<vt.size();i++)
  42. {
  43.     String strID = ((Vector)vt.get(i)).get(0).toString();
  44.     if(i % 2 == 0)
  45.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  46.     else
  47.     out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  48.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  49.     out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  50.     out.println("<td align="left" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(1).toString() + "</td>");
  51.     out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  52.     out.println("<td align="center" valign="middle" nowrap><a href="EditRightPage.jsp?ID=" + strID + "&ModuleID=" + iModuleID + "">修改</a></td>");
  53.     out.println("<td align="center" valign="middle" nowrap><a href="DelRightPage.jsp?ID=" + strID + "&ModuleID=" + iModuleID + "" onclick="return confirm('您确实要删除该模块页面吗?');" target="hidden">删除</a></td>");
  54.     out.println("</tr>");
  55. }
  56. %>
  57.                 <form name="addrightpage" action="AddRightPageAction.jsp" method="post" onSubmit="javascript:return checkaddrightpage();" target="hidden">
  58.                     <tr bgcolor="<%=m_session.GetString("TitleColor")%>">
  59.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  60.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  61.                         <th align="left" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  62.                             <input name="PageURL" type="text" maxlength="100" size="40">
  63.                             <input name="ModuleID" value="<%=iModuleID%>" type="hidden">
  64.                         </th>
  65.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  66.                           <input type="submit" value="添加"></th>
  67.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  68.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  69.                     </tr>
  70.                 </form>
  71.             </table>
  72.         </td>
  73.     </tr>
  74. </table>
  75. </body>
  76. </html>