老掉牙代码备份
老代码备份
<form id="selectForm" name="selectForm" action="<%=basePath %>TopicServlet?doaction=findAll&isfront=false" method="post"> <input type="hidden" name="currentPage" value="1" /> <div style="width: 99%;padding-top: 5px;height: 31px;"> <div style="float: right;"> 主题名称: <input class="text ui-widget-content ui-corner-all" style="padding: 4px;" type="text" name="checkByName" id="checkByName" value="${requestScope.checkByName}" /> <input id="select-btn" type="button" value="查 询" /> <input id="reset-btn" type="button" value="清 空" /> </div> <div style="float: left;"> <!-- <input id="add-btn" type="button" value="新 增" /> --> <input id="delete-btn" type="button" value="删 除" /> <input id="all-btn" type="button" value="全 部" /> </div> </div> <table class="tab-list" width="99%"> <tr class="list-header"> <td width="5%">序号</td> <td width="5%"> <input id="checkAll" name="checkAll" type="checkbox" /> </td> <td width="20%">标题</td> <td width="20%">所属版块</td> <td width="20%">创建人</td> <td width="15%">创建时间</td> <td width="15%">修改时间</td> </tr> <c:forEach var="item" items="${page.items }" varStatus="ss"> <tr> <td> ${ss.index + 1} </td> <td> <input class="check" id="checkOne" name="checkOne" type="checkbox" value="${item.to.id }" /> </td> <td> <a href="javascript:checkSection('${item.to.id}')"> ${item.to.title } </a> </td> <td>${item.ts.sectionName}</td> <td>${item.cj.realName }</td> <td><fmt:formatDate value="${item.to.createTime}" type="both"/></td> <td><fmt:formatDate value="${item.to.modifyTime}" type="both"/></td> </tr> </c:forEach> <c:if test="${empty page.items }"> <tr style="text-align: center"> <td colspan="7"> <font color="#cd0a0a">暂无记录</font> </td> </tr> </c:if> </table> <table class="tab-page" width="99%" border="0"> <tr> <td align="left"> <p class="p-page"> 共<font class="font-page"> ${page.totalCount } </font>条记录, 共<font class="font-page"> ${page.totlePages } </font>页, 当前<font class="font-page"> ${page.currentPage } </font>页 </p> </td> <td align="right"> <c:if test="${page.currentPage gt 1}"> <a href="javascript:paging(1)">首页</a> </c:if> <c:if test="${page.currentPage eq 1 }"> <font color="grey">首页</font> </c:if> <c:if test="${page.currentPage - 1 > 0 }"> <a href="javascript:paging(${page.currentPage - 1 })">上一页</a> </c:if> <c:if test="${page.currentPage - 1 <= 0 }"> <font color="grey">上一页</font> </c:if> <c:if test="${page.currentPage + 1 <= page.totlePages }"> <a href="javascript:paging(${page.currentPage + 1 })">下一页</a> </c:if> <c:if test="${page.currentPage + 1 > page.totlePages }"> <font color="grey">下一页</font> </c:if> <c:if test="${page.currentPage lt page.totlePages }"> <a href="javascript:paging(${page.totlePages })">尾页</a> </c:if> <c:if test="${page.currentPage eq page.totlePages }"> <font color="grey">尾页</font> </c:if> 第 <input id="pageNum" name="pageNum" class="input-page" type="text" value=""/> 页 <input type="button" value="跳 转" onclick="go(${page.totlePages})" style="width: 60px; height: 25px;font-size: 12px;"/> </td> </tr> </table> </form>