-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBooks.jsp
61 lines (61 loc) · 1.88 KB
/
Books.jsp
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
<%@ taglib
uri="http://java.sun.com/jsp/jstl/core"
prefix="c" %>
<%@ taglib
uri="http://java.sun.com/jsp/jstl/sql"
prefix="sql" %>
<%@ page import = "java.lang.*" %>
<!DOCTYPE html>
<html style = "background: seagreen;">
<head>
<title>Erehwon Online Shop Books section</title>
<link rel="stylesheet" href="website_style.css" type="text/css" />
</head>
<body>
<div class = "home" >
<a href = "index.jsp"><h3>Welcome to Erehwon online shop</h3></a>
</div>
<div class = "top" >
</div>
<div class = "top2">
<div class = "category_top">
<a href = "reset.jsp" ><button>Reset DataBase</button></a>
<a href = "marks.txt" ><button>Marks</button></a>
<a href = "Logout.jsp" ><button>Logout</button></a>
</div>
</div>
<div class = "Login" >
<div id = "user_login" >
<a href = "Login.jsp" ><button>Login</button></a>
</div>
<div id = "manager_login">
<a href = "manager_login.jsp" ><button>Manager login</button></a>
</div>
</div>
<div class = "page" >
<div class = "category">
<a href = "index.jsp" ><button>Home</button></a>
<a href = "Games.jsp" ><button>Games</button></a>
<a href = "Books.jsp" ><button>Books</button></a>
<a href = "CDs.jsp" ><button>Music</button></a>
<a href = "DVDs.jsp" ><button>DVDs</button></a>
</div>
<div class = "content">
<h1>Books Available</h1>
<sql:query var="result">
select * from inventory
where item_group = "1001";
</sql:query>
<c:forEach var = "item" items = "${result.rows}">
<div class = "boxes">
<h2><c:out value = "${item.item_name}"/></h2>
<p><c:out value = "${item.item_description}"/></p>
<img src = "<c:out value = "${item.item_image_loc}"/>" />
<p>£<c:out value = "${item.item_price}"/></p>
<a href = " "><button>Purchase</button></a>
</div>
</c:forEach>
</div>
</div>
</body>
</html>