view src/main/webapp/componentes/paginator.jsp @ 87:910cfd8521dd

1. Add ?Source? column in Section Page 2. Add pagination in Section Page
author Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
date Fri, 19 May 2017 20:12:34 +0200
parents 37840afb7b80
children
line wrap: on
line source

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" scope="session" />

		<% String formName = request.getParameter("formName"); %>

		<table style="width: 300px; margin-left: auto;margin-right: auto;">
			<tr>
				<td>
					<input
						type="image"
						src="<%=sessionBean.getApplicationBean().getPaginatorFirst()%>"
						onclick="setAction('firstPage','<%=formName%>');"/>
				</td>
				<td>
					<input
						type="image"
						src="<%=sessionBean.getApplicationBean().getPaginatorFr()%>"
						onclick="setAction('fastRewind', '<%=formName%>');"/>
				</td>
				<td>
					<input
						type="image"
						src="<%=sessionBean.getApplicationBean().getPaginatorPrevious()%>"
						onclick="setAction('previousPage', '<%=formName%>');"/>
				</td>
				<td>
				<% if (formName.equals("booksForm")) { %>
					<%=sessionBean.getBooksPage().getPaginator().getRecordStatus() %>

				<% } else if (formName.equals("searchForm")) { %>
					<%=sessionBean.getSearchPage().getPaginator().getRecordStatus() %>

				<% } else if (formName.equals("fullTextSearchForm")) { %>
					<%=sessionBean.getFullTextSearchPage().getPaginator().getRecordStatus() %>
				<% } else if (formName.equals("homeForm")) { %>
						<%=sessionBean.getHomePage().getPaginator().getRecordStatus() %>
				<% } %>
				</td>
				<td>
					<input 				
						type="image"
						src="<%=sessionBean.getApplicationBean().getPaginatorNext()%>"
						onclick="setAction('nextPage', '<%=formName%>');"/>
				</td>
				<td>
					<input
						type="image"
						src="<%=sessionBean.getApplicationBean().getPaginatorFf()%>"
						onclick="setAction('fastForward', '<%=formName%>');"/>
				</td>
				<td>
					<input
						src="<%=sessionBean.getApplicationBean().getPaginatorLast()%>"
						type="image"
						onclick="setAction('lastPage', '<%=formName%>');"/>
				</td>
			</tr>
		</table>