VoteList.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:5k
- <%@ 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); %>
- <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" src="/js/changestyle.js"></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">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="50" valign="top" background="../images/dy-back.gif">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr valign="middle">
- <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
- <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">信息中心</font></strong></td>
- <td align="right" nowrap="nowrap" valign="bottom">
- <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59"> -->
- <!--单增<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59"> -->
- <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59"> -->
- <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59"> -->
- <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59"> -->
- <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79"> -->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table><br>
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <table width="90%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="left" valign="top">
- <table width="90%" border="0" cellpadding="0" cellspacing="0">
- <tr align="center" valign="middle">
- <th nowrap colspan=2 align="left"><font color="#000000">投 票 列 表:</font></th>
- </tr>
- <tr><td> </td>
- </tr>
- </table>
- <%
- Request m_request = new Request(request);
- int iSysDirID = m_request.GetInt("SysDirID");
- int iPageSize = 18;
- int iPage = m_request.GetInt("Page");
- Vector vt = VoteManager.getUsefullRecordBySysDirID(iSysDirID);
- if(iPage<1)iPage=1;
- int iPageCount = StringNew.getPageCount(vt.size(),iPageSize);
- if(iPage>iPageCount) iPage=1;
- for(int i=(iPage-1)*iPageSize;i<vt.size()&&i<iPage*iPageSize;i++)
- {
- String strID = ((Vector)vt.get(i)).get(0).toString();
- out.println("<li><a title="" + ((Vector)vt.get(i)).get(1).toString() + "" href="ShowVote.jsp?SysDirID=" + iSysDirID + "&ID=" + strID + "" target="_blank"><font color="#0A0A0A">" + ((Vector)vt.get(i)).get(1).toString() + "</font></a>");
- out.println("(有效票" + ((Vector)vt.get(i)).get(6).toString() + "票)</li>");
- }
- %>
- </td>
- </tr>
- <tr><td> </td></tr>
- <tr>
- <th align="center" valign="top">
- <%
- String strCurrentPageURL = request.getRequestURI();
- if(iPage<2)
- out.print("首页 上页");
- else
- out.print("<a href=""+ strCurrentPageURL+"?SysDirID=" + iSysDirID + "&Page=" + 1 + "">首页</a> <a href=""+ strCurrentPageURL+"?SysDirID=" + iSysDirID + "&Page=" + (iPage-1) + "">上页</a>");
- out.print(" 当前是第" + iPage + "页,共" + vt.size() + "条记录" + iPageCount + "页 ");
- if(iPage>=iPageCount)
- out.print("下页 末页");
- else
- out.print("<a href=""+ strCurrentPageURL+"?SysDirID=" + iSysDirID + "&Page=" + (iPage+1) + "">下页</a> <a href=""+ strCurrentPageURL+"?SysDirID=" + iSysDirID + "&Page=" + iPageCount + "">末页</a>");
- %>
- </th>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </body>
- </html>