-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpayments.html
More file actions
52 lines (44 loc) · 1.44 KB
/
payments.html
File metadata and controls
52 lines (44 loc) · 1.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Payment Management</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Payment Management</h1>
<h2>Record a Payment</h2>
<form id="payment-form">
<label for="member_id">Member ID:</label>
<input type="text" id="member_id" required>
<label for="amount">Amount:</label>
<input type="number" id="amount" required>
<label for="payment_date">Payment Date:</label>
<input type="date" id="payment_date" required>
<label for="payment_method">Payment Method:</label>
<select id="payment_method">
<option value="cash">Cash</option>
<option value="card">Card</option>
<option value="online">Online</option>
</select>
<button type="submit">Submit Payment</button>
</form>
<h2>Payment History</h2>
<label for="search_id">Enter Member ID:</label>
<input type="text" id="search_id">
<button onclick="fetchPayments()">Get Payments</button>
<table>
<thead>
<tr>
<th>Payment ID</th>
<th>Amount</th>
<th>Date</th>
<th>Method</th>
</tr>
</thead>
<tbody id="payment-history"></tbody>
</table>
<script src="payments.js"></script>
</body>
</html>