comparison 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
comparison
equal deleted inserted replaced
86:53ca65aad5f7 87:910cfd8521dd
1 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 1 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2 2
3 <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" scope="session" /> 3 <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" scope="session" />
4 4
5 <% String formName = request.getParameter("formName"); %> 5 <% String formName = request.getParameter("formName"); %>
6 6
7 <table style="width: 300px; margin-left: auto;margin-right: auto;"> 7 <table style="width: 300px; margin-left: auto;margin-right: auto;">
8 <tr> 8 <tr>
9 <td> 9 <td>
10 <input 10 <input
11 type="image" 11 type="image"
12 src="<%=sessionBean.getApplicationBean().getPaginatorFirst()%>" 12 src="<%=sessionBean.getApplicationBean().getPaginatorFirst()%>"
13 onclick="setAction('firstPage','<%=formName%>');"/> 13 onclick="setAction('firstPage','<%=formName%>');"/>
14 </td> 14 </td>
15 <td> 15 <td>
16 <input 16 <input
17 type="image" 17 type="image"
18 src="<%=sessionBean.getApplicationBean().getPaginatorFr()%>" 18 src="<%=sessionBean.getApplicationBean().getPaginatorFr()%>"
19 onclick="setAction('fastRewind', '<%=formName%>');"/> 19 onclick="setAction('fastRewind', '<%=formName%>');"/>
20 </td> 20 </td>
21 <td> 21 <td>
22 <input 22 <input
23 type="image" 23 type="image"
24 src="<%=sessionBean.getApplicationBean().getPaginatorPrevious()%>" 24 src="<%=sessionBean.getApplicationBean().getPaginatorPrevious()%>"
25 onclick="setAction('previousPage', '<%=formName%>');"/> 25 onclick="setAction('previousPage', '<%=formName%>');"/>
26 </td> 26 </td>
27 <td> 27 <td>
28 <% if (formName.equals("booksForm")) { %> 28 <% if (formName.equals("booksForm")) { %>
29 <%=sessionBean.getBooksPage().getPaginator().getRecordStatus() %> 29 <%=sessionBean.getBooksPage().getPaginator().getRecordStatus() %>
30 30
31 <% } else if (formName.equals("searchForm")) { %> 31 <% } else if (formName.equals("searchForm")) { %>
32 <%=sessionBean.getSearchPage().getPaginator().getRecordStatus() %> 32 <%=sessionBean.getSearchPage().getPaginator().getRecordStatus() %>
33 33
34 <% } else if (formName.equals("fullTextSearchForm")) { %> 34 <% } else if (formName.equals("fullTextSearchForm")) { %>
35 <%=sessionBean.getFullTextSearchPage().getPaginator().getRecordStatus() %> 35 <%=sessionBean.getFullTextSearchPage().getPaginator().getRecordStatus() %>
36 36 <% } else if (formName.equals("homeForm")) { %>
37 <%=sessionBean.getHomePage().getPaginator().getRecordStatus() %>
37 <% } %> 38 <% } %>
38 </td> 39 </td>
39 <td> 40 <td>
40 <input 41 <input
41 type="image" 42 type="image"
42 src="<%=sessionBean.getApplicationBean().getPaginatorNext()%>" 43 src="<%=sessionBean.getApplicationBean().getPaginatorNext()%>"
43 onclick="setAction('nextPage', '<%=formName%>');"/> 44 onclick="setAction('nextPage', '<%=formName%>');"/>
44 </td> 45 </td>
45 <td> 46 <td>
46 <input 47 <input
47 type="image" 48 type="image"
48 src="<%=sessionBean.getApplicationBean().getPaginatorFf()%>" 49 src="<%=sessionBean.getApplicationBean().getPaginatorFf()%>"
49 onclick="setAction('fastForward', '<%=formName%>');"/> 50 onclick="setAction('fastForward', '<%=formName%>');"/>
50 </td> 51 </td>
51 <td> 52 <td>
52 <input 53 <input
53 src="<%=sessionBean.getApplicationBean().getPaginatorLast()%>" 54 src="<%=sessionBean.getApplicationBean().getPaginatorLast()%>"
54 type="image" 55 type="image"
55 onclick="setAction('lastPage', '<%=formName%>');"/> 56 onclick="setAction('lastPage', '<%=formName%>');"/>
56 </td> 57 </td>
57 </tr> 58 </tr>
58 </table> 59 </table>