ArticleList.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); %>
- <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"><p> </p>
- <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>
- <table width="90%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="left" valign="top">
- <%
- Request m_request = new Request(request);
- int iSysDirID = m_request.GetInt("SysDirID");
- int iPageSize = 18;
- int iPage = m_request.GetInt("Page");
- Vector vt = ArticleManager.getRecordBySysDirIDWithSub(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="ShowArticle.jsp?SysDirID=" + iSysDirID + "&ID=" + strID + "" target="_blank"><font color="#0A0A0A">" + ((Vector)vt.get(i)).get(1).toString() + "</font></a>");
- out.println("(" + StringNew.GetDateString(((Vector)vt.get(i)).get(5).toString(),"MM月dd日") + ")</li>");
- }
- %>
- </td>
- <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>