mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:35:49 +00:00
added header to all JSPs
This commit is contained in:
parent
58d82e461a
commit
5139c8d3bc
8 changed files with 106 additions and 76 deletions
|
@ -10,8 +10,11 @@
|
||||||
<jsp:include page="../header.jsp"/>
|
<jsp:include page="../header.jsp"/>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<div id="header">
|
||||||
<div id="main">
|
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
|
||||||
|
<img src="${banner}" />
|
||||||
|
</div>
|
||||||
|
<div id="main">
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${owner['new']}"><c:set var="method" value="post"/></c:when>
|
<c:when test="${owner['new']}"><c:set var="method" value="post"/></c:when>
|
||||||
<c:otherwise><c:set var="method" value="put"/></c:otherwise>
|
<c:otherwise><c:set var="method" value="put"/></c:otherwise>
|
||||||
|
|
|
@ -9,43 +9,46 @@
|
||||||
<jsp:include page="../header.jsp"/>
|
<jsp:include page="../header.jsp"/>
|
||||||
|
|
||||||
<body>
|
<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>
|
||||||
<table>
|
<tr>
|
||||||
<thead>
|
<th>Name</th>
|
||||||
<tr>
|
<th>Address</th>
|
||||||
<th>Name</th>
|
<th>City</th>
|
||||||
<th>Address</th>
|
<th>Telephone</th>
|
||||||
<th>City</th>
|
<th>Pets</th>
|
||||||
<th>Telephone</th>
|
</tr>
|
||||||
<th>Pets</th>
|
</thead>
|
||||||
</tr>
|
<c:forEach var="owner" items="${selections}">
|
||||||
</thead>
|
<tr>
|
||||||
<c:forEach var="owner" items="${selections}">
|
<td>
|
||||||
<tr>
|
<spring:url value="owners/{ownerId}" var="ownerUrl">
|
||||||
<td>
|
<spring:param name="ownerId" value="${owner.id}"/>
|
||||||
<spring:url value="owners/{ownerId}" var="ownerUrl">
|
</spring:url>
|
||||||
<spring:param name="ownerId" value="${owner.id}"/>
|
<a href="${fn:escapeXml(ownerUrl)}">${owner.firstName} ${owner.lastName}</a>
|
||||||
</spring:url>
|
</td>
|
||||||
<a href="${fn:escapeXml(ownerUrl)}">${owner.firstName} ${owner.lastName}</a>
|
<td>${owner.address}</td>
|
||||||
</td>
|
<td>${owner.city}</td>
|
||||||
<td>${owner.address}</td>
|
<td>${owner.telephone}</td>
|
||||||
<td>${owner.city}</td>
|
<td>
|
||||||
<td>${owner.telephone}</td>
|
<c:forEach var="pet" items="${owner.pets}">
|
||||||
<td>
|
${pet.name}
|
||||||
<c:forEach var="pet" items="${owner.pets}">
|
</c:forEach>
|
||||||
${pet.name}
|
</td>
|
||||||
</c:forEach>
|
</tr>
|
||||||
</td>
|
</c:forEach>
|
||||||
</tr>
|
</table>
|
||||||
</c:forEach>
|
|
||||||
</table>
|
</div>
|
||||||
|
<jsp:include page="../footer.jsp"/>
|
||||||
</div>
|
|
||||||
<jsp:include page="../footer.jsp"/>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -9,7 +9,11 @@
|
||||||
|
|
||||||
<body>
|
<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>
|
<h2>Find Owners:</h2>
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@
|
||||||
|
|
||||||
<body>
|
<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>Owner Information</h2>
|
<h2>Owner Information</h2>
|
||||||
|
|
|
@ -8,8 +8,12 @@
|
||||||
<jsp:include page="../header.jsp"/>
|
<jsp:include page="../header.jsp"/>
|
||||||
|
|
||||||
<body>
|
<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:choose>
|
||||||
<c:when test="${pet['new']}"><c:set var="method" value="post"/></c:when>
|
<c:when test="${pet['new']}"><c:set var="method" value="post"/></c:when>
|
||||||
<c:otherwise><c:set var="method" value="put"/></c:otherwise>
|
<c:otherwise><c:set var="method" value="put"/></c:otherwise>
|
||||||
|
|
|
@ -9,8 +9,12 @@
|
||||||
<jsp:include page="../header.jsp"/>
|
<jsp:include page="../header.jsp"/>
|
||||||
|
|
||||||
<body>
|
<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>
|
<h2><c:if test="${visit['new']}">New </c:if>Visit:</h2>
|
||||||
|
|
||||||
|
|
|
@ -8,42 +8,46 @@
|
||||||
<jsp:include page="header.jsp"/>
|
<jsp:include page="header.jsp"/>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<div id="header">
|
||||||
<div id="main">
|
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
|
||||||
|
<img src="${banner}" />
|
||||||
<h2>Veterinarians:</h2>
|
</div>
|
||||||
|
|
||||||
<table>
|
<div id="main">
|
||||||
<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>
|
|
||||||
</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>
|
<h2>Veterinarians:</h2>
|
||||||
<jsp:include page="footer.jsp"/>
|
|
||||||
</body>
|
<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>
|
||||||
|
</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>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
<jsp:include page="header.jsp"/>
|
<jsp:include page="header.jsp"/>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<div id="header">
|
||||||
|
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
|
||||||
|
<img src="${banner}" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<img src="<spring:url value="/resources/images/pets.png" htmlEscape="true" />" align="right" style="position:relative;right:30px;"></img>
|
<img src="<spring:url value="/resources/images/pets.png" htmlEscape="true" />" align="right" style="position:relative;right:30px;"></img>
|
||||||
|
|
Loading…
Reference in a new issue