-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
271 lines (252 loc) · 11.8 KB
/
Copy pathindex.php
File metadata and controls
271 lines (252 loc) · 11.8 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
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
<?php
/*
* Copyright Reserved © Simi-techno
*/
require_once "scripts/includes/fetch-admins-home.php";
require_once "scripts/includes/fetch-is-admin-super.php";
require_once "scripts/includes/fetch-articles-home.php";
require_once "scripts/includes/fetch-contents-home.php";
?>
<!DOCTYPE html>
<html lang="ar">
<head>
<?php require "scripts/includes/head.php"; ?>
<link rel="stylesheet" href="css/owl.carousel.min.css"/>
<link rel="stylesheet" href="css/all.css"/>
<link rel="stylesheet" href="http://fonts.googleapis.com/earlyaccess/droidarabickufi.css" crossorigin/>
<!--main css files-->
<link rel="stylesheet" href="css/text-format-controller.css"/>
<link rel="stylesheet" href="css/home_page.css"/>
<title>Salem Center</title>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N6JGM2PW"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<!--begging navbar-->
<?php include "scripts/includes/navbar-user.php"; ?>
<!--ending navbar-->
<!--begging welcome massage section-->
<section class="welcom_masage_container ">
<h1 class="welcom_masage">
<?= processmarkdown($aboutText[0]["about"]); ?>
</h1>
<?php if($curr_admin_super) {?>
<form class="container" method="post" action="scripts/change about text.php?contid=1">
<h3>تغيير رسالة الترحيب</h3>
<textarea class="form_massage" name="about" cols = "50" rows="7" required placeholder="ادخل النص..."></textarea><br>
<input class="btn btn-primary form_btn" type="submit" value="تغيير">
</form>
<?php } ?>
<p class="welcom_masage_paragraph">
<?= processmarkdown($aboutText[1]["about"]); ?>
</p>
<?php if($curr_admin_super) {?>
<form class="container" method="post" action="scripts/change about text.php?contid=2">
<h3>تغيير جملة الترحيب</h3>
<textarea class="form_massage" name="about" cols = "50" rows="7" required placeholder="ادخل النص..."></textarea><br>
<input class="btn btn-primary form_btn" type="submit" value="تغيير">
</form>
<?php } ?>
</section>
<!--ending welcome massage section-->
<!--begging about section-->
<section class="about_section text-center ">
<div class="about_container">
<h1 class="about_heading">
<?= processmarkdown($aboutText[2]["about"]); ?>
</h1>
<?php if($curr_admin_super) {?>
<form class="container" method="post" action="scripts/change about text.php?contid=3">
<h3>تغيير العنوان</h3>
<textarea class="form_massage" name="about" cols = "50" rows="7" required placeholder="ادخل النص..."></textarea><br>
<input class="btn btn-primary form_btn" type="submit" value="تغيير">
</form>
<?php } ?>
<video loading="lazy" controls muted class="video_container">
<source src="uploads/videos/intro.mp4">
<source>
this browser does not support video
</video>
<?php if($curr_admin_super) {?>
<form id="video_form" class="container" method="post" action="scripts/change intro video.php" enctype="multipart/form-data">
<h3>تغيير الفيديو</h3>
<label for="video_file" class="btn btn-primary form_btn">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-cloud-arrow-up-fill" viewBox="0 0 16 16" style="margin-bottom: -5px;">
<path d="M8 2a5.53 5.53 0 0 0-3.594 1.342c-.766.66-1.321 1.52-1.464 2.383C1.266 6.095 0 7.555 0 9.318 0 11.366 1.708 13 3.781 13h8.906C14.502 13 16 11.57 16 9.773c0-1.636-1.242-2.969-2.834-3.194C12.923 3.999 10.69 2 8 2zm2.354 5.146a.5.5 0 0 1-.708.708L8.5 6.707V10.5a.5.5 0 0 1-1 0V6.707L6.354 7.854a.5.5 0 1 1-.708-.708l2-2a.5.5 0 0 1 .708 0l2 2z"/>
</svg>
ارفع الفيديو
</label>
<input id="video_file" class="video_file" name="video" type="file" required onchange="change_video()">
<input class="btn btn-primary form_btn video_btn" style="display:none" type="submit">
</form>
<?php } ?>
<div class="page_paragraphs">
<?= processmarkdown($aboutText[3]["about"]); ?>
</div>
<?php if($curr_admin_super) {?>
<form class="container" method="post" action="scripts/change about text.php?contid=4">
<h3>تغيير النبذة</h3>
<div class="txt-format-container">
<?php include "scripts/includes/text-format-controller.php"; ?>
</div>
<textarea class="form_massage about_form txt-ctrl-output" name="about" cols = "50" rows="7" required placeholder="ادخل النص..."></textarea><br>
<div class="container">
<div class="txt-ctrl-preview" dir="rtl">
</div>
</div>
<input class="btn btn-primary form_btn" type="submit" value="تغيير">
</form>
<?php } ?>
<div>
<p class="map_heading">
اعثر علينا على خرائط جوجل
</p>
<iframe loading="lazy"
class="google_maps"
loading="lazy"
allowfullscreen
referrerpolicy="no-referrer-when-downgrade"
src="https://www.google.com/maps/embed/v1/place?key=AIzaSyB7O-sZqBRRoUyo1MrFwgeGmSyoZGk7Wu0
&q=22+Ali+HYBA,+As+Soyouf+Bahri,+Montaza+1,+Alexandria+Governorate+21500">
</iframe>
</div>
</div>
</section>
<!--ending about section-->
<!--begging staff section-->
<section class="staff_section text-center">
<div class="staff_container">
<!-- Start Printing Owner info -->
<div class="container">
<img loading="lazy" src="<?= $admins[0]["picture"]; ?>" class="salem_img salem_photo" alt="salem img">
<div class="admin_name"><?= $admins[0]["name"]; ?></div>
<p class="page_paragraphs">
<?= processmarkdown($admins[0]["description"]); ?>
</p>
<ul class="salem_certificates">
<?php foreach($admins[0]["certificates"] as $certif) {?>
<?php if($certif["cert_pic"]) { ?>
<img loading="lazy" class="cer_img" src="<?= $certif["cert_pic"]; ?>" alt="<?= $admins[0]["name"] ?> Picture">
<?php } ?>
<p><?= $certif["cert_title"]; ?></p>
<?php } ?>
</ul>
</div>
<!-- End Printing Owner info -->
<!-- Start Printing Assistants info -->
<div class="container">
<?php for($i = 1; $i < count($admins); $i++) {
if($admins[$i]["suspended"]) continue;
?>
<div class="assisstant">
<img loading="lazy" src="<?= $admins[$i]["picture"]; ?>" class="salem_img img-responsive" alt="<?= $admins[$i]["name"]; ?> img">
<div class="assistant_name" ><?= $admins[$i]["name"]; ?></div>
<p class="page_paragraphs">
<?= processmarkdown($admins[$i]["description"]); ?>
</p>
<?php if(count($admins[$i]["certificates"])) { ?>
<button class="btn btn-primary dropdown-toggle dropdown_botton" onclick="show(this)">
الشهادات
</button>
<ul class="staff_certificates dropdown_list">
<?php foreach($admins[$i]["certificates"] as $certif) {?>
<?php if($certif["cert_pic"]) {?>
<img loading="lazy" class="cer_img" src="<?= $certif["cert_pic"]; ?>" alt="<?= $certif["cert_title"]; ?> Picture">
<?php } ?>
<?php } ?>
</ul>
<?php } ?>
</div>
<?php } ?>
</div>
<!-- End Printing Assistants info -->
</div>
</section>
<!--ending staff section-->
<!--starting reserving section-->
<!-- <section class="about_section reservation_section text-center " id="reservation">
<div class="about_container">
<h1 class="about_heading">
سارع بالحجز الآن
</h1>
<p class="reservation_way">
اختر طريقة الحجز
</p>
<a class="reservation_link" href="scripts/vezeeta redirect.php" target="_blank">
<button class="reservation_button btn btn-primary">
<img loading="lazy" src="assets/vezeetz icon.webp" width="30px" height="30px" alt="vezeeta icon">
احجز عن طريق فيزيتا
</button>
</a>
<br>
<a class="reservation_link" href="scripts/whatsapp redirect.php" target="_blank">
<button class="reservation_button btn " style="padding:9.8px 10px 9.8px 10px; background-color: #0eb94e; color: #fbfbfb;" >
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" class="bi bi-whatsapp" viewBox="0 0 16 16" style="margin-bottom:2px ;">
<path d="M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"/>
</svg>
احجز عن طريق واتساب
</button>
</a>
</div>
</section> -->
<!--ending reserving section-->
<!--starting article carousel-->
<section>
<div class="owl-carousel">
<!-- Start Printing Articles -->
<?php foreach($articles as $article) {?>
<div class="article_card">
<h2 class="article_heading text-center">
<?= $article["title"]; ?>
</h2>
<div class="article_paragraph">
<?= processMarkdownCard($article["content"]); ?>
</div>
<a href="Article.php?artid=<?= $article["id"]; ?>" class="article_link">....اقرأ المزيد</a>
</div>
<?php } ?>
<!-- End Printing Articles -->
</div>
</section>
<!--ending article carousel-->
<!--starting footer-->
<?php require_once "scripts/includes/footer.php"; ?>
<!--ending footer-->
<!--vendor js files-->
<script src="js/bootstrap.min.js"></script>
<script src="js/aos.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/all.js"></script>
<!--main js files-->
<script src="js/text-format-controller.js"></script>
<script src="js/home_page.js"></script>
<script>
$(document).ready(function(){
$(".owl-carousel").owlCarousel({
loop: true,
dots: false,
autoplay: true,
lazyLoad: true,
smartSpeed: 1000,
responsive: {
0: {
items: 1
},
600: {
items: 2
},
1000: {
items: 3
}
}
});
});
</script>
</body>
</html>
<?php
mysqli_close($conn);
?>