List3.jsp~116~
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:8k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html; charset=GBK" %>
  2. <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
  3. <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
  4. <html>
  5. <head>
  6. <%@ include file="WebInfo.jsp" %>
  7. <script type="text/javascript">
  8. function doPost(params){
  9.   var action="<%=request.getContextPath()%>/Index.do?todo=OpenIndexMenu&fMenuID=<c:out value="${param.fMenuID}" />&"+params;
  10.   <c:if test="${param.cMenuID != null}">
  11.   action += "&cMenuID=<c:out value="${param.cMenuID}" />"
  12.   </c:if>
  13.   var form=document.getElementById("form1");
  14.   form.action=action;
  15.   form.submit();
  16. }
  17. function searchInfo(){
  18.   var action = "<%=request.getContextPath()%>/Index.do?todo=SearchInformation";
  19.   <c:if test="${param.fMenuID != null}">
  20.   action += '&menuID=<c:out value="${param.fMenuID}" />';
  21.   </c:if>
  22.   <c:if test="${param.key != null}">
  23.   action += '&key=<c:out value="${param.key}" />';
  24.   </c:if>
  25.   <c:if test="${param.cMenuID != null}">
  26.   action += '&cMenuID=<c:out value="${param.cMenuID}" />';
  27.   </c:if>
  28.   var form = document.getElementById("form1");
  29.   form.action = action;
  30.   form.submit();
  31. }
  32. </script>
  33. </head>
  34. <body bgcolor="#ffffff">
  35. <form action="" id="form1" method="POST">
  36. <%@ include file="Top/Top.jsp" %>
  37. <%@ include file="Top/MenuBanner.jsp" %>
  38. <table width="840" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:6px;">
  39.   <tr>
  40.     <td width="166" height="488" valign="top" bgcolor="#F6F6F6"><%@ include file="Left/LeftMenu.jsp" %></td>
  41.     <td width="674" valign="top" style="padding:5px">
  42.       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  43.         <tr>
  44.           <td>
  45.             <table width="100%" border="0" cellspacing="0" cellpadding="0">
  46.               <tr>
  47.                 <td width="30%">&nbsp;<strong><font color="#C80000" ><c:out value="${title}" /></font></strong></td>
  48.                 <td width="70%" valign="bottom"><div align="right" class="LoginTitle"><l:out CNLetter="当前位置:首页" ENLetter="Position:Home"/> &gt; <c:out value="${menu.men_Name}" /> &gt; <c:out value="${title}" /></div></td>
  49.               </tr>
  50.             </table>
  51.             <table width="100%" border="0" cellspacing="0" cellpadding="0">
  52.               <tr>
  53.                 <td height="2"></td>
  54.               </tr>
  55.               <tr>
  56.                 <td height="1" background="<%=request.getContextPath()%>/images/Lines.gif"></td>
  57.               </tr>
  58.             </table>
  59.           </td>
  60.         </tr>
  61.       </table>
  62.       <table width="640" border="0" cellspacing="0" cellpadding="0">
  63.         <tr>
  64.           <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>
  65.           <td width="170" bgcolor="f5f5f5"><input name="condition1" type="text" class="input" /></td>
  66.           <td width="104" bgcolor="f5f5f5"><a href="javascript:searchInfo();"><img border="0" src="images/nwe_14.gif" width="75" height="27" alt=""></a></td>
  67.         </tr>
  68.       </table>
  69.       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  70.         <tr>
  71.           <td height="354" valign="top" style="padding:5px;">
  72.             <table width="640" border="0" cellPadding="0" cellSpacing="0" bgcolor="F4F4F4">
  73.               <tr>
  74.                 <td height="26" width="56"><div class="t4" align="center"><l:out CNLetter="序 号" ENLetter="ID"/></div></td>
  75.                 <td width="379"><div class="t4" align="center"><l:out CNLetter="标 题" ENLetter="title"/></div></td>
  76.                 <td width="77"><div class="t4" align="center"><l:out CNLetter="发布日期" ENLetter="time"/></div></td>
  77.                 <td width="72"><div class="t4" align="center"><l:out CNLetter="点击数" ENLetter="click"/></div></td>
  78.               </tr>
  79.             </table>
  80.             <c:forEach var="inf" items="${pageInfo.rows}" varStatus="status">
  81.               <c:if test="${(status.index + 1) % 2 != 0}">
  82.                 <table width="640" border="0" cellpadding="0" cellspacing="0">
  83.                   <tr>
  84.                     <td height="30" width="49"><div align="center"><c:out value="${status.index + 1}" /></div></td>
  85.                     <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>
  86.                     <td width="78"><div align="center"><bean:write name="inf" property="inf_Time" format="yyyy-MM-dd"/></div></td>
  87.                     <td width="72"><div align="center"><c:out value="${inf.inf_Click}" /></div></td>
  88.                   </tr>
  89.                 </table>
  90.               </c:if>
  91.               <c:if test="${(status.index + 1) % 2 == 0}">
  92.                 <table width="640" border="0" cellpadding="0" cellspacing="0" bgcolor="#f9f9f9">
  93.                   <tr>
  94.                     <td height="30" width="49"><div align="center"><c:out value="${status.index + 1}" /></div></td>
  95.                     <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>
  96.                     <td width="78"><div align="center"><bean:write name="inf" property="inf_Time" format="yyyy-MM-dd"/></div></td>
  97.                     <td width="72"><div align="center"><c:out value="${inf.inf_Click}" /></div></td>
  98.                   </tr>
  99.                 </table>
  100.               </c:if>
  101.             </c:forEach>
  102.             <table width="100%" border="0" cellspacing="0" cellpadding="0">
  103.               <tr>
  104.                 <td>
  105.                   <div align="right" >
  106.                     <c:if test="${sessionScope.Language == 'CN'}">
  107.                       共<c:out value="${pageInfo.totalRows}"/>条记录 共<c:out value="${pageInfo.totalPages}"/>页 当前第<c:out value="${pageInfo.currentPageNO+1}"/>页
  108.                     </c:if>
  109.                     <c:if test="${sessionScope.Language == 'EN'}">
  110.                       <c:out value="${pageInfo.totalRows}"/> Post in All, <c:out value="${pageInfo.totalPages}"/> Page in All, Page <c:out value="${pageInfo.currentPageNO+1}"/>
  111.                     </c:if>
  112.                     &nbsp;&nbsp;&nbsp;&nbsp;
  113.                     <c:choose>
  114.                       <c:when test="${pageInfo.firstPageNO>=pageInfo.currentPageNO}">
  115.                       <l:out CNLetter="第一页" ENLetter="first page"/>
  116.                       |
  117.                       <l:out CNLetter="上一页" ENLetter="Previous Page"/>
  118.                       </c:when>
  119.                       <c:otherwise>
  120.                         <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.firstPageNO}"/>')"><l:out CNLetter="第一页" ENLetter="first page"/></a>
  121.                         |
  122.                         <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.previousPageNO}"/>')"><l:out CNLetter="上一页" ENLetter="Previous Page"/></a>
  123.                       </c:otherwise>
  124.                     </c:choose>
  125.                     |
  126.                     <c:choose>
  127.                       <c:when test="${pageInfo.lastPageNO<=pageInfo.currentPageNO}">
  128.                       <l:out CNLetter="下一页" ENLetter="Next Page"/>
  129.                       |
  130.                       <l:out CNLetter="最后页" ENLetter="Last Page"/>
  131.                       </c:when>
  132.                       <c:otherwise>
  133.                         <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.nextPageNO}"/>')"><l:out CNLetter="下一页" ENLetter="Next Page"/></a>
  134.                         |
  135.                         <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.lastPageNO}"/>')"><l:out CNLetter="最后页" ENLetter="Last Page"/></a>
  136.                       </c:otherwise>
  137.                     </c:choose>&nbsp;&nbsp;
  138.                   </div>
  139.                 </td>
  140.               </tr>
  141.             </table>
  142.           </td>
  143.         </tr>
  144.       </table>
  145.     </td>
  146.   </tr>
  147. </table>
  148. <%@ include file="Bottom.jsp" %>
  149. </form>
  150. </body>
  151. </html>