-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
301 lines (289 loc) · 17.5 KB
/
index.php
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<?php
session_start();
if(!isset($_SESSION["isAuthenticated"])){
header("location: signin.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" href="assets/images/favicon.svg"/>
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
<link rel="stylesheet" href="assets/css/style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>Dashboard</title>
</head>
<body id="dashboard">
<div class="container-fluid navigation">
<?php require 'header.php' ?>
</div>
<div class="container-fluid">
<main class="row d-flex">
<div class="sidebar col-3 menu">
<ul class="w-100 menuList">
<li><a href="index.php" class="active"><i class="fas fa-home fa-lg mx-3"></i>Home</a></li>
<!-- <li><a href="trash.php"><i class="fas fa-trash fa-lg mx-3"></i> Trash</a></li> -->
<li><a href="profile.php"><i class="fas fa-edit fa-lg mx-3"></i>My Profile</a></li>
<li><a href="about_us.php"><i class="fas fa-info-circle fa-lg mx-3"></i>About Us</a></li>
<li><a href="signout.php"><i class="fas fa-sign-out-alt fa-lg mx-3"></i>Log Out</a></li>
</ul>
</div>
<div class="col-9 p-0 d-flex flex-column">
<div class="mainContent">
<!-- <div class="allUsersData">
<h5 class="contentHead">All People</h5>
<div class="users d-flex">
<a href="#" class="text-center">
<div class="singleUser text-center d-flex align-items-center justify-content-center">
<p class="m-0">OY</p>
</div>
<p class="mt-2 username">Olive Yew</p>
</a>
<a href="#" class="text-center">
<div class="singleUser text-center d-flex align-items-center justify-content-center">
<p class="m-0">JD</p>
</div>
<p class="mt-2 username">John Doe</p>
</a>
<a href="#" class="text-center">
<div class="singleUser text-center d-flex align-items-center justify-content-center">
<p class="m-0">AG</p>
</div>
<p class="mt-2 username">Allie Grater</p>
</a>
<div class="d-flex flex-column justify-content-center">
<div class="singleUser">
<a data-bs-toggle="modal" href="#exampleModalToggle"><i
class="fas fa-plus fa-lg d-flex justify-content-center text-white"></i></a>
</div>
<p class="mt-2 username">Invite New</p>
</div>
</div>
</div> -->
<div class="recents">
<div class="d-flex justify-content-between align-items-center my-3">
<h5 class="contentHead mb-0">Recents <i class="fas fa-chevron-right mx-3"></i></h5>
<a class="btn btn-primary primaryBtn" data-bs-toggle="modal" href="#createExpenseModal"><i
class="fas fa-plus"></i> Add New
Expense</a>
</div>
<div class="cardHolder d-flex g-0">
<div class="card col-3">
<img src="assets/images/office.jpg" class="card-img-top p-2" height="255" width="255"
alt="No Image Found">
<div class="card-body">
<h4 class="card-title mb-1">Office Expense</h4>
<h6><span class="badge bg-secondary mb-3" title="category">Company</span></h6>
<p class="card-text">The Lorem Ipsum is simply dummy text of the composition.</p>
<a href="#expenseDetailModal" class="card-link" data-bs-toggle="modal">Read more <i
class="fas fa-long-arrow-alt-right fa-lg mx-3"></i></a>
</div>
</div>
<div class="card col-3">
<img src="assets/images/trip.jpg " class="card-img-top p-2" height="255" width="255"
alt="No Image Found">
<div class="card-body">
<h4 class="card-title mb-1">Trip Expense</h4>
<h6><span class="badge bg-secondary mb-3" title="category">Special</span></h6>
<p class="card-text">Reprehenderit esse labore id veniam ut veniam non ex</p>
<a href="#expenseDetailModal" class="card-link" data-bs-toggle="modal">Read more <i
class="fas fa-long-arrow-alt-right fa-lg mx-3"></i></a>
</div>
</div>
<div class="card col-3">
<img src="assets/images/mall.jpg " class="card-img-top p-2" height="255" width="255"
alt="No Image Found">
<div class="card-body">
<h4 class="card-title mb-1">Daily Expense</h4>
<h6><span class="badge bg-secondary mb-3" title="category">Uncategorized</span></h6>
<p class="card-text">Reprehenderit esse labore id veniam ut veniam non ex</p>
<a href="#expenseDetailModal" class="card-link" data-bs-toggle="modal">Read more <i
class="fas fa-long-arrow-alt-right fa-lg mx-3"></i></a>
</div>
</div>
<div class="card col-3">
<img src="assets/images/Image Placeholder.png " class="card-img-top p-2" height="255"
width="255" alt="No Image Found">
<div class="card-body">
<h4 class="card-title mb-1">No Image Expense</h4>
<h6><span class="badge bg-secondary mb-3" title="category">Testing</span></h6>
<p class="card-text">Reprehenderit esse labore id veniam ut veniam non ex</p>
<a href="#expenseDetailModal" class="card-link" data-bs-toggle="modal">Read more <i
class="fas fa-long-arrow-alt-right fa-lg mx-3"></i></a>
</div>
</div>
<div class="scroller d-flex align-items-center justify-content-center">
<i class="fas fa-chevron-right fa-2x"></i>
</div>
</div>
</div>
</div>
<?php require 'footer.php' ?>
</div>
</main>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js"
integrity="sha384-eMNCOe7tC1doHpGoWe/6oMVemdAVTMs2xqW4mwXrXsW0L84Iytr2wi5v2QjrP/xp"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js"
integrity="sha384-cn7l7gDp0eyniUwwAZgrzD06kc/tftFf19TOAs2zVinnD/C7E91j9yyk5//jjpt/"
crossorigin="anonymous"></script>
</html>
<!-- <div class="modal modal-fullscreen-sm-down fade" id="exampleModalToggle" aria-hidden="true"
aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalToggleLabel">Invite User</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="row">
<div class="input-group mb-3">
<input class="form-control" type="search" placeholder="Search username or email"
aria-label="Search"><button class="input-group-text" id="basic-addon2"><i
class="fas fa-search"></i></button>
</div>
<div class="searchData col-12 d-flex flex-wrap">
<div class="btn-group btn-group-sm col-auto m-1" role="group" aria-label="Basic example">
<button class="btn btn-sm btn-danger">
Olive Yew
</button>
<button class="btn btn-sm btn-danger"><i class="fas fa-times"></i></button>
</div>
<div class="btn-group btn-group-sm col-auto m-1" role="group" aria-label="Basic example">
<button class="btn btn-sm btn-danger" value="11">
John Doe
</button>
<button class="btn btn-sm btn-danger"><i class="fas fa-times"></i></button>
</div>
<div class="btn-group btn-group-sm col-auto m-1" role="group" aria-label="Basic example">
<button class="btn btn-sm btn-danger">
Allie Grater
</button>
<button class="btn btn-sm btn-danger"><i class="fas fa-times"></i></button>
</div>
<div class="btn-group btn-group-sm col-auto m-1" role="group" aria-label="Basic example">
<button class="btn btn-sm btn-light">
Bob Martin
</button>
<button class="btn btn-sm btn-light"><i class="fas fa-plus"></i></button>
</div>
<div class="btn-group btn-group-sm col-auto m-1" role="group" aria-label="Basic example">
<button class="btn btn-sm btn-light">
Anne Teak
</button>
<button class="btn btn-sm btn-light"><i class="fas fa-plus"></i></button>
</div>
<div class="btn-group btn-group-sm col-auto m-1" role="group" aria-label="Basic example">
<button class="btn btn-sm btn-light">
Dave Allippa
</button>
<button class="btn btn-sm btn-light"><i class="fas fa-plus"></i></button>
</div>
<div class="btn-group btn-group-sm col-auto m-1" role="group" aria-label="Basic example">
<button class="btn btn-sm btn-light">
Penny Black
</button>
<button class="btn btn-sm btn-light"><i class="fas fa-plus"></i></button>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary inviteUserBtn" data-bs-dismiss="modal">Done</button>
</div>
</div>
</div>
</div> -->
<div class="modal modal-fullscreen-sm-down fade" id="expenseDetailModal" aria-hidden="true"
aria-labelledby="expenseDetail" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="expenseDetail">Category : Company</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="row">
<div class="d-flex justify-content-between align-items-center">
<h3>Office Expense</h3>
<h4>32,000 ₹</h4>
</div>
<div class="mb-2">
<p>12 AUG, 2021</p>
</div>
<img src="assets/images/office.jpg" class="mb-3" height="250" width="255" alt="No Image Found">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been
the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley
of type and scrambled it to make a type specimen book. It has survived not only five centuries,
but also the leap into electronic typesetting, remaining essentially unchanged. It was
popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,
and more recently with desktop publishing software like Aldus PageMaker including versions of
Lorem Ipsum.</p>
</div>
</div>
</div>
</div>
</div>
<div class="modal modal-fullscreen-sm-down fade" id="createExpenseModal" aria-hidden="true"
aria-labelledby="createExpense" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="createExpense">Create Expense</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="index.php" method="post" enctype="multipart/form-data">
<div class="mb-3">
<label for="category" class="form-label">Category</label>
<select class="form-select" id="expense_category" name="expense_category">
<option value="0">Uncategorized</option>
<option value="1">Company</option>
<option value="2">Regular</option>
<option value="3">Special</option>
<option value="4">School/College</option>
</select>
</div>
<div class="mb-3">
<label for="expense_name" class="form-label">Expense Name:</label>
<input type="text" placeholder="Enter name" class="form-control" id="expense_name" name="expense_name">
</div>
<div class="mb-3">
<label for="expense_name" class="form-label">Expense Date:</label>
<input type="date" placeholder="Enter name" class="form-control" id="expense_date" name="expense_date">
</div>
<div class="mb-3">
<label for="imgFile" class="form-label">Image:</label>
<input class="form-control" type="file" id="ExpenseImage" accept="image/*" id="expense_img" name="expense_image">
</div>
<div class="mb-3">
<label for="expense_amount" class="form-label">Amount:</label>
<div class="input-group mb-3">
<span class="input-group-text">₹</span>
<input type="text" class="form-control" aria-label="Amount (to the nearest dollar)" id="expense_amount" name="expense_amount">
</div>
</div>
<div class="mb-3">
<label for="expenseDescr" class="form-label">Expense Notes:</label>
<textarea name="expenseDescr" class="form-control" placeholder="Describe Here ..."
id="expense_descr" name="expense_descr" rows="3"></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Discard</button>
<button type="button" class="btn btn-primary inviteUserBtn" data-bs-dismiss="modal" id="validateExpenseForm">Create
Expense</button>
</div>
</div>
</div>
</div>