-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.php
383 lines (367 loc) · 21.7 KB
/
main.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
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
380
381
382
383
<?php
include('admin/Include/Sessions.php');
include('admin/Include/Functions.php');
if ( isset($_POST['submit'])) {
$username = $_POST['username'];
$password = $_POST['password'];
if(empty($username) || empty($password)) {
$_SESSION['errorMessage'] = 'All Fields Must Be Fill Out';
}else {
$foundAccount = LoginAttempt($username, $password);
if ($foundAccount) {
$_SESSION['successMessage'] = 'Login Successfully Welcome ' . $foundAccount['username'];
$_SESSION['user_id'] = $foundAccount['id'];
$_SESSION['username'] = $foundAccount['username'];
Redirect_To('admin/Dashboard.php');
}else {
$_SESSION['errorMessage'] = 'Username/Password Is Invalid';
}
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Masjid Nurul Hidayah</title>
<!-- MDB icon -->
<link rel="icon" href="img/icon/favicon.ico" type="image/x-icon" />
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.2/css/all.css" />
<!-- Google Fonts Roboto -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" />
<!-- MDB -->
<link rel="stylesheet" href="css/bootstrap.css" />
<link rel="stylesheet" href="css/mdb.min.css" />
</head>
<body>
<header style="margin: 2cm;">
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top">
<div class="container">
<a class="navbar-brand" href="index.php">
<img src="img/LogoMasjid.png" height="30" alt="Masjid Nurul Hidayah" loading="lazy" />
</a>
<!-- Responsive Header -->
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="fas fa-bars"></span>
</button>
<!-- Responsive Header -->
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a href="index.php">
<button type="button" class="btn btn-primary btn-rounded" >
Dashboard
</button>
</a>
</li>
<li class="nav-item">
<a href="pages/blog.php">
<button type="button" class="btn btn-link px-3 me-2">
Berita
</button>
</a>
</li>
<li class="nav-item">
<a href="pages/aboutus.php">
<button type="button" class="btn btn-link px-3 me-2">
Tentang Kami
</button>
</a>
</li>
<li class="nav-item">
<a>
<button type="button" class="btn btn-primary btn-rounded" >
Login
</button>
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<!-- Modal -->
<form action="index.php" method="post">
<div class="modal fade" id="modalForm" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Login</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label class="form-label">Email Address</label>
<input type="text" class="form-control" id="username" name="username" placeholder="Email" />
</div>
<div class="mb-3">
<label class="form-label">Password</label>
<input type="password" class="form-control" id="password" name="password" placeholder="Password" />
</div>
<div class="modal-footer d-block">
<button type="submit" id="submit" name="submit" class="btn btn-warning float-end">Submit</button>
</div>
</form>
</div>
</div>
</div>
</div>
</form>
<!-- Modal -->
<div id="preview" class="preview">
<div style="display: none;"></div>
<div>
<div style="position: relative;" data-draggable="true" class="" draggable="false">
<section draggable="false" class="container pt-5" data-v-271253ee="">
<section class="mb-10">
<!-- Background image -->
<div
class="p-5 text-center shadow-5-strong rounded"
style="background-image: url('img/Masjid1.JPG'); height: 500px; background-size: cover; background-position: 50% 50%; background-color: rgba(0, 0, 0, 0);"
aria-controls="#picker-editor"
></div>
<!-- Background image -->
<!-- Card Qoute -->
<div class="card mx-4 mx-md-5 text-center shadow-5-strong" style="margin-top: -170px; background: hsla(0, 0%, 100%, 0.7); backdrop-filter: blur(30px);">
<div class="card-body px-4 py-5 px-md-5">
<h1 class="display-3 fw-bold ls-tight mb-4">
<span>Masjid</span> <br />
<span style="color:blue;"> Nurul Hidayah</span>
<p><cite style="font-style: italic; font-size: 20px;">"Barangsiapa Yang Lebih Mementingkan Ibadahnya Niscaya Surga Bagimu"</cite></p>
<!-- <a class="btn btn-link btn-lg py-3 px-5 text-danger mb-2 me-2" data-ripple-color="danger" href="#berita1" role="button" aria-controls="#picker-editor" draggable="false">Baca selengkapnya</a> -->
</div>
<!-- Card Qoute -->
</div>
</section>
</section>
<!---->
</div>
<!-- Main Content -->
<div style="position: relative;" data-draggable="true" class="" draggable="false">
<section draggable="false" class="container pt-5" data-v-271253ee="">
<section id="berita1" class="mb-10">
<h2 class="fw-bold mb-5 text-center">Berita Acara Terbaru <br /></h2>
<div class="row gx-lg-5 mb-5 align-items-center">
<div class="col-md-6 mb-4 mb-md-0 hover-zoom">
<img src="img/event/event_Akhirussanah.jpg" class="w-75 shadow-5-strong rounded-4 mb-4" alt="" aria-controls="#picker-editor" draggable="false" />
</div>
<div class="col-md-6 mb-4 mb-md-0">
<h3 class="fw-bold">Lomba Membaca Al-Qur'an</h3>
<div class="mb-2 text-danger small"><i class="fas fa-book-open me-2" aria-controls="#picker-editor"></i><span>Lomba</span></div>
<p class="text-muted">Lomba membaca Al-Quran dilaksanakan setiap bulan sekali dengan tujuan untuk mendidik anak-anak hingga orang tua yang tidak fasih dalam membaca Al-Quran agar semakin lancar.</p>
<p class="text-muted">
Mereka dibimbing oleh ustad abidin setiap malam rabu sekali, banyak juga anak-anak dari desa lain yang mengikuti kegiatan tersebut.
</p>
<a class="btn btn-primary" href="blog/2022_02_02.php" role="button" aria-controls="#picker-editor" draggable="false">Read more</a>
</div>
</div>
<div class="row gx-lg-5 mb-5 flex-lg-row-reverse align-items-center">
<div class="col-md-6 mb-4 mb-md-0 hover-zoom">
<img src="img/event/event_Akhirussanah1.jpg" class="w-100 shadow-5-strong rounded-4 mb-4" alt="" aria-controls="#picker-editor" draggable="false" />
</div>
<div class="col-md-6 mb-4 mb-md-0">
<h3 class="fw-bold">Pembagian Hadiah Pemenang Lomba Baca Al-Quran</h3>
<div class="mb-2 text-primary small"><i class="fas fa-book-reader me-2" aria-controls="#picker-editor"></i><span>Lomba</span></div>
<p class="text-muted">
Pemenang lomba akan diberi hadiah dengan maksud untuk memberi semangat lebih untuk mereka terus berlatih dan berlatih, hadiah diberikan kepada 3 pembaca Al-Quran yang paling baik dari segi bacaan hingga sesuai aturan Tajwid.
</p>
<a class="btn btn-primary disabled" href="#" role="button" aria-controls="#picker-editor" draggable="false">Read more</a>
</div>
</div>
<div class="row gx-lg-5 mb-5 align-items-center">
<div class="col-md-6 mb-4 mb-md-0 hover-zoom">
<img src="img/event/event_Akhirussanah2.jpg" class="w-100 shadow-5-strong rounded-4 mb-4" alt="" aria-controls="#picker-editor" draggable="false" />
</div>
<div class="col-md-6 mb-4 mb-md-0">
<h3 class="fw-bold">Pembacaan Qiro</h3>
<div class="mb-2 text-warning small"><i class="fas fa-box-open me-2" aria-controls="#picker-editor"></i><span>Akhirussanah</span></div>
<p class="text-muted">
Setelah lomba diakhiri dengan pembacaan Qiro yang dibawakan oleh Nairo dan husnul dengan tartil.
Ilmu Qira’at adalah Suatu ilmu untuk mengetahui kesepakatan serta perbedaan para ahli qira’at tentang cara pengucapan lafaz-lafaz dari Al-Qur’an, baik yang menyangkut aspek kebahasan, I’rab, hafz, isbat, fashl, washl, ibdal, yang diperoleh dengan cara periwayatan.
</p>
<a class="btn btn-primary disabled" href="#" role="button" aria-controls="#picker-editor" draggable="false">Read more</a>
</div>
</div>
</section>
</section>
<!---->
</div>
</div>
</div>
<!-- Main Content -->
<!-- Sambutan -->
<section class="pt-5 pb-5">
<div class="container my-5">
<div class="row p-4 pb-0 pe-lg-0 pt-lg-5 align-items-center rounded-3 border shadow-lg">
<div class="col-lg-7 p-3 p-lg-5 pt-lg-3">
<h1 class="display-4 fw-bold lh-1">Sambutan Ketua Masjid</h1>
<p class="lead">
Segala puji marilah kita panjatkan kehadirat Allah SWT bahwa atas berkah-Nya kita senantiasa mendapat limpahan rahmat dan keridoan-Nya sehingga Pondok Pesantren Nurul Jadid Al - Mas'udiyah terus berkembang maju
dan memberi kontribusi bagi masyarakat dan dunia pendidikan. Sholawat teriring salam semoga tercurahkan kepada junjungan Nabi Muhammad SAW, beserta keluarga, pada sahabat dan pengikutnya hingga akhir zaman.
Aamiin Ya Robbal Aalamiin.
</p>
<figcaption class="blockquote-footer">
TRIYONO, S.E.
</figcaption>
</div>
<div class="col-lg-4 offset-lg-1 p-0 overflow-hidden">
<img src="img/Ketua.jpeg" class="w-90 shadow-5-strong rounded-4 mb-4" alt="" aria-controls="#picker-editor" draggable="false" />
</div>
</div>
</div>
</section>
<!-- Sambutan -->
<!-- Statistic -->
<div class="container my-2">
<div class="row">
<div class="col-xl-3 col-sm-6 col-12 mb-4">
<div class="card">
<div class="card-body">
<div class="d-flex justify-content-between px-md-1">
<div class="align-self-center">
<i class="fas fa-pencil-alt text-info fa-3x"></i>
</div>
<div class="text-end">
<h3>278</h3>
<p class="mb-0">Posts</p>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-sm-6 col-12 mb-4">
<div class="card">
<div class="card-body">
<div class="d-flex justify-content-between px-md-1">
<div class="align-self-center">
<i class="far fa-comment-alt text-warning fa-3x"></i>
</div>
<div class="text-end">
<h3>156</h3>
<p class="mb-0">Comments</p>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-sm-6 col-12 mb-4">
<div class="card">
<div class="card-body">
<div class="d-flex justify-content-between px-md-1">
<div class="align-self-center">
<i class="fas fa-map-marker-alt text-danger fa-3x"></i>
</div>
<div class="text-end">
<h3>423</h3>
<p class="mb-0">Total Website Visits</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Statistic -->
<!-- Map -->
<div id="preview" class="preview">
<div style="display: none;"></div>
<div>
<div style="position: relative;" data-draggable="true">
<!---->
<!---->
<section draggable="false" class="container pt-5" data-v-271253ee="">
<section class="mb-10">
<style>
/* Map settings */
.map-container-2 {
height: 500px;
}
.map-container-2 iframe {
left: 0;
top: 0;
height: 100%;
width: 100%;
}
.rounded-t-5 {
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
}
@media (min-width: 992px) {
.rounded-tr-lg-0 {
border-top-right-radius: 0;
}
.rounded-bl-lg-5 {
border-bottom-left-radius: 0.5rem;
}
}
</style>
<div class="card mb-3">
<div class="row g-0 d-flex align-items-center">
<div class="col-lg-4 d-none d-lg-flex">
<div class="map-container-2 w-100 mb-4 mb-lg-0">
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3231.9539162717847!2d109.26038598160889!3d-7.455918280292359!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xaa5f74cfb8b9e069!2zN8KwMjcnMTkuNiJTIDEwOcKwMTUnMjguNyJF!5e0!3m2!1sen!2sid!4v1652519686949!5m2!1sen!2sid"
width="600"
height="450"
style="border: 0;"
allowfullscreen=""
loading="lazy"
referrerpolicy="no-referrer-when-downgrade"
></iframe>
</div>
</div>
<div class="col-lg-8">
<div class="card-body py-5 px-md-5">
<div class="row gx-lg-5">
<div class="col-md-6 mb-5">
<div class="d-flex align-items-start">
<div class="flex-shrink-0">
<div class="p-3 bg-primary rounded-4 shadow-2-strong"><i class="fas fa-headset fa-lg text-white fa-fw" aria-controls="#picker-editor"></i></div>
</div>
<div class="flex-grow-1 ms-4">
<p class="fw-bold mb-1">Kontak Kami</p>
<p class="text-muted mb-0">masjidnurulhidayah@gmail.com</p>
<p class="text-muted mb-0">+62 858-1267-2365 (Sutisna)</p>
</div>
</div>
</div>
<div class="col-md-6 mb-5">
<div class="d-flex align-items-start">
<div class="flex-shrink-0">
<div class="p-3 bg-primary rounded-4 shadow-2-strong"><i class="fas fa-dollar-sign fa-lg text-white fa-fw" aria-controls="#picker-editor"></i></div>
</div>
<div class="flex-grow-1 ms-4">
<p class="fw-bold mb-1">Website</p>
<p class="text-muted mb-0">majidyazid.com</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
<!---->
</div>
</div>
</div>
<!-- Map -->
<footer class="py-3 my-4">
<ul class="nav justify-content-center border-bottom pb-3 mb-3">
<li class="nav-item"><a href="index.php" class="nav-link px-2 text-muted">Home</a></li>
<li class="nav-item"><a href="pages/blog.php" class="nav-link px-2 text-muted">Berita</a></li>
<li class="nav-item"><a href="pages/aboutus.php" class="nav-link px-2 text-muted">Tentang Kami</a></li>
</ul>
<p class="text-center text-muted">© 2022 Masjid Nurul Hidayah</p>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body>
</html>