分類  >  Web前端 >

老掉牙代碼備份

tags:    時間:2013-12-10 00:54:38
老代碼備份
<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>

推薦閱讀文章

Bookmark the permalink ,來源:互聯網