-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9dafd93
commit ea719d3
Showing
8 changed files
with
146 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<%@ page session="false" %> | ||
<%@ page contentType="text/html;charset=UTF-8" language="java" %> | ||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | ||
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %> | ||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> | ||
|
||
<spring:url value="/guides/statistics" var="statistics"></spring:url> | ||
|
||
<html> | ||
<jsp:include page="../head.jsp"></jsp:include> | ||
<body> | ||
<jsp:include page="../menu.jsp"></jsp:include> | ||
|
||
<!-- Page content --> | ||
<div class="w3-container w3-content w3-center w3-padding-64 w3-card-8" style="max-width: 800px; margin-top: 100px" > | ||
<h2 class="w3-wide">Find statistics in time slot:</h2> | ||
<div class="w3-container w3-content w3-center" style="max-width:280px"> | ||
<form method="POST" action="${statistics}"> | ||
<p>From: <input type="datetime-local" name="start" value="${start}" class="w3-input w3-border" required="required"/></p> | ||
<p>To: <input type="datetime-local" name="end" value="${end}"class="w3-input w3-border" required="required"/></p> | ||
<p><input type="submit" class="w3-btn-block w3-blue"/></p> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
<!-- Footer --> | ||
<footer | ||
class="w3-container w3-padding-64 w3-center w3-opacity w3-light-grey w3-xlarge"> | ||
</footer> | ||
|
||
</body> | ||
</html> | ||
|
60 changes: 60 additions & 0 deletions
60
WebContent/WEB-INF/views/guides/guidesStatisticsResults.jsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<%@ page session="false" %> | ||
<%@ page contentType="text/html;charset=UTF-8" language="java" %> | ||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | ||
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %> | ||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> | ||
|
||
<spring:url value="/guides" var="all" /> | ||
<spring:url value="/guides/position" var="pos" /> | ||
<spring:url value="/guides/available" var="available" /> | ||
|
||
<html> | ||
<jsp:include page="../head.jsp"></jsp:include> | ||
<body> | ||
<jsp:include page="../menu.jsp"></jsp:include> | ||
|
||
<!-- Page content --> | ||
<div class="w3-content" style="max-width: 2000px; margin-top: 46px"> | ||
<div class="w3-container w3-content w3-center w3-padding-64" | ||
style="max-width: 800px" > | ||
<h2 class="w3-wide">Guides' statistics</h2> | ||
|
||
<c:choose> | ||
<c:when test="${not empty statistics}"> | ||
<table class="w3-table w3-striped w3-border w3-bordered w3-hoverable"> | ||
<thead> | ||
<tr class="w3-light-grey"><th>Guide</th><th>Total tours</th><th>Total tours' duration</th></tr> | ||
</thead> | ||
<c:forEach items="${statistics}" var="current"> | ||
<tr> | ||
<td>${current.firstName} ${current.lastName}</td> | ||
<td>${current.totalExcursions}</td> | ||
<td>${current.excursionsTotalDuration}</td> | ||
</tr> | ||
</c:forEach> | ||
</table> | ||
</c:when> | ||
<c:otherwise> | ||
<h2 class="w3-wide">not found!</h2> | ||
<p>Try one more time</p> | ||
</c:otherwise> | ||
</c:choose> | ||
<div class="w3-container w3-content w3-center w3-row" style="max-width: 260px"> | ||
<p><a href="${all}" class="w3-btn-block w3-black">Our guides</a></p> | ||
<p><a href="${pos}" class="w3-btn-block w3-black">Find guides by position</a></p> | ||
<p><a href="${available}" class="w3-btn-block w3-black">Find available guides</a></p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<br /> | ||
|
||
<!-- Footer --> | ||
<footer | ||
class="w3-container w3-padding-64 w3-center w3-opacity w3-light-grey w3-xlarge"> | ||
</footer> | ||
|
||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters