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