-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfines.html
More file actions
154 lines (144 loc) Β· 6.02 KB
/
fines.html
File metadata and controls
154 lines (144 loc) Β· 6.02 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fines - Library Management System</title>
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="favicon.svg">
<link rel="alternate icon" href="favicon.svg">
<link rel="mask-icon" href="favicon.svg" color="#2563eb">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<!-- Sidebar -->
<aside class="sidebar">
<div class="sidebar-header">
<div class="logo-small">
<svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path>
<path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>
</svg>
</div>
<h2>Library MS</h2>
</div>
<nav class="sidebar-nav">
<a href="dashboard.html" class="nav-item">
<span class="icon">π</span>
<span>Dashboard</span>
</a>
<a href="books.html" class="nav-item">
<span class="icon">π</span>
<span>Books</span>
</a>
<a href="members.html" class="nav-item">
<span class="icon">π₯</span>
<span>Members</span>
</a>
<a href="loans.html" class="nav-item">
<span class="icon">π</span>
<span>Loans</span>
</a>
<a href="fines.html" class="nav-item active">
<span class="icon">π°</span>
<span>Fines</span>
</a>
<a href="reports.html" class="nav-item">
<span class="icon">π</span>
<span>Reports</span>
</a>
<a href="staff.html" class="nav-item" id="staffLink" style="display: none;">
<span class="icon">π</span>
<span>Staff</span>
</a>
<a href="login-logs.html" class="nav-item" id="loginLogsLink" style="display: none;">
<span class="icon">π</span>
<span>Login Logs</span>
</a>
</nav>
<div class="sidebar-footer">
<button onclick="logout()" class="btn btn-danger btn-block">Logout</button>
</div>
</aside>
<!-- Sidebar Overlay for Mobile -->
<div class="sidebar-overlay" id="sidebarOverlay"></div>
<!-- Main Content -->
<main class="main-content">
<!-- Header -->
<header class="page-header">
<div>
<!-- Hamburger Menu Button -->
<button class="hamburger" id="hamburger" aria-label="Toggle menu">
<span></span>
<span></span>
<span></span>
</button>
<div>
<h1>Fines Management</h1>
<p class="text-muted">Manage overdue fines</p>
</div>
</div>
</header>
<!-- Summary Cards -->
<div class="stats-grid" style="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 30px;">
<div class="stat-card stat-red">
<div class="stat-icon">π°</div>
<div class="stat-details">
<h3>βΉ<span id="totalUnpaid">0.00</span></h3>
<p>Total Unpaid Fines</p>
</div>
</div>
<div class="stat-card stat-yellow">
<div class="stat-icon">π</div>
<div class="stat-details">
<h3 id="unpaidCount">0</h3>
<p>Unpaid Records</p>
</div>
</div>
</div>
<!-- Filter -->
<div class="search-bar">
<select id="statusFilter" class="form-group" style="width: 200px; margin: 0;">
<option value="">All Fines</option>
<option value="unpaid">Unpaid</option>
<option value="paid">Paid</option>
</select>
<button class="btn btn-primary" onclick="loadFines()">Filter</button>
</div>
<!-- Fines Table -->
<div class="card">
<div class="card-body">
<div class="table-container">
<table>
<thead>
<tr>
<th>Fine ID</th>
<th>Member</th>
<th>Book</th>
<th>Due Date</th>
<th>Return Date</th>
<th>Fine Amount</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="finesTable">
<tr>
<td colspan="8" class="text-center">
<div class="loader" style="margin: 20px auto;"></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
</div>
<script src="js/config.js"></script>
<script src="js/auth.js"></script>
<script src="js/mobile.js"></script>
<script src="js/fines.js"></script>
</body>
</html>