EditRightPage.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 intRightPageId = m_request.GetInt("ID");
  7. int iModuleID = m_request.GetInt("ModuleID");
  8. if(intRightPageId<1)
  9. {
  10. %>
  11. <script language="JavaScript" type="text/JavaScript">
  12. alert("请选择正确的模块页面,修改失败!");
  13. history.back();
  14. </script>
  15. <%
  16. }
  17. else
  18. {
  19. Vector vt = PageRight.getRecordByModuleID(iModuleID);
  20. %>
  21. <html>
  22. <head>
  23. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  24. <title>模块页面管理-- GForce OA 2.0</title>
  25. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  26. <script language="JavaScript" src="/js/changestyle.js"></script>
  27. <script language="JavaScript" type="text/javascript">
  28. function checkeditrightpage()
  29. {
  30.     if(document.editrightpage.PageURL.value=='')
  31.     {
  32.         alert("请输入模块页面URL!");
  33.         document.editrightpage.PageURL.focus();
  34.         return false;
  35.     }
  36. }
  37. </script>
  38. </head>
  39. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  40. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  41.     <tr>
  42.         <td align="center" valign="top"><p>&nbsp;</p>
  43.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  44.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  45.                     <th width="6%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  46.                     <th width="8%" nowrap><font color="#000000">序号</font></th>
  47.                     <th width="52%" nowrap><font color="#000000">模块页面URL</font></th>
  48.                     <th width="11%" nowrap><font color="#000000">添加</font></th>
  49.                     <th width="11%" nowrap><font color="#000000">修改</font></th>
  50.                     <th width="12%" nowrap><font color="#000000">删除</font></th>
  51.                 </tr>
  52.                 <%
  53. for(int i=0;i<vt.size();i++)
  54. {
  55.     String strID = ((Vector)vt.get(i)).get(0).toString();
  56.     if(!strID.equals((intRightPageId + "")))
  57.     {
  58.         if(i % 2 == 0)
  59.             out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  60.         else
  61.             out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  62.         out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  63.         out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  64.         out.println("<td align="left" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(1).toString() + "</td>");
  65.         out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  66.         out.println("<td align="center" valign="middle" nowrap><a href="EditRightPage.jsp?ID=" + strID + "&ModuleID=" + iModuleID + "">修改</a></td>");
  67.         out.println("<td align="center" valign="middle" nowrap><a href="DelRightPage.jsp?ID=" + strID + "&ModuleID=" + iModuleID + "" onclick="return confirm('您确实要删除该模块页面吗?');" target="hidden">删除</a></td>");
  68.         out.println("</tr>");
  69.     }
  70.     else
  71.     {
  72. %>
  73.                 <form name="editrightpage" action="EditRightPageAction.jsp" method="post" onSubmit="javascript:return checkeditrightpage();" target="hidden">
  74.                     <tr bgcolor="<%=m_session.GetString("TitleColor")%>">
  75.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  76.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>"><%=(i+1)+""%><input type="hidden" name="ID" value="<%=strID%>"></th>
  77.                         <th align="left" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  78.                           <input name="PageURL" type="text"  maxlength="100" size="40" Value="<%=((Vector)vt.get(i)).get(1).toString()%>">
  79.                           <input name="ModuleID" value="<%=iModuleID%>" type="hidden">
  80.                         </th>
  81.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  82.                             <input type="button" value="返回" onclick="location='RightPageManage1.jsp?ModuleID=<%=iModuleID%>'"></th>
  83.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>"><input type="submit" value="修改"></th>
  84.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>"><a href="DelRightPage.jsp?ID=<%=strID%>&ModuleID=<%=iModuleID%>" onclick="return confirm('您确实要删除该模块页面吗?');">删除</a></th>
  85.                     </tr>
  86.                 </form>
  87. <%
  88.     }
  89. }
  90. %>
  91.             </table>
  92.         </td>
  93.     </tr>
  94. </table>
  95. </body>
  96. </html>
  97. <%
  98. }
  99. %>