-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathService.php
More file actions
144 lines (128 loc) · 6.87 KB
/
Copy pathService.php
File metadata and controls
144 lines (128 loc) · 6.87 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
<?php
require_once "scripts/includes/fetch-service-page.php";
require_once "scripts/includes/check-super-admin.php";
?>
<!DOCTYPE html>
<html lang="ar">
<head>
<?php require "scripts/includes/head.php"; ?>
<meta name="description" content="<?= $service["meta_description"] ?>">
<!--vendor css files-->
<link rel="stylesheet" href="css/aos.css"/>
<link rel="stylesheet" href="css/all.css">
<!--main css files-->
<link rel="stylesheet" href="css/text-format-controller.css" />
<link rel="stylesheet" href="css/Service.css" />
<title>Service - <?= $service["title"] ?></title>
<style>
.Service_img_container {
background-image: url('<?= $service["picture"] ?>');
}
</style>
</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-->
<!--starting the img and title -->
<div class="Service_img_container">
<div class="Service_img"><?= $service["title"] ?></div>
</div>
<?php if ($is_super_admin) { ?>
<form id="video_form" class="container serv_img_form" method="post" action="scripts/change service picture.php?svcid=<?= $service["id"] ?>" enctype="multipart/form-data">
<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="picture" type="file" required onchange="change_video()">
<input class="btn btn-primary form_btn video_btn" style="display:none" type="submit">
</form>
<?php } ?>
<!--starting the img and title -->
<!--starting service definition and our points of strengths -->
<section class="container Service_description">
<h2 class=" description_heading" data-aos="zoom-in-up"><?= $service["title"] ?></h2>
<?php if ($is_super_admin) { ?>
<form class="container form_container" method="post" action="scripts/change service scripts/change service title.php?svcid=<?= $service["id"] ?>">
<textarea class="form_massage title_text" name="title" cols="50" rows="7" required placeholder="تغيير عنوان الخدمة..."></textarea><br>
<input class="btn btn-primary form_btn" type="submit" value="تغيير">
</form>
<?php } ?>
<div class="page_paragraphs" data-aos="zoom-in-up">
<?= processMarkdown($service["description"]) ?>
</div>
<?php if ($is_super_admin) { ?>
<form class="container form_container" method="post" action="scripts/change service scripts/change service description.php?svcid=<?= $service["id"] ?>">
<?php include "scripts/includes/text-format-controller.php"; ?>
<textarea class="form_massage txt-ctrl-output disc_txtarea" name="description" 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 } ?>
<hr class="discriptions_divider" data-aos="zoom-in-up">
<h2 class="description_heading" data-aos="zoom-in-up">موضع تميزنا في هذا المجال</h2>
<div class="page_paragraphs" data-aos="zoom-in-up">
<?= processMarkdown($service["why_us"]) ?>
</div>
<?php if ($is_super_admin) { ?>
<form class="container form_container" method="post" action="scripts/change service scripts/change service why_us.php?svcid=<?= $service["id"] ?>">
<?php include "scripts/includes/text-format-controller.php"; ?>
<textarea class="form_massage txt-ctrl-output disc_txtarea" name="why_us" 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 } ?>
</section>
<!--ending service definition and our points of strengths -->
<!--starting before and after cards section -->
<section class="container">
<div class="row">
<?php foreach ($serv_achievements as $achiev) { ?>
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12" data-aos="zoom-in-up">
<div class="achivement_card card">
<img loading="lazy" src="<?= $achiev["picture"] ?>" alt="before and after img" class="achivement_img">
<h3 class="text-center acivement_heading"><?= $achiev["title"] ?></h3>
<div class="page_paragraphs card_content">
<?= processMarkdownCard($achiev["description"]) ?>
</div>
<a class="btn btn-primary achivement_link" role="button" href="achievement.php?achvid=<?= $achiev["id"] ?>">اقرأ المزيد</a>
</div>
</div>
<?php } ?>
</div>
</section>
<!--ending before and after cards section -->
<!--starting footer-->
<?php include "scripts/includes/footer.php"; ?>
<!--ending footer-->
<!--vendor js files-->
<script src="js/aos.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/all.js"></script>
<script>
let change_video = ()=> document.querySelector("#video_form input[type='submit']").click();
AOS.init({
duration: 1600,
once: true
});
</script>
<!--main js files-->
<script src="js/text-format-controller.js"></script>
</body>
</html>
<?php
mysqli_close($conn);
?>