-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
105 lines (94 loc) · 3.63 KB
/
Copy pathindex.html
File metadata and controls
105 lines (94 loc) · 3.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
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Expense Manager</title>
<link rel="stylesheet" href="./source/style.css">
</head>
<body>
<div class="container">
<header>
<h1>Expense Manager</h1>
</header>
<!-- Form to Add Expenses and Income -->
<section class="add-transaction">
<h2>FILL DETAILS</h2>
<form id="transaction-form">
<div class="form-group">
<label for="salary">Select Type:</label>
<select id="salary">
<option value="weekly">Weekly</option>
<option value="monthly">Monthly</option>
<option value="yearly">Annum</option>
</select>
</div>
<div class="form-group">
<label for="category">Category:</label>
<select id="category">
<option value="#">Select</option>
<option value="Expense">Expenses</option>
<option value="Salary">Salary</option>
</select>
</div>
<div class="form-group">
<label for="amount">Amount:</label>
<input type="number" id="amount" placeholder="₹1,000">
</div>
<div class="form-group">
<label for="description">Description:</label>
<input type="text" id="description" placeholder="Food, Transport, Entertainment, Others">
</div>
<div class="form-group">
<label for="date">Date:</label>
<input type="date" id="date" required>
</div>
<button type="submit">Add Transaction</button>
</form>
</section>
<!-- Transaction List as Table -->
<section class="transactions">
<h2>Transactions</h2>
<table id="transaction-table">
<thead>
<tr>
<th>Amount</th>
<th>Category</th>
<th>Type</th>
<th>Date</th>
<th>Description</th>
<th>Actions</th>
</tr>
</thead>
<tbody></tbody>
</table>
<button id="download-btn">Download</button>
</section>
<!-- Summary Selector -->
<section class="summary-options">
<h2>View Summary</h2>
<div id="summary-output">
<table>
<thead>
<tr>
<th>Total Income</th>
<th>Total Expense</th>
<th>Remaining Savings</th>
</tr>
</thead>
<tbody>
<tr>
<td id="total-income">₹0</td>
<td id="total-expense">₹0</td>
<td id="remaining-savings">₹0</td>
</tr>
</tbody>
</table>
</div>
</section>
<!-- Print Button -->
<button id="print-btn">Print 🖨</button>
</div>
<script src="./source/app.js"></script>
</body>
</html>