diff src/main/webapp/pages/topicPage.jsp @ 70:315a6360ea1b

add dynasty filter in missing books on topicPage
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Wed, 10 Aug 2016 17:28:09 +0200
parents 824b808a7481
children 92ede90bc611
line wrap: on
line diff
--- a/src/main/webapp/pages/topicPage.jsp	Wed Aug 10 13:00:19 2016 +0200
+++ b/src/main/webapp/pages/topicPage.jsp	Wed Aug 10 17:28:09 2016 +0200
@@ -203,6 +203,7 @@
 						
 						<div id="pendingBooks" style="display:none">
 							<label class="subTitel"><%=sessionBean.getTopicPage().getPendingBookList().size()%> book(s) not in the topic.</label>
+							<label class="subTitel"><%=sessionBean.getTopicPage().getFilteredSectionListMissingBooks().size() %> book(s) after filtered.</label>
 					
 							<div class="tableDiv double-scroll" >
 								<table class="pageTable">
@@ -211,7 +212,29 @@
 										<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><label class="tableTitle">Dynasty</label></th>
+										<th>
+											<table class="sortTable">
+											<tr>
+												<td><label class="tableTitle">Dynasty</label></td>
+												
+											</tr>
+											<tr>
+												<td>
+													<input type="text" class="filterInput" name="dynastyFilterMissingBooks" id="dynastyFilterMissingBooks" value="<%= sessionBean.getTopicPage().getDynastyFilterMissingBooks() %>"/>
+												</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><label class="tableTitle">Section Name</label></th>
@@ -222,7 +245,7 @@
 									</tr>	
 									
 									<!-- pending book list -->
-									<% for(DBBook book : sessionBean.getTopicPage().getPendingBookList() ) { %>
+									<% for(DBBook book : sessionBean.getTopicPage().getFilteredSectionListMissingBooks() ) { %>
 									<tr>
 										<td>
 											<a href="<%=sessionBean.getApplicationBean().getTocInterfaceUrl()%>/check_sections_details.php?book_id=<%=book.getId() %>&amp;count=100&amp;sessionId=<%= session.getId()%>" target="blank">