古いコードのバックアップ
5375 ワード
<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>