logic标签实现的分页

<table width="100%" border="0" cellpadding="0"
	cellspacing="10" bgcolor="#F9F9F9">
	<tr>
		<td width="49%" align="left">
			<form action="管理.html">
				<input type="button" name="Submit43" value="新增"
					οnclick="newad()" />
				<input type="button" id="excelid" value="导出"
					οnclick="getexceldate()" />
			</form>
		</td>
		<td width="13%">
			共
			<logic:present name="recordCount">
				<logic:notEmpty name="recordCount">
					<bean:write name="recordCount" />
				</logic:notEmpty>
			</logic:present>
			<logic:notPresent name="recordCount">0</logic:notPresent>
			条记录
		</td>
		<td width="38%" align="center">
			<logic:present name="prePage">
				<logic:notEmpty name="prePage">
					<logic:notEqual name="prePage" value="0">
						<input type="hidden" id="prehd"
							value="<bean:write name="prePage"/>" />
						<input type="button" name="bt1" id="prebt"
							value=" 上一页 " οnclick="prepage()" />
					</logic:notEqual>
					<logic:equal name="prePage" value="0">
						<input type="button" name="bt1" id="prebt"
							value=" 上一页 " />
					</logic:equal>
				</logic:notEmpty>
			</logic:present>
			<logic:notPresent name="prePage">
				<input type="button" name="bt1" id="prebt"
					value=" 上一页 " />
			</logic:notPresent>
			&nbsp;&nbsp;
			<span class="font_red"> <logic:present
					name="currentPage">
					<logic:notEmpty name="currentPage">
						<input type="hidden" id="hd1"
							value="<bean:write name="currentPage"/>" />
						<bean:write name="currentPage" />
					</logic:notEmpty>
				</logic:present> <logic:notPresent name="currentPage">0</logic:notPresent>
			</span>/
			<logic:present name="maxPage">
				<logic:notEmpty name="maxPage">
					<bean:write name="maxPage" />
				</logic:notEmpty>
			</logic:present>
			<logic:notPresent name="maxPage">0</logic:notPresent>
			&nbsp;&nbsp;
			<logic:present name="nextPage">
				<logic:notEmpty name="nextPage">
					<logic:notEqual name="nextPage" value="-1">
						<input type="hidden" id="nexthd"
							value="<bean:write name="nextPage"/>" />
						<input type="button" name="bt2" value=" 下一页 "
							οnclick="nextpage()" />
					</logic:notEqual>
					<logic:equal name="nextPage" value="-1">
						<input type="button" name="bt2" value=" 下一页 " />
					</logic:equal>
				</logic:notEmpty>
			</logic:present>
			<logic:notPresent name="nextPage">
				<input type="button" name="bt2" value=" 下一页 " />
			</logic:notPresent>
		</td>
	</tr>
</table>
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值