rc1
[disksdb.git] / webApp / pages / showalbum.jsp
blob40c1cbbcc94ba0b1efd0cd77c655670a33cbb542
1 <%@ page import="java.util.List"%>
2 <%@ page import="java.util.Iterator"%>
3 <%@ page import="java.util.Iterator"%>
4 <%@ page import="ua.edu.sumdu.lab3.model.Album"%>
6 <%@taglib uri="/WEB-INF/tags/c.tld" prefix="c" %>
7 <%@ taglib uri="/WEB-INF/tags/fmt.tld" prefix="fmt" %>
9 <jsp:useBean id="album" scope="request" class="ua.edu.sumdu.lab3.model.Album" />
11 <html>
12 <head>
13 <title>Discs storage</title>
14 <c:set var="stylepath" value="/pages/css/style.css" />
15 <c:set var="truepath" value="${pageContext.request.contextPath}${stylepath} "/>
16 <link rel="stylesheet" href=<c:out value="${truepath}" /> type="text/css" />
18 </head>
19 <body>
20 <div class="allpage">
21 <%@include file="menu.jsp" %>
22 <c:set var="artpath" value="/artist?id=" />
23 <c:set var="lblpath" value="/label?id=" />
24 <c:set var="genrepath" value="?genre=" />
25 <c:set var="truepath" value="${pageContext.request.contextPath}${albumspath}${genrepath}"/>
27 <p style = "margin-left: 200px">
28 <a href = "<c:out value= "${pageContext.request.contextPath}" /> ">Main</a>&rarr;
29 <a href= "<c:out value= "${pageContext.request.contextPath}/search?search=${album.artistName}&by=artist" />" >Albums of <c:out value="${album.artistName}" /></a>&rarr;
30 <font color = "red"><c:out value="${album.name}" /></font>
31 </p>
33 <div class="maincont">
35 <img src=<c:out value="${album.cover}" /> width="220" height="220" align="left" alt="cover" style = "margin-right: 15px;" />
36 <h1> <c:out value="${album.name}" /> by <a href=<c:out value= "${pageContext.request.contextPath}${artpath}${album.artist}" />><c:out value="${album.artistName}" /></a> </h1>
37 <p><b>Type: </b><c:out value="${album.type}" /></p>
38 <p><b>Release: </b> <fmt:formatDate pattern="dd.MM.yyyy" value="${album.release}" /> </p>
39 <p><b>Label: </b><a href=<c:out value= "${pageContext.request.contextPath}${lblpath}${album.label}" />> <c:out value="${album.labelName}" /></a></p>
40 <p><b>Genre: </b> <a href=<c:out value="${truepath}${album.genre}" /> ><c:out value="${album.genre}" /></a></p>
41 <p>
42 <b>Review: </b> <br />
43 <i><c:out value="${album.review}" /></i>
44 </p>
45 <p>
46 <a href = <c:out value= "${pageContext.request.contextPath}/editalbum?id=${album.id}" /> >Edit</a>
47 </p>
48 </div>
49 </div>
50 </body>
51 </html>