logicタグ実装のページング

3918 ワード

<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=" "
					onclick="newad()" />
				<input type="button" id="excelid" value=" "
					onclick="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="   " onclick="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="   "
							onclick="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>