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

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. Request m_request = new Request(request);
  6. int intVoteOptionID = m_request.GetInt("ID");
  7. int iVoteID = m_request.GetInt("VoteID");
  8. int iSysDirID = m_request.GetInt("SysDirID");
  9. if(intVoteOptionID<1)
  10. {
  11. %>
  12. <script language="JavaScript" type="text/JavaScript">
  13. alert("请选择正确的投票选项,修改失败!");
  14. history.back();
  15. </script>
  16. <%
  17. }
  18. else
  19. {
  20. Vector vt = VoteOptionManager.getRecordByID(intVoteOptionID);
  21. if(vt.size()==1)
  22. {
  23. %>
  24. <html>
  25. <head>
  26. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  27. <title>投票选项管理-- GForce OA 2.0</title>
  28. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  29. <script language="JavaScript" type="text/javascript">
  30. function checkEditVoteOption()
  31. {
  32.     if(document.editvoteoption.OptionContent.value=="")
  33.     {
  34.         alert("请输入选项内容!");
  35.         document.editvoteoption.OptionContent.focus();
  36.         return false;
  37.     }
  38. }
  39. </script>
  40. </head>
  41. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  42. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  43.     <tr>
  44.         <td align="center" valign="top"><p>&nbsp;</p>
  45.             <form name="editvoteoption" action="EditVoteOptionAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkEditVoteOption();">
  46.             <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  47.                 <tr>
  48.                     <td align="right" valign="middle"><font color="#0A0A0A">选项内容:</font></td>
  49.                     <td align="left" valign="middle" nowrap>
  50.                         <input name="ID" type="hidden" Value="<%=intVoteOptionID%>">
  51.                         <input name="VoteID" type="hidden" Value="<%=iVoteID%>">
  52.                         <input name="OptionContent" type="text" maxlength="255" size="25" Value="<%=((Vector)vt.get(0)).get(2).toString()%>">
  53.                         <input name="Times" type="hidden" Value="<%=((Vector)vt.get(0)).get(3).toString()%>">
  54.                     </td>
  55.                 </tr>
  56.                 <tr>
  57.                     <td align="right" valign="middle"><font color="#0A0A0A">&nbsp;</font></td>
  58.                     <td align="left" valign="middle" nowrap>
  59.                    </td>
  60.                 </tr>
  61.                 <tr>
  62.                     <td align="right" valign="middle">&nbsp;</td>
  63.                     <td align="left" valign="middle" nowrap>
  64.                         <input type="submit" value="修改">&nbsp;&nbsp; <input type="reset" value="重填">&nbsp;&nbsp; <input type="button" value="返回" onclick="window.location='VoteOptionManage.jsp?SysDirID=<%=iSysDirID%>&VoteID=<%=m_request.GetInt("VoteID")%>';">
  65.                     </td>
  66.                 </tr>
  67.             </table>
  68.             </form>
  69.         </td>
  70.     </tr>
  71. </table>
  72. </body>
  73. </html>
  74. <%
  75. }
  76. else
  77. {
  78. %>
  79. <script language="JavaScript" type="text/JavaScript">
  80. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  81. history.back();
  82. </script>
  83. <%
  84. }
  85. }
  86. %>