comparison src/main/webapp/pages/books.jsp @ 14:3387d855a194

new: toc status in books page
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Fri, 29 May 2015 11:00:09 +0200
parents 9c6e74761f60
children d81a5401b9af
comparison
equal deleted inserted replaced
13:9c6e74761f60 14:3387d855a194
150 }, 150 },
151 minLength : 0 151 minLength : 0
152 }); 152 });
153 153
154 }); 154 });
155
155 </script> 156 </script>
156 </head> 157 </head>
157 158
158 <body> 159 <body>
159 160
193 <td><label class="tableTitle">Dynasty</label></td> 194 <td><label class="tableTitle">Dynasty</label></td>
194 <td><label class="tableTitle">Admin Type</label></td> 195 <td><label class="tableTitle">Admin Type</label></td>
195 <td><label class="tableTitle">Start Year</label></td> 196 <td><label class="tableTitle">Start Year</label></td>
196 197
197 <td><label class="tableTitle">Edit TOC</label></td> <!-- go to toc page --> 198 <td><label class="tableTitle">Edit TOC</label></td> <!-- go to toc page -->
198 <td><label class="tableTitle">TOC Finished</label></td> <!-- finished or not --> 199 <td><label class="tableTitle">TOC Finished</label>
200 <input type="image"
201 onclick="setAction('forceReloadBooks', 'booksForm');"
202 src="<%=sessionBean.getApplicationBean().getRefreshImage()%>" width="20" height="20"/>
203 </td> <!-- finished or not -->
199 <td><label class="tableTitle">Last Editor</label></td> 204 <td><label class="tableTitle">Last Editor</label></td>
200 <td><label class="tableTitle">Edit Time</label></td> 205 <td><label class="tableTitle">Edit Time</label></td>
201 206
202 </tr> 207 </tr>
203 208
212 <td><%=book.getLevel2() %></td> 217 <td><%=book.getLevel2() %></td>
213 <td><%=book.getPeriod() %></td> 218 <td><%=book.getPeriod() %></td>
214 <td><%=book.getDynasty() %></td> 219 <td><%=book.getDynasty() %></td>
215 <td><%=book.getAdmin_type() %></td> 220 <td><%=book.getAdmin_type() %></td>
216 <td><%=book.getStart_year() %></td> 221 <td><%=book.getStart_year() %></td>
217
218 <!-- TODO -->
219 <td><a href="<%=sessionBean.getApplicationBean().getTocInterfaceUrl()%>/check_sections_details.php?book_id=<%=book.getId() %>&amp;count=100&amp;sessionId=<%= session.getId()%>" target="blank"> 222 <td><a href="<%=sessionBean.getApplicationBean().getTocInterfaceUrl()%>/check_sections_details.php?book_id=<%=book.getId() %>&amp;count=100&amp;sessionId=<%= session.getId()%>" target="blank">
220 Edit TOC</a></td> 223 Edit TOC</a></td>
221 224
222 <td>TODO<input type="checkbox" name="finished" value="0" <%= (book.getTocCorrection() == 1) ? "checked" : "" %>/><label>Finished</label></td> 225 <td>
226 <% if (book.getToc_correction() == 1) { %>
227 <input type="image" name="tocBookId" value="<%=book.getId()%>"
228 onclick="setAction('unSetTocCorrection', 'booksForm');"
229 src="<%=sessionBean.getApplicationBean().getCheckboxCheckedImage()%>" width="20" height="20"/>
230 <% } else { %>
231
232 <input type="image" name="tocBookId" value="<%=book.getId()%>"
233 onclick="setAction('setTocCorrection', 'booksForm');"
234 src="<%=sessionBean.getApplicationBean().getCheckboxUncheckedImage()%>" width="20" height="20"/>
235
236 <% } %>
237 </td>
238
223 <td><%= (book.getCurrentSectionVersion() == null) ? "" : book.getCurrentSectionVersion().getEditor() %></td> 239 <td><%= (book.getCurrentSectionVersion() == null) ? "" : book.getCurrentSectionVersion().getEditor() %></td>
224 <td><%= (book.getCurrentSectionVersion() == null) ? "" : book.getCurrentSectionVersion().getDate() %></td> 240 <td><%= (book.getCurrentSectionVersion() == null) ? "" : book.getCurrentSectionVersion().getDate() %></td>
225 </tr> 241 </tr>
226 242
227 <% } %> 243 <% } %>