import sources from develop/0.1.0
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
<%@ page language="java"%>
|
||||
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
|
||||
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
|
||||
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
|
||||
|
||||
<html:html locale="true">
|
||||
<head>
|
||||
<html:base />
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
<title>Comic Application</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" width="100%" height="100%" cellpadding="5">
|
||||
<colgroup>
|
||||
<col width="10%">
|
||||
<col width="80%">
|
||||
<col width="10%">
|
||||
</colgroup>
|
||||
<!-- Kopfbereich -->
|
||||
<tr bgcolor="lightgrey" height="10%">
|
||||
<td align="center" colspan="3"><b>Liste der Comics</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="tan" valign="top" with="100">
|
||||
<% out.println(com.peetz.comics.navigation.MenuLinks.getInstance().toString()); %>
|
||||
</td>
|
||||
<td bgcolor="wheat" valign="top">
|
||||
<p>Comic Manager</p>
|
||||
Show the comic list
|
||||
|
||||
<table border="1">
|
||||
<tbody>
|
||||
<%-- set the header --%>
|
||||
<tr>
|
||||
<td>Comic name</td>
|
||||
<td>Publisher</td>
|
||||
<td>Order</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%-- check if book exists and display message or iterate over books --%>
|
||||
<logic:empty name="comicListForm" property="comicViews">
|
||||
<tr>
|
||||
<td colspan="5">No comics available</td>
|
||||
</tr>
|
||||
</logic:empty>
|
||||
<logic:notEmpty name="comicListForm" property="comicViews">
|
||||
<logic:iterate name="comicListForm" property="comicViews" id="comic">
|
||||
<tr>
|
||||
<%-- print out the book informations --%>
|
||||
<td><bean:write name="comic" property="title" /></td>
|
||||
<td><bean:write name="comic" property="publisher" /></td>
|
||||
<td><html:checkbox name="comic" property="currentOrder" /></td>
|
||||
<%-- print out the edit and delete link for each book --%>
|
||||
<td><html:link action="comicEdit.do?do=editComic" paramName="comic"
|
||||
paramProperty="id" paramId="id">Edit</html:link></td>
|
||||
<td><html:link action="comicEdit.do?do=deleteComic" paramName="comic"
|
||||
paramProperty="id" paramId="id">Delete</html:link></td>
|
||||
</tr>
|
||||
</logic:iterate>
|
||||
</logic:notEmpty>
|
||||
<%-- end interate --%>
|
||||
|
||||
<%-- if books cannot be found display a text --%>
|
||||
<logic:notPresent name="comic">
|
||||
<tr>
|
||||
<td colspan="5">No comicss found.</td>
|
||||
</tr>
|
||||
</logic:notPresent>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<%-- add and back to menu button --%>
|
||||
<html:button property="add" onclick="location.href='../comicEdit.do?do=addComic'">Add a new comic</html:button>
|
||||
|
||||
<html:button property="back" onclick="location.href='default.do'">Back to menu
|
||||
</html:button>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
<!-- Rechter Navigationsbereich -->
|
||||
<td bgcolor="tan" with="15%"> </td>
|
||||
</tr>
|
||||
<!-- Fussbereich -->
|
||||
<tr bgcolor="lightgrey" height="10%">
|
||||
<td align="right" colspan="3">
|
||||
<p>Ingenieurbüro Thomas Peetz</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html:html>
|
||||
Reference in New Issue
Block a user