diff 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 diff
--- a/src/main/webapp/componentes/paginator.jsp	Fri May 19 20:09:47 2017 +0200
+++ b/src/main/webapp/componentes/paginator.jsp	Fri May 19 20:12:34 2017 +0200
@@ -1,25 +1,25 @@
 <%@ 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 
+					<input
 						type="image"
 						src="<%=sessionBean.getApplicationBean().getPaginatorFirst()%>"
 						onclick="setAction('firstPage','<%=formName%>');"/>
 				</td>
 				<td>
-					<input 				
+					<input
 						type="image"
 						src="<%=sessionBean.getApplicationBean().getPaginatorFr()%>"
 						onclick="setAction('fastRewind', '<%=formName%>');"/>
 				</td>
 				<td>
-					<input 				
+					<input
 						type="image"
 						src="<%=sessionBean.getApplicationBean().getPaginatorPrevious()%>"
 						onclick="setAction('previousPage', '<%=formName%>');"/>
@@ -27,13 +27,14 @@
 				<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>
@@ -43,16 +44,16 @@
 						onclick="setAction('nextPage', '<%=formName%>');"/>
 				</td>
 				<td>
-					<input 				
+					<input
 						type="image"
 						src="<%=sessionBean.getApplicationBean().getPaginatorFf()%>"
 						onclick="setAction('fastForward', '<%=formName%>');"/>
 				</td>
 				<td>
-					<input 	
-						src="<%=sessionBean.getApplicationBean().getPaginatorLast()%>"						
+					<input
+						src="<%=sessionBean.getApplicationBean().getPaginatorLast()%>"
 						type="image"
 						onclick="setAction('lastPage', '<%=formName%>');"/>
 				</td>
 			</tr>
-		</table>
\ No newline at end of file
+		</table>