VoteOptionManage.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="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  7. <title>投票选项管理-- GForce OA 2.0</title>
  8. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  9. <script language="JavaScript" src="/js/changestyle.js"></script>
  10. <script language="JavaScript" type="text/javascript">
  11. function checkAddVoteOption()
  12. {
  13.     if(document.addvoteoption.OptionContent.value=="")
  14.     {
  15.         alert("请输入选项内容!");
  16.         document.addvoteoption.OptionContent.focus();
  17.         return false;
  18.     }
  19. }
  20. </script>
  21. </head>
  22. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  23. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  24.     <tr>
  25.         <td align="center" valign="top"><p>&nbsp;</p>
  26. <%
  27. Request m_request = new Request(request);
  28. int intVoteID = m_request.GetInt("VoteID");
  29. int iSysDirID = m_request.GetInt("SysDirID");
  30. Vector vt = VoteOptionManager.getAllRecord(intVoteID);
  31. %>
  32.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  33.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  34.                     <th width="6%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  35.                     <th width="6%" nowrap><font color="#000000">序号</font></th>
  36.                     <th width="30%" nowrap><font color="#000000">选项内容</font></th>
  37.                     <th width="8%" nowrap><font color="#000000">获得票数</font></th>
  38.                     <th width="11%" nowrap><font color="#000000">修改</font></th>
  39.                     <th width="11%" nowrap><font color="#000000">删除</font></th>
  40.                 </tr>
  41. <%
  42. for(int i=0;i<vt.size();i++)
  43. {
  44.     String strID = ((Vector)vt.get(i)).get(0).toString();
  45.     if(i % 2 == 0)
  46.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  47.     else
  48.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  49.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  50.     out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  51.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(2).toString() + "</td>");
  52.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(3).toString() + "</td>");
  53.     out.println("<td align="center" valign="middle" nowrap><a href="EditVoteOption.jsp?SysDirID=" + iSysDirID + "&ID=" + strID + "&VoteID="+intVoteID + "">修改</a></td>");
  54.     out.println("<td align="center" valign="middle" nowrap><a href="DelVoteOption.jsp?SysDirID=" + iSysDirID + "&ID=" + strID + "&VoteID="+intVoteID + "" onclick="return confirm('您确实要删除该投票选项吗?');">删除</a></td>");
  55.     out.println("</tr>");
  56. }
  57. %>
  58.             </table>
  59.             <form name="addvoteoption" action="AddVoteOptionAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkAddVoteOption();">
  60.             <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  61.                 <tr>
  62.                     <td align="right" valign="middle"><font color="#0A0A0A">选项内容:</font></td>
  63.                     <td align="left" valign="middle" nowrap>
  64.                         <input name="VoteID" type="hidden" Value="<%=intVoteID%>">
  65.                         <input name="OptionContent" type="text" maxlength="255" size="25">
  66.                         <input name="Times" type="hidden" Value="0">
  67.                     </td>
  68.                 </tr>
  69.                 <tr>
  70.                     <td align="right" valign="middle"><font color="#0A0A0A">&nbsp;</font></td>
  71.                     <td align="left" valign="middle" nowrap>
  72.                    </td>
  73.                 </tr>
  74.                 <tr>
  75.                     <td align="right" valign="middle">&nbsp;</td>
  76.                     <td align="left" valign="middle" nowrap>
  77.                         <input type="submit" value="添 加" style="background-color: #FFFFFF; border: 1 solid #000000">  &nbsp;&nbsp;&nbsp; <input type="reset" value="重 填" style="background-color: #FFFFFF; border: 1 solid #000000">  &nbsp;&nbsp;&nbsp; <input type="button" value="关 闭" onclick="window.close()" style="background-color: #FFFFFF; border: 1 solid #000000">
  78.                     </td>
  79.                 </tr>
  80.             </table>
  81.             </form>
  82.         </td>
  83.     </tr>
  84. </table>
  85. </body>
  86. </html>