-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.php
More file actions
180 lines (156 loc) · 7.37 KB
/
service.php
File metadata and controls
180 lines (156 loc) · 7.37 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
<?php
include('./admin/inc/config.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CtrlClick - Smart Web Development Agency | Australia </title>
<!-- Stylesheets -->
<link rel="preconnect" href="https://fonts.gstatic.com/">
<link
href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Teko:wght@300;400;500;600;700&display=swap"
rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/fontawesome-all.css" rel="stylesheet">
<link href="css/owl.css" rel="stylesheet">
<link href="css/flaticon.css" rel="stylesheet">
<link href="css/linoor-icons-2.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/jquery-ui.css" rel="stylesheet">
<link href="css/jquery.fancybox.min.css" rel="stylesheet">
<link href="css/hover.css" rel="stylesheet">
<link rel="stylesheet" href="css/jarallax.css">
<link href="css/custom-animate.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/swiper.min.css" rel="stylesheet">
<!-- rtl css -->
<link href="css/rtl.css" rel="stylesheet">
<!-- Responsive File -->
<link href="css/responsive.css" rel="stylesheet">
<link href="css/mycss.css" rel="stylesheet">
<!-- Color css -->
<link rel="stylesheet" id="jssDefault" href="css/colors/color-default.css">
<link rel="shortcut icon" href="images/favicon.png" id="fav-shortcut" type="image/x-icon">
<link rel="icon" href="images/favicon.png" id="fav-icon" type="image/x-icon">
<!-- Responsive Settings -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!-- fontawesome cnd links -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
.service-nine__text {
color: #158cac !important;
line-height: 25px;
}
.service-nine__link {
background-color: #01395c !important;
opacity: 1 !important;
}
.service-nine__link:hover {
background-color: #158cac !important;
opacity: 1 !important;
color: #ffffff;
}
#circle-icon {
display: flex;
justify-content: center;
}
#limit-text {
color: #158cac;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="page-wrapper">
<!-- Main Header -->
<?php include('include/header.php'); ?>
<!-- End Main Header -->
<!-- Banner Section -->
<section class="page-banner">
<div class="image-layer" style="background-image:url(images/background/image-7.jpg);"></div>
<div class="shape-1"></div>
<div class="shape-2"></div>
<div class="banner-inner">
<div class="auto-container">
<div class="inner-container clearfix">
<h1 id="yellow-color">Services</h1>
<div class="page-nav">
<ul class="bread-crumb clearfix">
<li><a href="index.php">Home</a></li>
<li class="active">Services </li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!--End Banner Section -->
<!-- service Section -->
<section class="news-section">
<div class="auto-container">
<div class="row clearfix">
<?php
$i = 0;
$statement = $pdo->prepare("SELECT * FROM tbl_service ORDER BY ser_id DESC");
$statement->execute();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {
$i++;
$ser_heading = $row['ser_heading'];
$url = $row['url'];
$ser_image = $row['ser_image'];
$ser_icon = $row['ser_icon'];
$wordLimit = 30; // Set your word limit
$limitedContent = implode(' ', array_slice(explode(' ', $row['ser_description']), 0, min($wordLimit, str_word_count($row['ser_description'])))) . (str_word_count($row['ser_description']) > $wordLimit ? '...' : '');
?>
<div class="news-block col-lg-4 col-md-6 col-sm-12 wow fadeInUp" data-wow-delay="0ms"
data-wow-duration="1500ms">
<div class="inner-box">
<div class="image-box">
<a href="service-details.php?url=<?= $url; ?>"> <img src="./admin/uploads/services/<?= $ser_image; ?>" alt="<?= $ser_heading; ?>" style=" height:250px; width:100%; "></a>
</div>
<div class="lower-box">
<h5 style="margin-top:20px;">
<a href="service-details.php?url=<?= ($ser_heading); ?>"><?= $ser_heading; ?></a>
</h5>
<div class="text text-uppercase" id="limit-text" style="color:#01395c;"><?= $limitedContent; ?></div>
<div class="link-box" id="circle-icon">
<a href="service-details.php?url=<?= $url; ?>" class="service-nine__link">
<i class="fa fa-angle-right"></i>
</a>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</section>
<!-- Main Footer Start -->
<?php include('include/footer.php'); ?>
<!-- Main Footer End -->
</div>
<!--End pagewrapper-->
<script src="js/jquery.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/TweenMax.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/jquery.fancybox.js"></script>
<script src="js/owl.js"></script>
<script src="js/mixitup.js"></script>
<script src="js/knob.js"></script>
<script src="js/appear.js"></script>
<script src="js/wow.js"></script>
<script src="js/jQuery.style.switcher.min.js"></script>
<script type="text/javascript" src="../../cdnjs.cloudflare.com/ajax/libs/js-cookie/2.1.2/js.cookie.min.js">
</script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/custom-script.js"></script>
<script src="js/lang.js"></script>
<script src="../../translate.google.com/translate_a/elementa0d8.js?cb=googleTranslateElementInit"></script>
<script src="js/color-switcher.js"></script>
</body>
</html>