-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibrarian.html
44 lines (44 loc) · 1.97 KB
/
librarian.html
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
<html>
<head>
<title>Maintaining Library</title>
<script type="text/javascript" src ="scripts.js"></script>
<link rel="stylesheet" type="text/css" href="styles/adminStyle.css">
</head>
<body>
<div id = "logOption">
<p>welcome USERNAME
<input type="submit" value = "logout" onclick = "users.logout()"/>
</p>
</div>
<button onclick = "showAdd()">Add book</button>
<button onclick = "showRemove()">Remove book</button>
<button onclick = "showUpdate()">Update book</button>
<div Id = "add" class = "forms">
<p>Add New book to library</p>
<input type = "number" placeholder = "Enter ISBN" id="add_isbn" required = "true"/>
<label id = "isbn_error">Entered Isbn is duplicate</label>
<input type = "text" placeholder = "Enter book title" id="add_title" required = "true"/>
<input type = "text" placeholder = "Enter author name" id="add_author" required = "true"/>
<input type = "text" placeholder = "Enter book publisher" id="add_publisher" required = "true"/>
<input type = "number" placeholder = "Enter book price" id="add_price" required = "true"/>
<button onclick = "addBook()">Add this book to library</button>
</div>
<div Id = "remove" class = "forms">
<p>select isbn to delete a book</p>
<select id="isbnList" onchange = "displayBook()">SELECT_ISBN</select>
<button onclick = "showBook()">show this book</button>
<div id = "current_book">
<input id ="bookTitle" readonly = 'true' />
<input id ="bookAuthor" readonly = 'true' />
<button onclick = "removeBook()">remove book</button>
<label id = "book_removed">book removed from library</label>
</div>
</div>
<div id = "update" class = "forms">
<p>Updates information about book in library</p>
<input type = "number" placeholder = "Enter ISBN" id="update_isbn" required = "true"/>
<input type = "text" placeholder = "Enter book title" id="update_title" required = "true"/>
<button onclick = "updateBook()">update this book</button>
</div>
</body>
</html>