Mercurial > hg > LGServices
comparison src/main/webapp/componentes/paginator.jsp @ 18:881e7591f3e4
new: adding paginator in books page
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 02 Jun 2015 15:09:54 +0200 |
parents | 3e62083dbcbf |
children | 37840afb7b80 |
comparison
equal
deleted
inserted
replaced
17:372dab740f15 | 18:881e7591f3e4 |
---|---|
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 | 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', 'searchForm');"/> | 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', 'searchForm');"/> | 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', 'searchForm');"/> | 25 onclick="setAction('previousPage', '<%=formName%>');"/> |
26 </td> | 26 </td> |
27 <td><%=sessionBean.getSearchPage().getPaginator().getRecordStatus()%></td> | 27 <td> |
28 <% if (formName.equals("booksForm")) { %> | |
29 <%=sessionBean.getBooksPage().getPaginator().getRecordStatus() %> | |
30 | |
31 <% } else if (formName.equals("searchForm")) { %> | |
32 <%=sessionBean.getSearchPage().getPaginator().getRecordStatus() %> | |
33 | |
34 <% } %> | |
35 </td> | |
28 <td> | 36 <td> |
29 <input | 37 <input |
30 type="image" | 38 type="image" |
31 src="<%=sessionBean.getApplicationBean().getPaginatorNext()%>" | 39 src="<%=sessionBean.getApplicationBean().getPaginatorNext()%>" |
32 onclick="setAction('nextPage', 'searchForm');"/> | 40 onclick="setAction('nextPage', '<%=formName%>');"/> |
33 </td> | 41 </td> |
34 <td> | 42 <td> |
35 <input | 43 <input |
36 type="image" | 44 type="image" |
37 src="<%=sessionBean.getApplicationBean().getPaginatorFf()%>" | 45 src="<%=sessionBean.getApplicationBean().getPaginatorFf()%>" |
38 onclick="setAction('fastForward', 'searchForm');"/> | 46 onclick="setAction('fastForward', '<%=formName%>');"/> |
39 </td> | 47 </td> |
40 <td> | 48 <td> |
41 <input | 49 <input |
42 src="<%=sessionBean.getApplicationBean().getPaginatorLast()%>" | 50 src="<%=sessionBean.getApplicationBean().getPaginatorLast()%>" |
43 type="image" | 51 type="image" |
44 onclick="setAction('lastPage', 'searchForm');"/> | 52 onclick="setAction('lastPage', '<%=formName%>');"/> |
45 </td> | 53 </td> |
46 </tr> | 54 </tr> |
47 </table> | 55 </table> |