InformationList.jsp~65~
资源名称:shihua.rar [点击查看]
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:6k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ page contentType="text/html; charset=GBK" %>
- <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
- <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
- <html>
- <head>
- <title>InformationList</title>
- <link href="Css/skinv2.0.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript">
- function doPost(params){
- var action="<%=request.getContextPath()%>/Manage/informationAction.do?todo=OpenInformationList"+"&"+params;
- <c:if test="${param.menuID != null}">
- action += '&menuID=<c:out value="${param.menuID}" />';
- </c:if>
- var form=document.getElementById("form");
- form.action=action;
- form.submit();
- }
- function searchAction() {
- var action = '<%=request.getContextPath()%>/Manage/Information.do?todo=OpenInformationList&menuID=<c:out value="${param.menuID}" />';
- var form = document.getElementById("form");
- form.action = action;
- form.submit();
- }
- function AddInfo(){
- <c:if test="${cat != null}">
- location.href = '<%=request.getContextPath()%>/Manage/Information.do?todo=OpenInformation&catID=' + <c:out value="${cat.cat_ID}" />;
- </c:if>
- <c:if test="${menu != null}">
- location.href = '<%=request.getContextPath()%>/Manage/Information.do?todo=OpenInformation&menID=' + <c:out value="${menu.men_ID}" />;
- </c:if>
- }
- function EditInfo(id){
- <c:if test="${cat != null}">
- location.href = '<%=request.getContextPath()%>/Manage/Information.do?todo=OpenInformation&infID=' + id + '&catID=' + <c:out value="${cat.cat_ID}" />;
- </c:if>
- <c:if test="${menu != null}">
- location.href = '<%=request.getContextPath()%>/Manage/Information.do?todo=OpenInformation&infID=' + id + '&menID=' + <c:out value="${menu.men_ID}" />;
- </c:if>
- }
- </script>
- </head>
- <body bgcolor="#ffffff">
- <form name="form" method="post" action="InformationList.jsp">
- <table cellspacing="0" cellpadding="0" width="100%" border="0">
- <tr bgcolor="#cfdbe8">
- <td style="WIDTH: 20px" width="20" bgColor="#cfdbe8" height="19">
- <img height="10" src="<%=request.getContextPath()%>/Manage/images/icon.gif" width="12" alt="" />
- </td>
- <td valign="middle" bgcolor="#cfdbe8" colSpan="2"> <c:out value="${MainTitle}" /></td>
- </tr>
- <tr>
- <td style="HEIGHT: 31px" valign="top" align="left" height="80"> </td>
- <td style="HEIGHT: 31px" valign="middle" align="left" colSpan="2">
- <img src="<%=request.getContextPath()%>/Manage/images/edit.gif" alt="" />
- <c:out value="${ChildTitle}" />
- </td>
- </tr>
- <tr>
- <td style="HEIGHT: 1px" valign="top" align="left"></td>
- <td style="HEIGHT: 1px" valign="top" align="left" width="820" bgcolor="#cfdbe8"></td>
- <td style="HEIGHT: 1px" valign="top" align="left" width="144"></td>
- </tr>
- <tr>
- <td style="HEIGHT: 381px" valign="top" align="left"></td>
- <td style="HEIGHT: 381px" valign="top" align="left" colspan="2">
- <br/>
- 查询关键字:
- <input type="text" id="txtCondition" value='<c:out value="${condition}" />' name="condition" class="input000000_1" />
- <input type="hidden" name="hidCondition" value='<c:out value="${condition}" />' />
- <input type="button" name="btnQuery" value=" 重新刷新" class="Botton" onclick="searchAction();" />
- <input type="button" name="btnQuery" value=" 添加记录" class="Botton" onclick="AddInfo();" />
- <br /><br />
- <table width="640" border="0" cellpadding="0" cellspacing="0" class="table_Left">
- <tr>
- <td width="400" height="30" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>信息标题</strong></td>
- <td width="120" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>发布时间</strong></td>
- <td width="120" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>操作</strong></td>
- </tr>
- </table>
- <div id="divList">
- <c:forEach var="inf" items="${pageInfo.rows}" varStatus="status">
- <table width="640" border="0" cellpadding="0" cellspacing="0" class="table_Left">
- <tr>
- <td width="400" height="25" class="table_Right">
- <c:out value="${inf.inf_Title}" />
- </td>
- <td width="120" align="center" class="table_Right">
- <bean:write name="inf" property="inf_Time" format="yyyy-MM-dd"/>
- </td>
- <td width="120" align="center" class="table_Right">
- <a href='javascript:EditInfo(<c:out value="${inf.inf_ID}" />)'>编辑</a>
- |
- <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>
- </td>
- </tr>
- </table>
- </c:forEach>
- </div>
- <table width="640" border="0" cellpadding="0" cellspacing="0" class="table_Left">
- <tr>
- <td valign="middle" colspan="9" align="center" class="STYLE1 table_Right" height="30">
- <div align="right" >
- 共<c:out value="${pageInfo.totalRows}"/>条记录 共<c:out value="${pageInfo.totalPages}"/>页 当前第<c:out value="${pageInfo.currentPageNO+1}"/>页
-
- <c:choose>
- <c:when test="${pageInfo.firstPageNO>=pageInfo.currentPageNO}">
- 第一页
- |
- 上一页
- </c:when>
- <c:otherwise>
- <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.firstPageNO}"/>')">第一页</a>
- |
- <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.previousPageNO}"/>')">上一页</a>
- </c:otherwise>
- </c:choose>
- |
- <c:choose>
- <c:when test="${pageInfo.lastPageNO<=pageInfo.currentPageNO}">
- 下一页
- |
- 最后页
- </c:when>
- <c:otherwise>
- <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.nextPageNO}"/>')">下一页</a>
- |
- <a href="javascript:doPost('pageNo=<c:out value="${pageInfo.lastPageNO}"/>')">最后页</a>
- </c:otherwise>
- </c:choose>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>