-
Notifications
You must be signed in to change notification settings - Fork 0
/
fictionBooks.jspx
79 lines (74 loc) · 2.59 KB
/
fictionBooks.jspx
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
73
74
75
76
77
78
79
<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:f="http://java.sun.com/jsp/jstl/fmt" version="2.0">
<jsp:directive.page contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="false" />
<jsp:output doctype-root-element="html"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
omit-xml-declaration="true" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Mom&Pop Book Store Home</title>
<link rel="stylesheet" href="res/main.css" type="text/css"
charset="utf-8" />
</head>
<body>
<form action="Start" method="POST">
<div id="banner">
<a href="home.jspx"> <img src="images/Banner.jpg" alt="Banner"
width="250" height="100"></img>
</a> <span id="banner2"> <img id="banner2"
src="images/Banner2.jpg" alt="Banner" width="400" height="100"></img>
</span>
</div>
<ul>
<li><a href="/Project/">Home</a></li>
<c:choose>
<c:when test="${isLogedIn == 'true'}">
<li><a href="logout.jspx">Log Out</a></li>
</c:when>
<c:otherwise>
<li><a href="login.jspx">Log In</a></li>
</c:otherwise>
</c:choose>
<li>
<div class="dropdown">
<button class="dropbtn">Category</button>
<div class="dropdown-content">
<a href="scienceBooks.jspx">Science</a> <a
href="fictionBooks.jspx">Fiction</a> <a
href="engineeringBooks.jspx">Engineering</a>
</div>
</div>
</li>
<li id="searchbar" style="float: right"><input type="text"
id="search" placeholder="Search" /> <input type="button"
id="searchbutton" value="Search" /></li>
<li style="float: right"><button id="cartsubmit"
name="cartsubmit" value="0">
<img src="images/cart.png" class="thumbnail" height="40" width="50" />
</button></li>
</ul>
<br /> <br /> <br />
<c:forEach items="${list}" var="booklist">
<tr>
<td><button name="imagesubmit" value="${booklist.bid}">
<img src="images/${booklist.bid}.jpg" alt="Book" height="200"
width="150"></img>
</button></td>
<td>${booklist.title}</td>
<br/>
<td>$${booklist.price}0 </td>
<br/>
<button id="addToCart" name="addToCart" value="${booklist.bid}" type="submit" onclick="doSimpleAjax('/Project/Start', '${booklist.bid}');return false;">Add To Cart</button>
<br/>
<br/>
</tr>
</c:forEach>
</form>
</body>
</html>
</jsp:root>