Repository navigation
Expand file tree
/
Copy pathLibrary-management.html
More file actions
123 lines (108 loc) · 4.13 KB
/
Copy pathLibrary-management.html
File metadata and controls
123 lines (108 loc) · 4.13 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Bookvault</title>
<link rel="stylesheet" href="s.css">
</head>
<body>
<!-- Animated Background Particles -->
<div class="bg-particles"></div>
<div class="container">
<div class="sidebar">
<div class="logo">
<h2>📚 BookVault</h2>
<p>Inventory System</p>
</div>
<div class="nav-item">
<button class="tab-button active" data-tab="dashboard-section">
<span>📊</span> Dashboard
</button>
</div>
<div class="nav-item">
<button class="tab-button" data-tab="add-section">
<span>➕</span> Add Book
</button>
</div>
<div class="nav-item">
<button class="tab-button" data-tab="update-section">
<span>✏️</span> Update Book
</button>
</div>
<div class="nav-item">
<button class="tab-button" data-tab="delete-section">
<span>🗑️</span> Delete Book
</button>
</div>
</div>
<div class="main">
<div class="header">
<h1>BookVault dashboard</h1>
<p>Advanced Inventory Management System</p>
</div>
<div class="search-container">
<div class="search-wrapper">
<div class="search-icon">🔍</div>
<input type="text" id="search" class="search-input" placeholder="Search books by title or author..." />
</div>
</div>
<div id="total-books" class="stats"></div>
<section id="add-section" class="content-section hidden">
<h2 style="margin-bottom: 2rem; font-size: 1.8rem;">Add New Book</h2>
<form id="book-form">
<div class="form-container">
<div class="input-group">
<input type="text" id="title" class="form-input" placeholder="Book Title" required />
</div>
<div class="input-group">
<input type="text" id="author" class="form-input" placeholder="Author Name" required />
</div>
<div class="input-group">
<input type="number" step="0.01" id="price" class="form-input" placeholder="Price (₹)" required />
</div>
<div class="input-group">
<input type="number" id="stock_quantity" class="form-input" placeholder="Stock Quantity" required />
</div>
</div>
<div style="display: flex; gap: 1rem;">
<button type="submit" class="btn btn-primary">Add Book</button>
<button type="button" id="cancel-button" class="btn btn-secondary hidden">Cancel</button>
</div>
</form>
</section>
<section id="update-section" class="content-section hidden">
<h2 style="margin-bottom: 2rem; font-size: 1.8rem;">Update Books</h2>
<p style="color: rgba(255, 255, 255, 0.8); margin-bottom: 2rem;">
Click the ✏️ edit button next to any book in the table below to update its details.
</p>
</section>
<section id="delete-section" class="content-section hidden">
<h2 style="margin-bottom: 2rem; font-size: 1.8rem;">Delete Books</h2>
<p style="color: rgba(255, 255, 255, 0.8); margin-bottom: 2rem;">
Click the 🗑️ delete button next to any book in the table below to remove it from inventory.
</p>
</section>
<div class="table-container">
<table class="table">
<thead>
<tr>
<th>Title</th>
<th>Author</th>
<th>Price (₹)</th>
<th>Stock</th>
<th id="action-header" class="hidden">Actions</th>
</tr>
</thead>
<tbody id="book-table"></tbody>
</table>
</div>
<div id="pagination" class="pagination"></div>
</div>
</div>
<!-- Firebase SDKs -->
<script src="https://www.gstatic.com/firebasejs/9.22.2/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.22.2/firebase-database-compat.js"></script>
<script src="s.js" defer></script>
</body>
</html>