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

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. <title>InformationList</title>
  7. <link href="Css/skinv2.0.css" rel="stylesheet" type="text/css" />
  8. <script type="text/javascript">
  9. function doPost(params){
  10.   var action="<%=request.getContextPath()%>/Manage/informationAction.do?todo=OpenInformationList"+"&"+params;
  11.   <c:if test="">
  12.   </c:if>
  13.   var form=document.getElementById("form");
  14.   form.action=action;
  15.   form.submit();
  16. }
  17. function searchAction() {
  18.   var action = '<%=request.getContextPath()%>/Manage/Information.do?todo=OpenInformationList&menuID=<c:out value="${param.menuID}" />';
  19.   var form = document.getElementById("form");
  20.   form.action = action;
  21.   form.submit();
  22. }
  23. function AddInfo(){
  24.   <c:if test="${cat != null}">
  25.   location.href = '<%=request.getContextPath()%>/Manage/Information.do?todo=OpenInformation&catID=' + <c:out value="${cat.cat_ID}" />;
  26.   </c:if>
  27.   <c:if test="${menu != null}">
  28.   location.href = '<%=request.getContextPath()%>/Manage/Information.do?todo=OpenInformation&menID=' + <c:out value="${menu.men_ID}" />;
  29.   </c:if>
  30. }
  31. function EditInfo(id){
  32.   <c:if test="${cat != null}">
  33.   location.href = '<%=request.getContextPath()%>/Manage/Information.do?todo=OpenInformation&infID=' + id + '&catID=' + <c:out value="${cat.cat_ID}" />;
  34.   </c:if>
  35.   <c:if test="${menu != null}">
  36.   location.href = '<%=request.getContextPath()%>/Manage/Information.do?todo=OpenInformation&infID=' + id + '&menID=' + <c:out value="${menu.men_ID}" />;
  37.   </c:if>
  38. }
  39. </script>
  40. </head>
  41. <body bgcolor="#ffffff">
  42. <form name="form" method="post" action="InformationList.jsp">
  43. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  44.   <tr bgcolor="#cfdbe8">
  45.     <td style="WIDTH: 20px" width="20" bgColor="#cfdbe8" height="19">
  46.       &nbsp;<img height="10" src="<%=request.getContextPath()%>/Manage/images/icon.gif" width="12" alt="" />
  47.     </td>
  48.     <td valign="middle" bgcolor="#cfdbe8" colSpan="2">&nbsp; <c:out value="${MainTitle}" /></td>
  49.   </tr>
  50.   <tr>
  51.     <td style="HEIGHT: 31px" valign="top" align="left" height="80">&nbsp;</td>
  52.     <td style="HEIGHT: 31px" valign="middle" align="left" colSpan="2">
  53.       &nbsp;<img src="<%=request.getContextPath()%>/Manage/images/edit.gif" alt="" />
  54.       &nbsp;<c:out value="${ChildTitle}" />
  55.     </td>
  56.   </tr>
  57.   <tr>
  58.     <td style="HEIGHT: 1px" valign="top" align="left"></td>
  59.     <td style="HEIGHT: 1px" valign="top" align="left" width="820" bgcolor="#cfdbe8"></td>
  60.     <td style="HEIGHT: 1px" valign="top" align="left" width="144"></td>
  61.   </tr>
  62.   <tr>
  63.     <td style="HEIGHT: 381px" valign="top" align="left"></td>
  64.     <td style="HEIGHT: 381px" valign="top" align="left" colspan="2">
  65.       <br/>
  66.       查询关键字:
  67.       <input type="text" id="txtCondition" value='<c:out value="${condition}" />' name="condition" class="input000000_1" />
  68.       <input type="hidden" name="hidCondition" value='<c:out value="${condition}" />' />
  69.       <input type="button" name="btnQuery" value="  重新刷新" class="Botton" onclick="searchAction();" />
  70.       <input type="button" name="btnQuery" value="  添加记录" class="Botton" onclick="AddInfo();" />
  71.       <br /><br />
  72.       <table width="640" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  73.         <tr>
  74.           <td width="400" height="30" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>信息标题</strong></td>
  75.           <td width="120" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>发布时间</strong></td>
  76.           <td width="120" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>操作</strong></td>
  77.         </tr>
  78.       </table>
  79.       <div id="divList">
  80.         <c:forEach var="inf" items="${pageInfo.rows}" varStatus="status">
  81.           <table width="640" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  82.             <tr>
  83.               <td width="400" height="25" class="table_Right">
  84.                 &nbsp;<c:out value="${inf.inf_Title}" />
  85.               </td>
  86.               <td width="120" align="center" class="table_Right">
  87.                 <bean:write name="inf" property="inf_Time" format="yyyy-MM-dd"/>
  88.               </td>
  89.               <td width="120" align="center" class="table_Right">
  90.                 <a href='javascript:EditInfo(<c:out value="${inf.inf_ID}" />)'>编辑</a>
  91.                 &nbsp;|&nbsp;
  92.                 <a href='<%=request.getContextPath()%>/Manage/Information.do?todo=DeleteInformation&infID=<c:out value="${inf.inf_ID}" />&menuID=<c:out value="${param.menuID}" />&catID=<c:out value="${param.catID}" />'>删除</a>
  93.               </td>
  94.             </tr>
  95.           </table>
  96.         </c:forEach>
  97.       </div>
  98.       <table width="640" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  99.         <tr>
  100.           <td valign="middle" colspan="9" align="center" class="STYLE1 table_Right" height="30">
  101.             <div align="right" >
  102.               共<c:out value="${pageInfo.totalRows}"/>条记录 共<c:out value="${pageInfo.totalPages}"/>页 当前第<c:out value="${pageInfo.currentPageNO+1}"/>页
  103.               &nbsp;&nbsp;&nbsp;&nbsp;
  104.               <c:choose>
  105.                 <c:when test="${pageInfo.firstPageNO>=pageInfo.currentPageNO}">
  106.                 第一页
  107.                 |
  108.                 上一页
  109.                 </c:when>
  110.                 <c:otherwise>
  111.                   <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.firstPageNO}"/>')">第一页</a>
  112.                   |
  113.                   <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.previousPageNO}"/>')">上一页</a>
  114.                 </c:otherwise>
  115.               </c:choose>
  116.               |
  117.               <c:choose>
  118.                 <c:when test="${pageInfo.lastPageNO<=pageInfo.currentPageNO}">
  119.                 下一页
  120.                 |
  121.                 最后页
  122.                 </c:when>
  123.                 <c:otherwise>
  124.                   <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.nextPageNO}"/>')">下一页</a>
  125.                   |
  126.                   <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.lastPageNO}"/>')">最后页</a>
  127.                 </c:otherwise>
  128.               </c:choose>&nbsp;&nbsp;
  129.             </div>
  130.           </td>
  131.         </tr>
  132.       </table>
  133.     </td>
  134.   </tr>
  135. </table>
  136. </form>
  137. </body>
  138. </html>