-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinsert.html
More file actions
99 lines (94 loc) · 4.63 KB
/
insert.html
File metadata and controls
99 lines (94 loc) · 4.63 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="author" content="">
<meta name="description" content="Library">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="Library">
<title>Library - Book Management System</title>
<link rel="stylesheet" href="./css/styles.css">
<link rel="icon" href="./favicon/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="./favicon/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="./favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon/favicon-16x16.png">
<link rel="manifest" href="./favicon/site.webmanifest">
<!-- Include Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<!-- Include Bootstrap JS and jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="./js/script.js"></script>
</head>
<body>
<div class="container">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">
<img src="./logo.png" width="70" height="70" class="d-inline-block align-top" alt="Logo">
</a>
</nav>
<!-- Form to insert a new book -->
<h2 class="mt-4">Insert a New Book</h2>
<form>
<div class="form-group">
<label for="title">Title:</label>
<input type="text" id="title" class="form-control" placeholder="Enter book Title" required>
</div>
<div class="form-group">
<label for="author">Author:</label>
<input type="text" id="author" class="form-control" placeholder="Enter book Author" required>
</div>
<div class="form-group">
<label for="genre">Genre:</label>
<input type="text" id="genre" class="form-control" placeholder="Enter book Genre" required>
</div>
<div class="form-group">
<label for="isbn">ISBN:</label>
<input type="text" id="isbn" class="form-control" placeholder="Enter book ISBN" required>
</div>
<div class="form-group">
<label for="year">Year:</label>
<input type="month" id="year" class="form-control" placeholder="Enter book Year" required>
</div>
<div class="form-group">
<label for="year">Synopsis:</label>
<input type="text" id="synopsis" class="form-control" placeholder="Enter book Synopsis" required>
</div>
<div class="form-group">
<label for="year">Copies:</label>
<input type="number" id="copiesAvailable" class="form-control" required>
</div>
<br/>
<ul id="insert-book" class="list-group"></ul>
<br/>
<button type="button" class="btn btn-primary" onclick="insertBook()">Insert Book</button>
</form>
<!-- Add to select the category -->
<div class="form-group mt-3">
<label for="category">Select Category:</label>
<input type="text" id="category" class="form-control" placeholder="Enter book Synopsis" required>
<br/>
<ul id="category-books" class="list-group"></ul>
</div>
<button type="button" class="btn btn-primary" onclick="listBooksBySelectedCategory()">List Books</button>
<!-- Form to delete a book -->
<h2 class="mt-4">Delete a Book</h2>
<form method="POST">
<div class="form-group">
<label for="isbn_or_title">ISBN or Title:</label>
<input type="text" id="isbn_or_title" class="form-control" placeholder="Enter book title of ISBN to Delete" required>
<br/>
<ul id="delete-book" class="list-group"></ul>
</div>
<button type="button" class="btn btn-danger" onclick="deleteBook()">Delete Book</button>
</form>
<!-- List of Books -->
<h2 class="mt-4">List of Books</h2>
<ul id="all-books" class="list-group"></ul>
<!-- Back Button -->
<button class="btn btn-secondary mt-4" onclick="goBack()">Go Back</button>
</div>
</body>
</html>