diff src/main/webapp/pages/topicPage.jsp @ 71:92ede90bc611

complete filters in the missing books table on topicPage
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 15 Aug 2016 11:09:20 +0200
parents 315a6360ea1b
children b27a99201cbe
line wrap: on
line diff
--- a/src/main/webapp/pages/topicPage.jsp	Wed Aug 10 17:28:09 2016 +0200
+++ b/src/main/webapp/pages/topicPage.jsp	Mon Aug 15 11:09:20 2016 +0200
@@ -209,9 +209,61 @@
 								<table class="pageTable">
 									<tr>
 										<th><label class="tableTitle">Book Id</label></th>
-										<th><label class="tableTitle">Book Name</label></th>
-										<th><label class="tableTitle">Level 1</label></th>
-										<th><label class="tableTitle">Level 2</label></th>
+										<th>
+											<table class="sortTable">
+											<tr>
+												<td><label class="tableTitle">Book Name</label></td>
+											</tr>
+											<tr>
+												<td>
+													<input type="text" class="filterInput" name="bookNameFilterMissingBooks" id="bookNameFilterMissingBooks" value="<%= sessionBean.getTopicPage().getBookNameFilterMissingBooks() %>"/>
+												</td>									
+												<td>
+													<input type="image"
+														onclick="setAction('filter', 'topicSectionRelationForm');"
+														src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/>
+												</td>
+											</tr>
+											</table>
+										</th>
+										<th>
+											<table class="sortTable">
+											<tr>
+												<td><label class="tableTitle">Level 1</label></td>
+												
+											</tr>
+											<tr>
+												<td>
+													<input type="text" class="filterInput" name="level1FilterMissingBooks" id="level1FilterMissingBooks" value="<%= sessionBean.getTopicPage().getLevel1FilterMissingBooks() %>"/>
+												</td>									
+												<td>
+													<input type="image"
+														onclick="setAction('filter', 'topicSectionRelationForm');"
+														src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/>
+												</td>
+											</tr>
+											</table>
+										
+										</th>
+										<th>
+											<table class="sortTable">
+											<tr>
+												<td><label class="tableTitle">Level 2</label></td>
+												
+											</tr>
+											<tr>
+												<td>
+													<input type="text" class="filterInput" name="level2FilterMissingBooks" id="level2FilterMissingBooks" value="<%= sessionBean.getTopicPage().getLevel2FilterMissingBooks() %>"/>
+												</td>									
+												<td>
+													<input type="image"
+														onclick="setAction('filter', 'topicSectionRelationForm');"
+														src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/>
+												</td>
+											</tr>
+											</table>
+							
+										</th>
 										<th>
 											<table class="sortTable">
 											<tr>
@@ -228,15 +280,47 @@
 														src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/>
 												</td>
 											</tr>
-										</table>
+											</table>
+			
+										</th>
 										
-										
-										
+										<th>
+											<table class="sortTable">
+											<tr>
+												<td><label class="tableTitle">Period</label></td>
+												
+											</tr>
+											<tr>
+												<td>
+													<input type="text" class="filterInput" name="periodFilterMissingBooks" id="periodFilterMissingBooks" value="<%= sessionBean.getTopicPage().getPeriodFilterMissingBooks() %>"/>
+												</td>									
+												<td>
+													<input type="image"
+														onclick="setAction('filter', 'topicSectionRelationForm');"
+														src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/>
+												</td>
+											</tr>
+											</table>
 										
 										</th>
-										
-										<th><label class="tableTitle">Period</label></th>
-										<th><label class="tableTitle">Admin Type</label></th>
+										<th>
+											<table class="sortTable">
+											<tr>
+												<td><label class="tableTitle">Admin Type</label></td>
+											</tr>
+											<tr>
+												<td>
+													<input type="text" class="filterInput" name="adminTypeFilterMissingBooks" id="adminTypeFilterMissingBooks" value="<%= sessionBean.getTopicPage().getAdminTypeFilterMissingBooks() %>"/>
+												</td>									
+												<td>
+													<input type="image"
+														onclick="setAction('filter', 'topicSectionRelationForm');"
+														src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/>
+												</td>
+											</tr>
+											</table>
+											
+										</th>
 										<th><label class="tableTitle">Section Name</label></th>
 										<th><label class="tableTitle">Section Pages</label></th>
 										<th><label class="tableTitle">Load Text (Plain)</label></th>