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

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>DownLoadList</title>
  7. <script type="text/javascript">
  8. function doPost(params){
  9.   var action="<%=request.getContextPath()%>/Manage/newsActionForm.do?todo=OpenNewsList"+"&"+params;
  10.   var form=document.getElementById("form");
  11.   form.action=action;
  12.   form.submit();
  13. }
  14. </script>
  15. <link href="Css/skinv2.0.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body bgcolor="#ffffff">
  18. <form name="form" method="post" action="">
  19. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  20.   <tr bgcolor="#cfdbe8">
  21.     <td style="WIDTH: 20px" width="20" bgColor="#cfdbe8" height="19">
  22.       &nbsp;<img height="10" src="<%=request.getContextPath()%>/Manage/images/icon.gif" width="12" alt="" />
  23.     </td>
  24.     <td valign="middle" bgcolor="#cfdbe8" colSpan="2">&nbsp; <c:out value="${MainTitle}" /></td>
  25.   </tr>
  26.   <tr>
  27.     <td style="HEIGHT: 31px" valign="top" align="left" height="80">&nbsp;</td>
  28.     <td style="HEIGHT: 31px" valign="middle" align="left" colSpan="2">
  29.       &nbsp;<img src="<%=request.getContextPath()%>/Manage/images/edit.gif" alt="" />
  30.       &nbsp;<c:out value="${ChildTitle}" />
  31.     </td>
  32.   </tr>
  33.   <tr>
  34.     <td style="HEIGHT: 1px" valign="top" align="left"></td>
  35.     <td style="HEIGHT: 1px" valign="top" align="left" width="820" bgcolor="#cfdbe8"></td>
  36.     <td style="HEIGHT: 1px" valign="top" align="left" width="144"></td>
  37.   </tr>
  38.   <tr>
  39.     <td style="HEIGHT: 381px" valign="top" align="left"></td>
  40.     <td style="HEIGHT: 381px" valign="top" align="left" colspan="2">
  41.       <br />
  42.       <a href='<%=request.getContextPath()%>/Manage/DownLoad.do?todo=OpenDownLoad&Type=<c:out value="${param.Type}" />'>点这里添加新的下载文件</a>
  43.       <br /><br />
  44.       <table width="700" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  45.         <tr>
  46.           <td height="30" width="250" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>中文标题</strong></td>
  47.           <td width="150" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>排列顺序</strong></td>
  48.           <td width="100" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>发布时间</strong></td>
  49.           <td width="120" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>操作</strong></td>
  50.         </tr>
  51.       </table>
  52.       <div id="divList">
  53.         <c:forEach var="dl" items="${pageInfo.rows}" varStatus="status">
  54.           <table width="700" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  55.             <tr>
  56.               <td height="25" width="250" class="table_Right">
  57.                 &nbsp;<c:out value="${dl.dow_Title}" />
  58.               </td>
  59.               <td width="150" align="center" class="table_Right">
  60.                 <c:out value="${dl.dow_Order}" />
  61.               </td>
  62.               <td width="100" align="center" class="table_Right">
  63.                 <bean:write name="dl" property="dow_Time" format="yyyy年MM月dd日"/>
  64.               </td>
  65.               <td width="120" align="center" class="table_Right">
  66.                 <a href='<%=request.getContextPath()%>/Manage/DownLoad.do?todo=OpenDownLoad&dowID=<c:out value="${dl.dow_ID}" />&Type=<c:out value="${dl.dow_Type}" />'>编辑</a>
  67.                 &nbsp;|&nbsp;
  68.                 <a href='<%=request.getContextPath()%>/Manage/DownLoad.do?todo=DeleteDownLoad&dowID=<c:out value="${dl.dow_ID}" />&Type=<c:out value="${dl.dow_Type}" />'>删除</a>
  69.               </td>
  70.             </tr>
  71.           </table>
  72.         </c:forEach>
  73.       </div>
  74.       <table width="700" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  75.         <tr>
  76.           <td valign="middle" colspan="9" align="center" class="STYLE1 table_Right" height="30">
  77.             <div align="right" >
  78.               共<c:out value="${pageInfo.totalRows}"/>条记录 共<c:out value="${pageInfo.totalPages}"/>页 当前第<c:out value="${pageInfo.currentPageNO+1}"/>页
  79.               &nbsp;&nbsp;&nbsp;&nbsp;
  80.               <c:choose>
  81.                 <c:when test="${pageInfo.firstPageNO>=pageInfo.currentPageNO}">
  82.                 第一页
  83.                 |
  84.                 上一页
  85.                 </c:when>
  86.                 <c:otherwise>
  87.                   <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.firstPageNO}"/>')">第一页</a>
  88.                   |
  89.                   <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.previousPageNO}"/>')">上一页</a>
  90.                 </c:otherwise>
  91.               </c:choose>
  92.               |
  93.               <c:choose>
  94.                 <c:when test="${pageInfo.lastPageNO<=pageInfo.currentPageNO}">
  95.                 下一页
  96.                 |
  97.                 最后页
  98.                 </c:when>
  99.                 <c:otherwise>
  100.                   <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.nextPageNO}"/>')">下一页</a>
  101.                   |
  102.                   <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.lastPageNO}"/>')">最后页</a>
  103.                 </c:otherwise>
  104.               </c:choose>&nbsp;&nbsp;
  105.             </div>
  106.           </td>
  107.         </tr>
  108.       </table>
  109.     </td>
  110.   </tr>
  111. </table>
  112. </form>
  113. </body>
  114. </html>