EditVoteOption.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:3k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <%
- Request m_request = new Request(request);
- int intVoteOptionID = m_request.GetInt("ID");
- int iVoteID = m_request.GetInt("VoteID");
- int iSysDirID = m_request.GetInt("SysDirID");
- if(intVoteOptionID<1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的投票选项,修改失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- Vector vt = VoteOptionManager.getRecordByID(intVoteOptionID);
- if(vt.size()==1)
- {
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>投票选项管理-- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" type="text/javascript">
- function checkEditVoteOption()
- {
- if(document.editvoteoption.OptionContent.value=="")
- {
- alert("请输入选项内容!");
- document.editvoteoption.OptionContent.focus();
- return false;
- }
- }
- </script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <form name="editvoteoption" action="EditVoteOptionAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkEditVoteOption();">
- <table border="0" cellpadding="0" cellspacing="0" width="90%">
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">选项内容:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="ID" type="hidden" Value="<%=intVoteOptionID%>">
- <input name="VoteID" type="hidden" Value="<%=iVoteID%>">
- <input name="OptionContent" type="text" maxlength="255" size="25" Value="<%=((Vector)vt.get(0)).get(2).toString()%>">
- <input name="Times" type="hidden" Value="<%=((Vector)vt.get(0)).get(3).toString()%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A"> </font></td>
- <td align="left" valign="middle" nowrap>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td align="left" valign="middle" nowrap>
- <input type="submit" value="修改"> <input type="reset" value="重填"> <input type="button" value="返回" onclick="window.location='VoteOptionManage.jsp?SysDirID=<%=iSysDirID%>&VoteID=<%=m_request.GetInt("VoteID")%>';">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- %>