-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (66 loc) · 2.32 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Library Management System</title>
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
</head>
<body>
<h1>Library Management System</h1>
<!-- Add Book Form -->
<section>
<h2>Add Book</h2>
<form id="addBookForm">
<input type="text" id="bookName" placeholder="Book Name" required>
<input type="text" id="authorName" placeholder="Author Name" required>
<input type="text" id="bookId" placeholder="Book ID" required>
<button type="submit">Add Book</button>
</form>
</section>
<!-- Book List -->
<section>
<h2>Books</h2>
<ul id="bookList"></ul>
</section>
<!-- Search Books -->
<section>
<h2>Search Books</h2>
<input type="text" id="searchQuery" placeholder="Search...">
<button id="searchButton">Search</button>
</section>
<!-- Student Management -->
<section>
<h2>Student Management</h2>
<form id="enterStudentForm">
<input type="text" id="studentName" placeholder="Student Name" required>
<button type="submit">Enter</button>
</form>
<form id="leaveStudentForm">
<input type="text" id="studentNameLeave" placeholder="Student Name" required>
<button type="submit">Leave</button>
</form>
<h3>Current Students</h3>
<ul id="studentList"></ul>
</section>
<!-- Issue/Return Books -->
<section>
<h2>Issue/Return Books</h2>
<form id="issueBookForm">
<input type="text" id="issueBookId" placeholder="Book ID" required>
<input type="text" id="issueStudentName" placeholder="Student Name" required>
<button type="submit">Issue Book</button>
</form>
<form id="returnBookForm">
<input type="text" id="returnBookId" placeholder="Book ID" required>
<button type="submit">Return Book</button>
</form>
</section>
<!-- Show Current Time -->
<section>
<h2>Current Time</h2>
<p id="currentTime"></p>
</section>
<script src="{{ url_for('static', filename='script.js') }}"></script>
</body>
</html>