import sources from develop/0.1.0
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
apply plugin: 'war'
|
||||
|
||||
version = '0.0.1'
|
||||
|
||||
dependencies {
|
||||
compile project(':LibraryImpl')
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package com.peetz.library.view;
|
||||
|
||||
import com.peetz.library.service.LibraryService;
|
||||
import java.io.Serializable;
|
||||
import java.util.logging.Logger;
|
||||
import javax.ejb.EJB;
|
||||
import javax.faces.bean.ManagedBean;
|
||||
import javax.faces.bean.RequestScoped;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author tpeetz
|
||||
*/
|
||||
@ManagedBean(name="LibraryView")
|
||||
@RequestScoped
|
||||
public class LibraryView implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -6251848426914654974L;
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(LibraryView.class.getName());
|
||||
|
||||
@EJB
|
||||
private LibraryService libraryService;
|
||||
|
||||
public LibraryView() {
|
||||
LOG.info("LibraryView created");
|
||||
}
|
||||
|
||||
public Integer getBookNumber() {
|
||||
return libraryService.getAllBooks().size();
|
||||
}
|
||||
|
||||
public Integer getArticleNumber() {
|
||||
return libraryService.getAllArticles().size();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<html>
|
||||
<head><title>Library Application</title></head>
|
||||
<body bgcolor="white">
|
||||
<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>Library Manager</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="tan" valign="top" with="100"><a href="/kontor">Kontor</a></td>
|
||||
<td bgcolor="wheat" valign="top">
|
||||
<p>Library Manager</p>
|
||||
<a href="jsp/bookList.jsp">Show the book list</a>
|
||||
</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>
|
||||
@@ -0,0 +1,67 @@
|
||||
<%@ 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>Library Application</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" width="100%" height="100%">
|
||||
<colgroup>
|
||||
<col width="10%">
|
||||
<col width="80%">
|
||||
<col width="10%">
|
||||
</colgroup>
|
||||
<!-- Kopfbereich -->
|
||||
<tr bgcolor="lightgrey" height="10%">
|
||||
<td align="center" colspan="3"><b>Library Manager</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" valign="top" with="100">
|
||||
<% out.println(com.peetz.library.navigation.MenuLinks.getInstance().toString()); %>
|
||||
</td>
|
||||
<td bgcolor="papayawhip">
|
||||
<%-- create a html form --%>
|
||||
<html:form action="articleEdit">
|
||||
<%-- print out the form data --%>
|
||||
<table border="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Title:</td>
|
||||
<td><html:text property="title" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<%-- set the parameter for the dispatch action --%>
|
||||
<html:hidden property="do" value="saveArticle" />
|
||||
|
||||
<br>
|
||||
<%-- submit and back button --%>
|
||||
<html:button property="back"
|
||||
onclick="history.back();">
|
||||
Back
|
||||
</html:button>
|
||||
|
||||
<html:submit>Save</html:submit>
|
||||
</html:form>
|
||||
</td>
|
||||
<!-- Rechter Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" 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>
|
||||
@@ -0,0 +1,69 @@
|
||||
<%@ 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>Library Application</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" width="100%" height="100%">
|
||||
<colgroup>
|
||||
<col width="10%">
|
||||
<col width="80%">
|
||||
<col width="10%">
|
||||
</colgroup>
|
||||
<!-- Kopfbereich -->
|
||||
<tr bgcolor="lightgrey" height="10%">
|
||||
<td align="center" colspan="3"><b>Library Manager</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" valign="top" with="100">
|
||||
<% out.println(com.peetz.library.navigation.MenuLinks.getInstance().toString()); %>
|
||||
</td>
|
||||
<td bgcolor="papayawhip" valign="top">
|
||||
<%-- create a html form --%>
|
||||
<html:form action="articleEdit">
|
||||
<%-- print out the form data --%>
|
||||
<table border="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Titel:</td>
|
||||
<td><html:text property="title" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<%-- hidden fields for id and userId --%>
|
||||
<html:hidden property="id" />
|
||||
<%-- set the parameter for the dispatch action --%>
|
||||
<html:hidden property="do" value="saveArticle" />
|
||||
|
||||
<br>
|
||||
<%-- submit and back button --%>
|
||||
<html:button property="back"
|
||||
onclick="history.back();">
|
||||
Back
|
||||
</html:button>
|
||||
|
||||
<html:submit>Save</html:submit>
|
||||
</html:form>
|
||||
</td>
|
||||
<!-- Rechter Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" 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>
|
||||
@@ -0,0 +1,90 @@
|
||||
<%@ 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>Library Application</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" width="100%" height="100%">
|
||||
<colgroup>
|
||||
<col width="10%">
|
||||
<col width="80%">
|
||||
<col width="10%">
|
||||
</colgroup>
|
||||
<!-- Kopfbereich -->
|
||||
<tr bgcolor="lightgrey" height="10%">
|
||||
<td align="center" colspan="3"><b>Show article list</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" valign="top" with="100">
|
||||
<% out.println(com.peetz.library.navigation.MenuLinks.getInstance().toString()); %>
|
||||
</td>
|
||||
<td bgcolor="papayawhip" valign="top">
|
||||
<table border="1">
|
||||
<tbody>
|
||||
<%-- set the header --%>
|
||||
<tr>
|
||||
<td>Article Title</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%-- check if article exists and display message or iterate over articles --%>
|
||||
<logic:empty name="articleListForm" property="articleViews">
|
||||
<tr>
|
||||
<td colspan="5">No articles available</td>
|
||||
</tr>
|
||||
</logic:empty>
|
||||
<logic:notEmpty name="articleListForm" property="articleViews">
|
||||
<logic:iterate name="articleListForm" property="articleViews" id="article">
|
||||
<tr>
|
||||
<%-- print out the article informations --%>
|
||||
<td><bean:write name="article" property="title" /></td>
|
||||
<%-- print out the edit and delete link for each article --%>
|
||||
<td><html:link action="articleEdit.do?do=editArticle" paramName="article"
|
||||
paramProperty="id" paramId="id">Edit</html:link></td>
|
||||
<td><html:link action="articleEdit.do?do=deleteArticle" paramName="article"
|
||||
paramProperty="id" paramId="id">Delete</html:link></td>
|
||||
</tr>
|
||||
</logic:iterate>
|
||||
</logic:notEmpty>
|
||||
<%-- end interate --%>
|
||||
|
||||
<%-- if articles cannot be found display a text --%>
|
||||
<logic:notPresent name="article">
|
||||
<tr>
|
||||
<td colspan="5">No articles found.</td>
|
||||
</tr>
|
||||
</logic:notPresent>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<%-- add and back to menu button --%>
|
||||
<html:button property="add" onclick="location.href='../articleEdit.do?do=addArticle'">Add a new article
|
||||
</html:button>
|
||||
|
||||
<html:button property="back" onclick="location.href='default.do'">Back to menu
|
||||
</html:button>
|
||||
|
||||
</td>
|
||||
<!-- Rechter Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" 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>
|
||||
@@ -0,0 +1,68 @@
|
||||
<%@ 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>Library Application</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" width="100%" height="100%">
|
||||
<colgroup>
|
||||
<col width="10%">
|
||||
<col width="80%">
|
||||
<col width="10%">
|
||||
</colgroup>
|
||||
<!-- Kopfbereich -->
|
||||
<tr bgcolor="lightgrey" height="10%">
|
||||
<td align="center" colspan="3"><b>Library Manager</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" valign="top" with="100">
|
||||
<% out.println(com.peetz.library.navigation.MenuLinks.getInstance().toString()); %>
|
||||
</td>
|
||||
<td bgcolor="papayawhip" valign="top">
|
||||
<%-- create a html form --%>
|
||||
<html:form action="boardEdit">
|
||||
<%-- print out the form data --%>
|
||||
<table border="1">
|
||||
<thead><tr><td colspan="3">Shelf: <bean:write name="boardEditForm" property="shelfTitle"></bean:write></td></tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Title:</td>
|
||||
<td><html:text property="title" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<%-- set the parameter for the dispatch action --%>
|
||||
<html:hidden property="do" value="saveBoard" />
|
||||
|
||||
<br>
|
||||
<%-- submit and back button --%>
|
||||
<html:button property="back"
|
||||
onclick="history.back();">
|
||||
Back
|
||||
</html:button>
|
||||
|
||||
<html:submit>Save</html:submit>
|
||||
</html:form>
|
||||
</td>
|
||||
<!-- Rechter Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" 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>
|
||||
@@ -0,0 +1,67 @@
|
||||
<%@ 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>Library Application</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" width="100%" height="100%">
|
||||
<colgroup>
|
||||
<col width="10%">
|
||||
<col width="80%">
|
||||
<col width="10%">
|
||||
</colgroup>
|
||||
<!-- Kopfbereich -->
|
||||
<tr bgcolor="lightgrey" height="10%">
|
||||
<td align="center" colspan="3"><b>Library Manager</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" valign="top" with="100">
|
||||
<% out.println(com.peetz.library.navigation.MenuLinks.getInstance().toString()); %>
|
||||
</td>
|
||||
<td bgcolor="papayawhip">
|
||||
<%-- create a html form --%>
|
||||
<html:form action="boardEdit">
|
||||
<%-- print out the form data --%>
|
||||
<table border="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Title:</td>
|
||||
<td><html:text property="title" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<%-- set the parameter for the dispatch action --%>
|
||||
<html:hidden property="do" value="saveBoard" />
|
||||
|
||||
<br>
|
||||
<%-- submit and back button --%>
|
||||
<html:button property="back"
|
||||
onclick="history.back();">
|
||||
Back
|
||||
</html:button>
|
||||
|
||||
<html:submit>Save</html:submit>
|
||||
</html:form>
|
||||
</td>
|
||||
<!-- Rechter Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" 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>
|
||||
@@ -0,0 +1,67 @@
|
||||
<%@ 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>Library Application</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" width="100%" height="100%">
|
||||
<colgroup>
|
||||
<col width="10%">
|
||||
<col width="80%">
|
||||
<col width="10%">
|
||||
</colgroup>
|
||||
<!-- Kopfbereich -->
|
||||
<tr bgcolor="lightgrey" height="10%">
|
||||
<td align="center" colspan="3"><b>Library Manager</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" valign="top" with="100">
|
||||
<% out.println(com.peetz.library.navigation.MenuLinks.getInstance().toString()); %>
|
||||
</td>
|
||||
<td bgcolor="papayawhip">
|
||||
<%-- create a html form --%>
|
||||
<html:form action="bookEdit">
|
||||
<%-- print out the form data --%>
|
||||
<table border="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Title:</td>
|
||||
<td><html:text property="title" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<%-- set the parameter for the dispatch action --%>
|
||||
<html:hidden property="do" value="saveBook" />
|
||||
|
||||
<br>
|
||||
<%-- submit and back button --%>
|
||||
<html:button property="back"
|
||||
onclick="history.back();">
|
||||
Back
|
||||
</html:button>
|
||||
|
||||
<html:submit>Save</html:submit>
|
||||
</html:form>
|
||||
</td>
|
||||
<!-- Rechter Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" 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>
|
||||
@@ -0,0 +1,85 @@
|
||||
<%@ 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>Library Application</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" width="100%" height="100%">
|
||||
<colgroup>
|
||||
<col width="10%">
|
||||
<col width="80%">
|
||||
<col width="10%">
|
||||
</colgroup>
|
||||
<!-- Kopfbereich -->
|
||||
<tr bgcolor="lightgrey" height="10%">
|
||||
<td align="center" colspan="3"><b>Library Manager</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" valign="top" with="100">
|
||||
<% out.println(com.peetz.library.navigation.MenuLinks.getInstance().toString()); %>
|
||||
</td>
|
||||
<td bgcolor="papayawhip" valign="top">
|
||||
<%-- create a html form --%>
|
||||
<html:form action="bookEdit">
|
||||
<%-- print out the form data --%>
|
||||
<table border="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Titel:</td>
|
||||
<td><html:text property="title" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Autor:</td>
|
||||
<td><html:text property="author" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Verlag:</td>
|
||||
<td><html:text property="publisher" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ISBN:</td>
|
||||
<td><html:text property="isbn" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Seiten:</td>
|
||||
<td><html:text property="pages" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<%-- hidden fields for id and userId --%>
|
||||
<html:hidden property="id" />
|
||||
<%-- set the parameter for the dispatch action --%>
|
||||
<html:hidden property="do" value="saveBook" />
|
||||
|
||||
<br>
|
||||
<%-- submit and back button --%>
|
||||
<html:button property="back"
|
||||
onclick="history.back();">
|
||||
Back
|
||||
</html:button>
|
||||
|
||||
<html:submit>Save</html:submit>
|
||||
</html:form>
|
||||
</td>
|
||||
<!-- Rechter Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" 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>
|
||||
@@ -0,0 +1,33 @@
|
||||
<html>
|
||||
<head><title>Library Application</title></head>
|
||||
<body bgcolor="white">
|
||||
<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>Library Manager</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="tan" valign="top" with="100"><a href="/kontor">Kontor</a></td>
|
||||
<td bgcolor="wheat" valign="top">
|
||||
<p>Library Manager</p>
|
||||
|
||||
</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>
|
||||
@@ -0,0 +1,58 @@
|
||||
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
|
||||
pageEncoding="ISO-8859-1"%>
|
||||
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
|
||||
<%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html:html locale="true">
|
||||
<head>
|
||||
<html:base />
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
<title>Library Application</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" width="100%" height="100%">
|
||||
<colgroup>
|
||||
<col width="10%">
|
||||
<col width="80%">
|
||||
<col width="10%">
|
||||
</colgroup>
|
||||
<!-- Kopfbereich -->
|
||||
<tr bgcolor="lightgrey" height="10%">
|
||||
<td align="center" colspan="3"><b>Library Manager</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" valign="top" width="100">
|
||||
<% out.println(com.peetz.library.navigation.MenuLinks.getInstance().toString()); %>
|
||||
</td>
|
||||
<td bgcolor="papayawhip" valign="top">
|
||||
<p>Library Manager</p>
|
||||
<html:link action="bookList">Show the booklist</html:link>
|
||||
<br>
|
||||
Import CD List
|
||||
<br>
|
||||
<html:form action="importBook" method="post" enctype="multipart/form-data">
|
||||
<html:file property="dataFile"></html:file>
|
||||
<html:submit>Import Books</html:submit>
|
||||
</html:form>
|
||||
<br>
|
||||
<html:link action="shelfList">Show the bookshelfs</html:link>
|
||||
<br>
|
||||
<html:link action="articleList">Show the articles</html:link>
|
||||
</td>
|
||||
<!-- Rechter Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" 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>
|
||||
@@ -0,0 +1,67 @@
|
||||
<%@ 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>Library Application</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" width="100%" height="100%">
|
||||
<colgroup>
|
||||
<col width="10%">
|
||||
<col width="80%">
|
||||
<col width="10%">
|
||||
</colgroup>
|
||||
<!-- Kopfbereich -->
|
||||
<tr bgcolor="lightgrey" height="10%">
|
||||
<td align="center" colspan="3"><b>Library Manager</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" valign="top" with="100">
|
||||
<% out.println(com.peetz.library.navigation.MenuLinks.getInstance().toString()); %>
|
||||
</td>
|
||||
<td bgcolor="papayawhip">
|
||||
<%-- create a html form --%>
|
||||
<html:form action="shelfEdit">
|
||||
<%-- print out the form data --%>
|
||||
<table border="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Title:</td>
|
||||
<td><html:text property="title" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<%-- set the parameter for the dispatch action --%>
|
||||
<html:hidden property="do" value="saveShelf" />
|
||||
|
||||
<br>
|
||||
<%-- submit and back button --%>
|
||||
<html:button property="back"
|
||||
onclick="history.back();">
|
||||
Back
|
||||
</html:button>
|
||||
|
||||
<html:submit>Save</html:submit>
|
||||
</html:form>
|
||||
</td>
|
||||
<!-- Rechter Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" 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>
|
||||
@@ -0,0 +1,92 @@
|
||||
<%@ 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>Library Application</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" width="100%" height="100%">
|
||||
<colgroup>
|
||||
<col width="10%">
|
||||
<col width="80%">
|
||||
<col width="10%">
|
||||
</colgroup>
|
||||
<!-- Kopfbereich -->
|
||||
<tr bgcolor="lightgrey" height="10%">
|
||||
<td align="center" colspan="3"><b>Library Manager</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" valign="top" with="100">
|
||||
<% out.println(com.peetz.library.navigation.MenuLinks.getInstance().toString()); %>
|
||||
</td>
|
||||
<td bgcolor="papayawhip" valign="top">
|
||||
<%-- create a html form --%>
|
||||
<html:form action="shelfEdit">
|
||||
<%-- print out the form data --%>
|
||||
<table border="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Title:</td>
|
||||
<td><html:text property="title" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<%-- hidden fields for id and userId --%>
|
||||
<html:hidden property="id" />
|
||||
<%-- set the parameter for the dispatch action --%>
|
||||
<html:hidden property="do" value="saveShelf" />
|
||||
|
||||
<br>
|
||||
<table border="1">
|
||||
<tr><td>Shelfboard</td><td> </td><td> </td></tr>
|
||||
<logic:empty name="shelfEditForm" property="shelfBoardViews">
|
||||
<tr><td>No boards available</td></tr>
|
||||
</logic:empty>
|
||||
<logic:notEmpty name="shelfEditForm" property="shelfBoardViews">
|
||||
<logic:iterate name="shelfEditForm" property="shelfBoardViews" id="board">
|
||||
<tr>
|
||||
<td><bean:write name="board" property="title" /></td>
|
||||
<td><html:link action="boardEdit.do?do=editBoard" paramName="board"
|
||||
paramProperty="id" paramId="id">Edit</html:link></td>
|
||||
<td><html:link action="boardEdit.do?do=deleteBoard" paramName="board"
|
||||
paramProperty="id" paramId="id">Delete</html:link></td>
|
||||
</tr>
|
||||
</logic:iterate>
|
||||
</logic:notEmpty>
|
||||
|
||||
<logic:notPresent name="board">
|
||||
<tr><td>No boards available</td></tr>
|
||||
</logic:notPresent>
|
||||
<tr><td colspan="3"><html:link action="boardEdit.do?do=addBoard" paramName="shelfEditForm" paramProperty="id" paramId="id">Add board</html:link></td></tr>
|
||||
</table>
|
||||
<br>
|
||||
<%-- submit and back button --%>
|
||||
<html:button property="back"
|
||||
onclick="history.back();">
|
||||
Back
|
||||
</html:button>
|
||||
|
||||
<html:submit>Save</html:submit>
|
||||
</html:form>
|
||||
</td>
|
||||
<!-- Rechter Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" 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>
|
||||
@@ -0,0 +1,91 @@
|
||||
<%@ 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>Library Application</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" width="100%" height="100%">
|
||||
<colgroup>
|
||||
<col width="10%">
|
||||
<col width="80%">
|
||||
<col width="10%">
|
||||
</colgroup>
|
||||
<!-- Kopfbereich -->
|
||||
<tr bgcolor="lightgrey" height="10%">
|
||||
<td align="center" colspan="3"><b>Show shelf list</b></td>
|
||||
</tr>
|
||||
<!-- Hauptbereich -->
|
||||
<tr>
|
||||
<!-- Linker Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" valign="top" with="100">
|
||||
<% out.println(com.peetz.library.navigation.MenuLinks.getInstance().toString()); %>
|
||||
</td>
|
||||
<td bgcolor="papayawhip" valign="top">
|
||||
<table border="1">
|
||||
<tbody>
|
||||
<%-- set the header --%>
|
||||
<tr>
|
||||
<td>Bookshelf name</td>
|
||||
<td># Shelfs</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%-- check if bookshelf exists and display message or iterate over bookshelfs --%>
|
||||
<logic:empty name="shelfListForm" property="shelfViews">
|
||||
<tr>
|
||||
<td colspan="5">No shelfs available</td>
|
||||
</tr>
|
||||
</logic:empty>
|
||||
<logic:notEmpty name="shelfListForm" property="shelfViews">
|
||||
<logic:iterate name="shelfListForm" property="shelfViews" id="shelf">
|
||||
<tr>
|
||||
<%-- print out the book informations --%>
|
||||
<td><bean:write name="shelf" property="title" /></td>
|
||||
<td><bean:write name="shelf" property="shelfBoardNumber" /></td>
|
||||
<%-- print out the edit and delete link for each book --%>
|
||||
<td><html:link action="shelfEdit.do?do=editShelf" paramName="shelf"
|
||||
paramProperty="id" paramId="id">Edit</html:link></td>
|
||||
<td><html:link action="shelfEdit.do?do=deleteShelf" paramName="shelf"
|
||||
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="shelf">
|
||||
<tr>
|
||||
<td colspan="5">No shelfs found.</td>
|
||||
</tr>
|
||||
</logic:notPresent>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<%-- add and back to menu button --%>
|
||||
<html:button property="add" onclick="location.href='../shelfEdit.do?do=addShelf'">Add a new book shelf</html:button>
|
||||
|
||||
<html:button property="back" onclick="location.href='default.do'">Back to menu
|
||||
</html:button>
|
||||
|
||||
</td>
|
||||
<!-- Rechter Navigationsbereich -->
|
||||
<td bgcolor="peachpuff" 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