Mercurial > hg > LGServices
comparison src/main/webapp/pages/books.jsp @ 13:9c6e74761f60
new: link to Edit Toc page
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 27 May 2015 15:30:09 +0200 |
parents | d57fe2179f61 |
children | 3387d855a194 |
comparison
equal
deleted
inserted
replaced
12:d57fe2179f61 | 13:9c6e74761f60 |
---|---|
168 <% if(sessionBean.getUser() == null) { %> | 168 <% if(sessionBean.getUser() == null) { %> |
169 <label>You must login!</label> | 169 <label>You must login!</label> |
170 <% } else { | 170 <% } else { |
171 sessionBean.getBooksPage().loadParameters(request, response); | 171 sessionBean.getBooksPage().loadParameters(request, response); |
172 sessionBean.getBooksPage().loadBooks(); | 172 sessionBean.getBooksPage().loadBooks(); |
173 | 173 // TODO: add a "update" to forceLoadBooks() |
174 %> | 174 %> |
175 | 175 |
176 <label class="subTitel">List of Books</label> | 176 <div class="subTitel">List of Books |
177 | 177 <p class="label">Total <%= sessionBean.getBooksPage().getBookNumber() %> books</p> |
178 </div> | |
178 <form name="booksForm" | 179 <form name="booksForm" |
179 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" | 180 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" |
180 method="post" | 181 method="post" |
181 class="contentForm"> | 182 class="contentForm"> |
182 <input name="bean" type="hidden" value="booksBean" /> | 183 <input name="bean" type="hidden" value="booksBean" /> |
183 | 184 |
184 <table style="width: 90%; margin-left: auto;margin-right: auto;" class="pageTable"> | 185 <table style="width: 90%; margin-left: auto;margin-right: auto;" class="pageTable"> |
185 <tr> | 186 <tr> |
186 <td><label class="tableTitle">Book ID</label></td> | 187 <td><label class="tableTitle">Book ID</label></td> |
187 <td><label class="tableTitle">Book Name</label></td> | 188 <td><label class="tableTitle">Book Name</label></td> |
188 <td><label class="tableTitle">Edition</label></td> | 189 <td><label class="tableTitle">Edition</label></td> |
197 <td><label class="tableTitle">TOC Finished</label></td> <!-- finished or not --> | 198 <td><label class="tableTitle">TOC Finished</label></td> <!-- finished or not --> |
198 <td><label class="tableTitle">Last Editor</label></td> | 199 <td><label class="tableTitle">Last Editor</label></td> |
199 <td><label class="tableTitle">Edit Time</label></td> | 200 <td><label class="tableTitle">Edit Time</label></td> |
200 | 201 |
201 </tr> | 202 </tr> |
202 | 203 |
203 <% for(DBBook book : sessionBean.getBooksPage().getCompleteBookList() ) { %> | 204 <% for(DBBook book : sessionBean.getBooksPage().getCompleteBookList() ) { %> |
204 | 205 |
205 <tr> | 206 <tr> |
206 <!-- books info --> | 207 <!-- books info --> |
207 <td><%=book.getId() %></td> | 208 <td><%=book.getId() %></td> |
213 <td><%=book.getDynasty() %></td> | 214 <td><%=book.getDynasty() %></td> |
214 <td><%=book.getAdmin_type() %></td> | 215 <td><%=book.getAdmin_type() %></td> |
215 <td><%=book.getStart_year() %></td> | 216 <td><%=book.getStart_year() %></td> |
216 | 217 |
217 <!-- TODO --> | 218 <!-- TODO --> |
218 <td>TODO<input type="submit" value="edit" onclick="setAction('editToc', 'booksForm');"/></td> | 219 <td><a href="<%=sessionBean.getApplicationBean().getTocInterfaceUrl()%>/check_sections_details.php?book_id=<%=book.getId() %>&count=100&sessionId=<%= session.getId()%>" target="blank"> |
220 Edit TOC</a></td> | |
221 | |
219 <td>TODO<input type="checkbox" name="finished" value="0" <%= (book.getTocCorrection() == 1) ? "checked" : "" %>/><label>Finished</label></td> | 222 <td>TODO<input type="checkbox" name="finished" value="0" <%= (book.getTocCorrection() == 1) ? "checked" : "" %>/><label>Finished</label></td> |
220 <td><%= (book.getCurrentSectionVersion() == null) ? "" : book.getCurrentSectionVersion().getEditor() %></td> | 223 <td><%= (book.getCurrentSectionVersion() == null) ? "" : book.getCurrentSectionVersion().getEditor() %></td> |
221 <td><%= (book.getCurrentSectionVersion() == null) ? "" : book.getCurrentSectionVersion().getDate() %></td> | 224 <td><%= (book.getCurrentSectionVersion() == null) ? "" : book.getCurrentSectionVersion().getDate() %></td> |
222 </tr> | 225 </tr> |
223 | 226 |
224 <% } %> | 227 <% } %> |
225 </table> | 228 </table> |
226 <!-- | 229 |
227 <table> | |
228 <tr> | |
229 <td><input type="submit" value="Reload" onclick="setAction('reloadBranches', 'homeForm');"/> </td> | |
230 </tr> | |
231 </table> | |
232 --> | |
233 </form> | 230 </form> |
234 <% } %> | 231 <% } %> |
235 </div> | 232 </div> |
236 | 233 |
237 </body> | 234 </body> |