-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditOffer.jsp
103 lines (102 loc) · 4.11 KB
/
editOffer.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<%@ page import="user.User" %>
<!DOCTYPE html>
<%
String session_class = "";
String username = "";
User session_user = (User) session.getAttribute("user");
if (session_user != null) {
session_class = "active";
username = session_user.toString();
}
%>
<html lang="de">
<head>
<title>auctionary :: Bearbeiten</title>
<!--Meta stuff-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--Favicon-->
<link rel="icon" type="image/x-icon" href="misc/favicon.ico">
<!--Style-->
<link rel="stylesheet" href="css/style.css">
<!--JavaScripts-->
<script type="application/javascript" src="js/init.js"></script>
<script type="application/javascript" src="js/script.js"></script>
<!-- JSP Tags -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix= "c" %>
</head>
<body>
<header>
<nav>
<div id="sidenav">
<a href="javascript:void(0)" id="close-btn">×</a>
<a id="nav-title" href="index.jsp">auctionary</a>
<p id="username"><%=username %></p>
<hr>
<a href="login.jsp" id="login">Login</a>
<a href="profil">Profil</a>
<div class="<%=session_class%>">
</div>
<a href="about.jsp">Über</a>
</div>
<span id="menu-btn">☰ menu</span>
</nav>
<div class="logo"></div>
<hr>
</header>
<main>
<div class="edit-wrapper wrapper">
<p id="title">Eigene Bücher</p>
<h4>Angelegte Bücher</h4>
<form action="editAuctions" method="post">
<table id="booklist">
<tr>
<th>#</th>
<th>Titel</th>
<th>Verlag</th>
<th>Mindespreis</th>
<th>Aktiv</th>
<th></th>
</tr>
<jsp:scriptlet>
int x = 1;
</jsp:scriptlet>
<c:forEach items= "${ editablebooks }" var= "b">
<tr >
<td>
<jsp:scriptlet>
out.print(x);
x += 1;
</jsp:scriptlet>
</td>
<td>
<input type="hidden" name="bookid=${b.id}" value="${b.id}">
${ b.title }
</td >
<td>${ b.publisher }</td >
<td>${ b.minPrice } €</td >
<td>${ b.active }</td >
<td><input type="checkbox" id="${b.id}" name="${b.id}"></td>
</tr >
</c:forEach >
</table>
<table id="control">
<tr>
<td>
<select name="controlaction" id="controlaction" required>
<option value="nothing">---</option>
<option value="commit">Markierte freigeben</option>
<option value="delete">Markierte löschen</option>
</select>
</td>
<td><button type="submit" id="btn">Durchführen</button></td>
</tr>
</table>
</form>
</div>
</main>
<footer>
<hr>
<div class="footer">© Alexander Wiltz, <div id="year"></div></div>
</footer>
</body>
</html>