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