-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.jsp
More file actions
72 lines (70 loc) · 2.96 KB
/
home.jsp
File metadata and controls
72 lines (70 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<%@ page import="java.util.Map" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Book Managment System</title>
<link rel="stylesheet" href="css/shared.css">
<link rel="stylesheet" href="css/home.css">
<link rel="icon" href="img/logo.png" />
</head>
<body>
<header class="main-header">
<nav class="main-nav">
<div class="logo">
<a href="howe">
<img src="img/logo.png" alt="" width="40" height="40">
</a>
</div>
<a href="howe" class="astu">A.S.T.U</a>
<ul class="main-nav-items">
<li class="main-nav-item"><a href="borrow">Borrowed</a></li>
<li class="main-nav-item"><a href="return">Return</a></li>
<li class="main-nav-item"><a href="about">About</a></li>
<li class="main-nav-item"><a href="logout">Logout</a></li>
</ul>
</nav>
</header>
<div class="back-drop"></div>
<main>
<h1 class="title">Available Books</h1>
<div class="filter">
<ul class="filter-items">
<li data="All" class="filter-item active">All</li>
<li data="1" class="filter-item">SE</li>
<li data="2" class="filter-item">CSE</li>
<li data="3" class="filter-item">CEA</li>
<li data="4" class="filter-item">Applied</li>
<li data="5" class="filter-item">MCE</li>
<li data="6" class="filter-item">Other</li>
</ul>
</div>
<div class="books">
<%
String pic,bok_name,author,cat_id,qunat;
List<Map<String, Object>> book =(List<Map<String, Object>>) request.getAttribute("bookList");
for (Map<String, Object> bookMap : book) {
// Assign values to the strings
pic =bookMap.get("pic_url").toString();
bok_name =bookMap.get("bok_name").toString();
author =bookMap.get("author").toString();
cat_id = bookMap.get("cat_id").toString();
qunat =bookMap.get("qunat").toString();
%>
<div id="book-container" class="book-container selected <%=cat_id%>">
<div class="book-cover">
<img src="${pageContext.request.contextPath}<%=pic%>" alt="book-Cover">
</div>
<h3 class="book-title"><%= bok_name %></h3>
<h4 class="author"><%= author %></h4>
<h5 class="book_quantity">Quantity =<%= qunat %></h5>
</div>
<%}%>
</div>
</main>
<script src="JS/app.js"></script>
</body>
</html>