List3.jsp~121~
资源名称:shihua.rar [点击查看]
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:8k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ page contentType="text/html; charset=GBK" %>
- <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
- <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
- <html>
- <head>
- <%@ include file="WebInfo.jsp" %>
- <script type="text/javascript">
- function doPost(params){
- var action="<%=request.getContextPath()%>/Index.do?todo=OpenIndexMenu&fMenuID=<c:out value="${param.fMenuID}" />&"+params;
- <c:if test="${param.cMenuID != null}">
- action += "&cMenuID=<c:out value="${param.cMenuID}" />"
- </c:if>
- <c:if test="${param.key != null}">
- action = "";
- </c:if>
- var form=document.getElementById("form1");
- form.action=action;
- form.submit();
- }
- function searchInfo(){
- var action = "<%=request.getContextPath()%>/Index.do?todo=SearchInformation";
- <c:if test="${param.fMenuID != null}">
- action += '&menuID=<c:out value="${param.fMenuID}" />';
- </c:if>
- <c:if test="${param.key != null}">
- action += '&key=<c:out value="${param.key}" />';
- </c:if>
- <c:if test="${param.cMenuID != null}">
- action += '&cMenuID=<c:out value="${param.cMenuID}" />';
- </c:if>
- var form = document.getElementById("form1");
- form.action = action;
- form.submit();
- }
- </script>
- </head>
- <body bgcolor="#ffffff">
- <form action="" id="form1" method="POST">
- <%@ include file="Top/Top.jsp" %>
- <%@ include file="Top/MenuBanner.jsp" %>
- <table width="840" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:6px;">
- <tr>
- <td width="166" height="488" valign="top" bgcolor="#F6F6F6"><%@ include file="Left/LeftMenu.jsp" %></td>
- <td width="674" valign="top" style="padding:5px">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="30%"> <strong><font color="#C80000" ><c:out value="${title}" /></font></strong></td>
- <td width="70%" valign="bottom"><div align="right" class="LoginTitle"><l:out CNLetter="当前位置:首页" ENLetter="Position:Home"/> > <c:out value="${menu.men_Name}" /> > <c:out value="${title}" /></div></td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="2"></td>
- </tr>
- <tr>
- <td height="1" background="<%=request.getContextPath()%>/images/Lines.gif"></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <table width="640" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="366" bgcolor="f5f5f5" style="padding-left:15px;"><img src="images/News_Search_Ft.gif" width="7" height="7" alt=""> <l:out CNLetter="请输入您要查询内容的关键字" ENLetter="Please enter your query to keyword"/></td>
- <td width="170" bgcolor="f5f5f5"><input name="condition1" type="text" class="input" /></td>
- <td width="104" bgcolor="f5f5f5"><a href="javascript:searchInfo();"><img border="0" src="<l:out CNLetter="images" ENLetter="enImages" />/nwe_14.gif" width="75" height="27" alt=""></a></td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="354" valign="top" style="padding:5px;">
- <table width="640" border="0" cellPadding="0" cellSpacing="0" bgcolor="F4F4F4">
- <tr>
- <td height="26" width="56"><div class="t4" align="center"><l:out CNLetter="序 号" ENLetter="ID"/></div></td>
- <td width="379"><div class="t4" align="center"><l:out CNLetter="标 题" ENLetter="title"/></div></td>
- <td width="77"><div class="t4" align="center"><l:out CNLetter="发布日期" ENLetter="time"/></div></td>
- <td width="72"><div class="t4" align="center"><l:out CNLetter="点击数" ENLetter="hits"/></div></td>
- </tr>
- </table>
- <c:forEach var="inf" items="${pageInfo.rows}" varStatus="status">
- <c:if test="${(status.index + 1) % 2 != 0}">
- <table width="640" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="30" width="49"><div align="center"><c:out value="${status.index + 1}" /></div></td>
- <td width="385"><a href='<%=request.getContextPath()%>/Index.do?todo=OpenInfo&infID=<c:out value="${inf.inf_ID}" />&type=<c:out value="${type}" />&fMenuID=<c:out value="${menu.men_ID}" />'><c:out value="${inf.inf_Title}" /></a></td>
- <td width="78"><div align="center"><bean:write name="inf" property="inf_Time" format="yyyy-MM-dd"/></div></td>
- <td width="72"><div align="center"><c:out value="${inf.inf_Click}" /></div></td>
- </tr>
- </table>
- </c:if>
- <c:if test="${(status.index + 1) % 2 == 0}">
- <table width="640" border="0" cellpadding="0" cellspacing="0" bgcolor="#f9f9f9">
- <tr>
- <td height="30" width="49"><div align="center"><c:out value="${status.index + 1}" /></div></td>
- <td width="385"><a href='<%=request.getContextPath()%>/Index.do?todo=OpenInfo&infID=<c:out value="${inf.inf_ID}" />&type=<c:out value="${type}" />&fMenuID=<c:out value="${menu.men_ID}" />'><c:out value="${inf.inf_Title}" /></a></td>
- <td width="78"><div align="center"><bean:write name="inf" property="inf_Time" format="yyyy-MM-dd"/></div></td>
- <td width="72"><div align="center"><c:out value="${inf.inf_Click}" /></div></td>
- </tr>
- </table>
- </c:if>
- </c:forEach>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td>
- <div align="right" >
- <c:if test="${sessionScope.Language == 'CN'}">
- 共<c:out value="${pageInfo.totalRows}"/>条记录 共<c:out value="${pageInfo.totalPages}"/>页 当前第<c:out value="${pageInfo.currentPageNO+1}"/>页
- </c:if>
- <c:if test="${sessionScope.Language == 'EN'}">
- <c:out value="${pageInfo.totalRows}"/> Post in All, <c:out value="${pageInfo.totalPages}"/> Page in All, Page <c:out value="${pageInfo.currentPageNO+1}"/>
- </c:if>
-
- <c:choose>
- <c:when test="${pageInfo.firstPageNO>=pageInfo.currentPageNO}">
- <l:out CNLetter="第一页" ENLetter="first page"/>
- |
- <l:out CNLetter="上一页" ENLetter="Previous Page"/>
- </c:when>
- <c:otherwise>
- <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.firstPageNO}"/>')"><l:out CNLetter="第一页" ENLetter="first page"/></a>
- |
- <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.previousPageNO}"/>')"><l:out CNLetter="上一页" ENLetter="Previous Page"/></a>
- </c:otherwise>
- </c:choose>
- |
- <c:choose>
- <c:when test="${pageInfo.lastPageNO<=pageInfo.currentPageNO}">
- <l:out CNLetter="下一页" ENLetter="Next Page"/>
- |
- <l:out CNLetter="最后页" ENLetter="Last Page"/>
- </c:when>
- <c:otherwise>
- <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.nextPageNO}"/>')"><l:out CNLetter="下一页" ENLetter="Next Page"/></a>
- |
- <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.lastPageNO}"/>')"><l:out CNLetter="最后页" ENLetter="Last Page"/></a>
- </c:otherwise>
- </c:choose>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <%@ include file="Bottom.jsp" %>
- </form>
- </body>
- </html>