added header to all JSPs

This commit is contained in:
Mic 2013-01-14 00:08:37 +08:00
parent 58d82e461a
commit 5139c8d3bc
8 changed files with 106 additions and 76 deletions

View file

@ -10,8 +10,11 @@
<jsp:include page="../header.jsp"/>
<body>
<div id="main">
<div id="header">
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
<img src="${banner}" />
</div>
<div id="main">
<c:choose>
<c:when test="${owner['new']}"><c:set var="method" value="post"/></c:when>
<c:otherwise><c:set var="method" value="put"/></c:otherwise>

View file

@ -9,43 +9,46 @@
<jsp:include page="../header.jsp"/>
<body>
<div id="header">
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
<img src="${banner}" />
</div>
<div id="main">
<div id="main">
<h2>Owners:</h2>
<h2>Owners:</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Address</th>
<th>City</th>
<th>Telephone</th>
<th>Pets</th>
</tr>
</thead>
<c:forEach var="owner" items="${selections}">
<tr>
<td>
<spring:url value="owners/{ownerId}" var="ownerUrl">
<spring:param name="ownerId" value="${owner.id}"/>
</spring:url>
<a href="${fn:escapeXml(ownerUrl)}">${owner.firstName} ${owner.lastName}</a>
</td>
<td>${owner.address}</td>
<td>${owner.city}</td>
<td>${owner.telephone}</td>
<td>
<c:forEach var="pet" items="${owner.pets}">
${pet.name} &nbsp;
</c:forEach>
</td>
</tr>
</c:forEach>
</table>
<table>
<thead>
<tr>
<th>Name</th>
<th>Address</th>
<th>City</th>
<th>Telephone</th>
<th>Pets</th>
</tr>
</thead>
<c:forEach var="owner" items="${selections}">
<tr>
<td>
<spring:url value="owners/{ownerId}" var="ownerUrl">
<spring:param name="ownerId" value="${owner.id}"/>
</spring:url>
<a href="${fn:escapeXml(ownerUrl)}">${owner.firstName} ${owner.lastName}</a>
</td>
<td>${owner.address}</td>
<td>${owner.city}</td>
<td>${owner.telephone}</td>
<td>
<c:forEach var="pet" items="${owner.pets}">
${pet.name} &nbsp;
</c:forEach>
</td>
</tr>
</c:forEach>
</table>
</div>
<jsp:include page="../footer.jsp"/>
</div>
<jsp:include page="../footer.jsp"/>
</body>
</html>

View file

@ -9,7 +9,11 @@
<body>
<div id="main">
<div id="header">
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
<img src="${banner}" />
</div>
<div id="main">
<h2>Find Owners:</h2>

View file

@ -9,6 +9,10 @@
<body>
<div id="header">
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
<img src="${banner}" />
</div>
<div id="main">
<h2>Owner Information</h2>

View file

@ -8,8 +8,12 @@
<jsp:include page="../header.jsp"/>
<body>
<div id="header">
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
<img src="${banner}" />
</div>
<div id="main">
<div id="main">
<c:choose>
<c:when test="${pet['new']}"><c:set var="method" value="post"/></c:when>
<c:otherwise><c:set var="method" value="put"/></c:otherwise>

View file

@ -9,8 +9,12 @@
<jsp:include page="../header.jsp"/>
<body>
<div id="header">
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
<img src="${banner}" />
</div>
<div id="main">
<div id="main">
<h2><c:if test="${visit['new']}">New </c:if>Visit:</h2>

View file

@ -8,42 +8,46 @@
<jsp:include page="header.jsp"/>
<body>
<div id="header">
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
<img src="${banner}" />
</div>
<div id="main">
<div id="main">
<h2>Veterinarians:</h2>
<h2>Veterinarians:</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Specialties</th>
</tr>
</thead>
<tbody>
<c:forEach var="vet" items="${vets.vetList}">
<tr>
<td>${vet.firstName} ${vet.lastName}</td>
<td>
<c:forEach var="specialty" items="${vet.specialties}">
${specialty.name}
</c:forEach>
<c:if test="${vet.nrOfSpecialties == 0}">none</c:if>
</td>
<table>
<thead>
<tr>
<th>Name</th>
<th>Specialties</th>
</tr>
</c:forEach>
</tbody>
</table>
<table class="table-buttons">
<tr>
<td>
<a href="<spring:url value="/vets.xml" htmlEscape="true" />">View as XML</a>
</td>
</tr>
</table>
</thead>
<tbody>
<c:forEach var="vet" items="${vets.vetList}">
<tr>
<td>${vet.firstName} ${vet.lastName}</td>
<td>
<c:forEach var="specialty" items="${vet.specialties}">
${specialty.name}
</c:forEach>
<c:if test="${vet.nrOfSpecialties == 0}">none</c:if>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<table class="table-buttons">
<tr>
<td>
<a href="<spring:url value="/vets.xml" htmlEscape="true" />">View as XML</a>
</td>
</tr>
</table>
</div>
<jsp:include page="footer.jsp"/>
</body>
</div>
<jsp:include page="footer.jsp"/>
</body>
</html>

View file

@ -7,6 +7,10 @@
<jsp:include page="header.jsp"/>
<body>
<div id="header">
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
<img src="${banner}" />
</div>
<div id="main">
<img src="<spring:url value="/resources/images/pets.png" htmlEscape="true" />" align="right" style="position:relative;right:30px;"></img>