-
Notifications
You must be signed in to change notification settings - Fork 1
/
admin.html
379 lines (324 loc) · 19 KB
/
admin.html
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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Admin Panel</title>
<link rel="icon" href="https://img.icons8.com/cotton/2x/communication--v1.png" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" />
<link href="https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="https://unpkg.com/microtip/microtip.css" />
<link rel="stylesheet" href="./toaster/toastr.min.css" />
<link rel="stylesheet" href="https://unpkg.com/dropzone/dist/dropzone.css" />
<link href="https://unpkg.com/cropperjs/dist/cropper.css" rel="stylesheet" />
<link rel="stylesheet" href="./css/dashboard.css" />
<link rel="stylesheet" href="./css/admin.css">
</head>
<body>
<div class="loader" style="
position: fixed;
z-index: 99;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
background: #101011;
justify-content: center;
align-items: center;
">
<img src="https://i.giphy.com/media/fYqaFLAWq7v2oRy4vh/giphy.webp" alt="loader" width="180px" height="180px" />
</div>
<div class="uploader" style="
position: fixed;
z-index: 98;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
background: radial-gradient(circle, rgba(5,63,175,0.8379726890756303) 0%, rgba(37,37,56,0.6909138655462185) 86%);
justify-content: center;
align-items: center;
">
<div class="containerSVG">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px"
viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">
<g id="alchemist-logo">
<g class="alchemist-ph">
<g id="logo" transform="translate(62.000000, 27.000000)">
<path id="substract" fill="#FFFFFF"
d="M14.101,191.767l73.738,38.302l73.739-38.302V91.725l-48.688-25.29V15.323
c0-0.457-0.303-0.774-0.576-0.774H62.351c-0.273,0-0.576,0.318-0.576,0.774v51.638L14.101,91.725V191.767z" />
<path id="glass" fill="#C7ECF9"
d="M14.101,200.555l73.738,38.303l73.739-38.303V100.513l-48.688-25.29V24.112
c0-0.457-0.303-0.774-0.576-0.774H62.351c-0.273,0-0.576,0.318-0.576,0.774V75.75l-47.673,24.763V200.555L14.101,200.555z" />
<path id="Combined-Shape" fill="#302D35" d="M87.839,245.924L0,200.295V83.196l47.672-24.764V15.323
c0-8.181,6.585-14.835,14.678-14.835h49.964c8.094,0,14.678,6.655,14.678,14.835v42.582l48.686,25.292v117.099L87.839,245.924z
M14.101,191.767l73.738,38.302l73.739-38.302V91.725l-48.688-25.29V15.323c0-0.457-0.303-0.774-0.576-0.774H62.351
c-0.273,0-0.576,0.318-0.576,0.774v51.638L14.101,91.725V191.767z" />
<g>
<defs>
<clipPath id="clipper">
<polygon id="clip"
points="131.662,175.813 131.662,100.285 44.016,142.285 44.016,175.813 87.839,198.578 " />
</clipPath>
</defs>
<g class="clipped">
<path class="chem2" d="M137.793,314.941c-14.552,29.618-50.691,41.945-80.309,27.393L4.521,316.311
c-29.618-14.553-41.944-50.691-27.392-80.31L3.152,183.04c14.552-29.618,50.692-41.944,80.31-27.392l52.961,26.021
c29.617,14.553,41.944,50.692,27.392,80.311L137.793,314.941z" />
<path class="chem1" d="M36.142,314.941c14.552,29.618,50.691,41.945,80.31,27.393l52.963-26.023
c29.617-14.553,41.943-50.692,27.391-80.31l-26.021-52.961c-14.553-29.618-50.691-41.944-80.31-27.392L37.513,181.67
C7.895,196.223-4.432,232.362,10.12,261.98L36.142,314.941z" />
</g>
</g>
<polygon id="container-inside" fill="#302D35" points="87.839,214.433 29.915,184.343 29.915,94.688 44.016,94.688
44.016,175.813 87.839,198.578 131.662,175.813 131.662,94.688 145.764,94.688 145.764,179.57 145.764,184.343 143.244,185.651
" />
<polygon id="mouth" fill="#302D35"
points="29.451,14.062 146.228,14.062 146.228,0 29.451,0 " />
<g id="pinas" transform="translate(60.314607, 84.300601)">
<polygon id="sun" fill="#6E41B5" points="23.598,29.126 17.859,23.812 19.608,16.199 27.093,13.903 32.828,19.219 31.082,26.83
" />
<polygon id="star3" fill="#6E41B5" points="30.482,45.43 27.343,42.522 28.301,38.357 32.394,37.101 35.535,40.009
34.578,44.174 " />
<polygon id="star2" fill="#6E41B5" points="43.148,3.049 42.348,7.247 38.301,8.654 35.056,5.862 35.857,1.664 39.904,0.261
" />
<polygon id="star1" fill="#6E41B5" points="1.405,12.744 5.523,11.563 8.607,14.528 7.575,18.676 3.456,19.857 0.374,16.891
" />
</g>
</g>
</g>
</g>
</svg>
</div>
</div>
<div class="dashboard-main row m-0 p-0" style="height: -webkit-fill-available">
<div class="dashboard-container row col-md-9 mr-1">
<!-- leftbar container -->
<div class="leftbar py-5">
<a href="./index.html" class="text-center"><img
src="https://img.icons8.com/cotton/2x/communication--v1.png" alt="" height="51px"></a>
<div class="leftbar-icons">
<a href="#0" aria-label="Dashboard" data-microtip-position="right" role="tooltip"><i
class="fa fa-home m-0"></i></a>
<a href="./post.html" aria-label="Create Post" data-microtip-position="right" role="tooltip"><i
class="fa fa-plus-circle"></i></a>
<!-- <a href="#0" aria-label="Group chat" data-microtip-position="right" role="tooltip"><i
class="fa fa-group"></i></a> -->
<a href="./members.html" aria-label="Users" data-microtip-position="right" role="tooltip"><i
class="fa fa-user-plus"></i></a>
</div>
<a href="#0" id="signout" aria-label="Sign out" data-microtip-position="top-right" role="tooltip"><i
class="fa fa-sign-out text-secondary"></i></a>
</div>
<div class="content col-md-10 my-auto" id="frame">
<div class="row col-md-12 mx-auto content p-0 userInfo">
<div class="col-md-6 row mr-auto ">
<div class=" col-md-6 mx-auto bg-info totalUser card border border-info" style="
margin-left: -10px !important;
">
</div>
<div class=" col-md-6 mx-auto bg-success UnapproveMembers card border border-info" style="
margin-right: -10px !important;
">
</div>
<div class="col-md-6 bg-secondary border border-dark card mx-auto totalTask" style="
margin-left: -10px !important;
">
</div>
<div class="col-md-6 bg-warning mx-auto border border-info card totalPost" style="
margin-right: -10px !important;
">
</div>
</div>
<div class="col-md-6 mx-auto p-0" style="margin-left: -10px !important;">
<div class="chartjs-size-monitor">
<div class="chartjs-size-monitor-expand">
<div class=""></div>
</div>
<div class="chartjs-size-monitor-shrink">
<div class=""></div>
</div>
</div>
<div class="chartjs-size-monitor">
<div class="chartjs-size-monitor-expand">
<div class=""></div>
</div>
<div class="chartjs-size-monitor-shrink">
<div class=""></div>
</div>
</div>
<canvas id="myChart2" width="565" height="280"
style="display: block; height: 224px; width: 452px;"
class="chartjs-render-monitor"></canvas>
</div>
</div>
<div class="row col-md-12 mx-auto content p-0 mt-3 thirdRow ">
<div class="chart col-md-6 mx-auto shadow-lg p-0 card currentMonth"
style="margin-left: -10px !important;">
<canvas id="currentMonth" style="margin: auto;display: block;width: 430px;height: 221px;"
width="562" height="276" class="chartjs-render-monitor"></canvas>
</div>
<div class="chart col-md-6 mx-auto shadow-lg p-0 card previous"
style="margin-right: -10px !important;">
<canvas id="previousMonth" style="margin: auto;display: block;width: 430px;height: 221px;"
width="562" height="276" class="chartjs-render-monitor"></canvas>
</div>
</div>
<div class="row col-md-12 mx-auto content p-0 mt-3 fourthRow ">
<div class="chart col-md-6 mx-auto shadow-lg p-0 card noticeTypes"
style="margin-left: -10px !important;">
<div class="chartjs-size-monitor">
<div class="chartjs-size-monitor-expand">
<div class=""></div>
</div>
<div class="chartjs-size-monitor-shrink">
<div class=""></div>
</div>
</div>
<canvas id="noticeTypes" style="margin: auto; display: block; width: 450px; height: 220px;"
width="562" height="275" class="chartjs-render-monitor"></canvas>
</div>
<div class="chart col-md-6 mx-auto shadow-lg p-0 card noticePriority"
style="margin-right: -10px !important;">
<div class="chartjs-size-monitor">
<div class="chartjs-size-monitor-expand">
<div class=""></div>
</div>
<div class="chartjs-size-monitor-shrink">
<div class=""></div>
</div>
</div>
<canvas id="noticePriority" style="margin: auto; display: block; width: 451px; height: 221px;"
width="563" height="276" class="chartjs-render-monitor"></canvas>
</div>
</div>
</div>
</div>
<div class="rightbar-div col-md-3 m-auto">
<!-- setting page -->
<div class="col-md-12 mt-3 ">
<div class="profile-card-4 col-md-12 text-center mx-auto ">
<img id="userImage" class="col-md-12 rounded-circle" alt=""
src="https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_640.png"
style="border-radius: 50%;max-width: 65%;">
<!-- Modal -->
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog"
aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered " role="document">
<div class="modal-content shadow-lg text-light bg-dark"
style="border-radius: 2em; box-shadow: 0px 2px 15px #041f4b !important;">
<div class="modal-header shadow-lg" style="border: 0;">
<h6 class="modal-title" id="exampleModalLongTitle">Resize your photo</h6>
<button type="button" class="close text-light" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body shadow-lg ">
<div class="col-md-10 text-center mx-auto">
<img src="" id="sample_image" class="col-md-12 rounded-circle mx-auto" alt="" />
</div>
</div>
<div class="modal-footer shadow-lg" style="border: 0;">
<button type="button" id="crop"
class="mx-auto btn btn-secondary rounded-pill shadow-lg">Crop</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12 my-3 ">
<h5 class="text-center text-light userName mx-auto"> Mohammad Ali Shuvo</h5>
</div>
</div>
<!-- form -->
<div class="taskForm container col-md-12 shadow-lg ">
<form class=" my-3 mx-auto">
<h5 class="text-center text-light mb-3">Admin Settings</h5>
<div class="form-group">
<label for="exampleInputEmail1">Change Profile Name</label>
<input id="settings-name" type="text"
class="form-control bg-dark shadow-lg text-light border-info is-disabled"
placeholder="Update Profile Name" value="">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Change Password</label>
<input id="settings-pass" type="password"
class="form-control bg-dark shadow-lg text-light border-info is-disabled"
placeholder="Change Password" value="">
</div>
<!-- drag box -->
<label for="file-input" class="text-info m-0">Update your profile picture</label>
<button class="btn" id="closeForm"
onclick="$('#profilePic')[0].value = null; $('.file-msg').text('0 files selected')"><i
class="fa fa-times-circle text-secondary" aria-hidden="true"></i></button>
<div class="file-drop-area mt-1 mb-3" id="drag">
<span class="fake-btn">Choose files</span>
<span class="file-msg">or drag and drop files here</span>
<input class="file-input" id="profilePic" type="file" accept="image/*">
</div>
<div class="form-group">
<label for="userPass" class="text-info">Current password</label>
<input id="userPass" type="password"
class="form-control bg-dark shadow-lg text-light border-info is-disabled"
placeholder="Your Current Password" value="" required="">
</div>
<button type="submit"
class="text-center form-control btn btn-secondary rounded-pill border-info shadow-lg mt-2">submit</button>
</form>
</div>
</div>
</div>
</body>
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-storage.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-analytics.js"></script>
<script>
var firebaseConfig = {
apiKey: "AIzaSyAcNk4KaBv11KxfLtYofUq2zBRDsszM2VE",
authDomain: "office-kothon.firebaseapp.com",
databaseURL: "https://office-kothon.firebaseio.com",
projectId: "office-kothon",
storageBucket: "office-kothon.appspot.com",
messagingSenderId: "605346039997",
appId: "1:605346039997:web:350fd046addb6f51860fd4",
measurementId: "G-W822J60VT1"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
//make firebase consts
const auth = firebase.auth();
const storage = firebase.storage();
firebase.auth().onAuthStateChanged(function (user) {
if (!user) {
window.location.replace('./index.html');
}
else {
if (user.displayName != 'admin') {
window.location.replace('./dashboard.html');
}
else if (user.displayName == 'isUnknown') {
window.location.replace('./userNotVerified.html');
}
}
});
const db = firebase.firestore();
//update firebase settings
db.settings({ timestampsInSnapshots: true });
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/dropzone"></script>
<script src="https://unpkg.com/cropperjs"></script>
<script src="./toaster/toastr.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js"
integrity="sha256-/H4YS+7aYb9kJ5OKhFYPUjSJdrtV6AeyJOtTkw6X72o=" crossorigin="anonymous"></script>
<script src="./js/admin.js"></script>