PHP 8.0.30
Preview: service-details.php Size: 5.31 KB
/home/ostadcom/public_html/ostadgroup.com/service-details.php

<?php
include "admin/php/functions.php";
$id = intval($_GET['id']);
if(!isset($_GET['id'])){
    header("location:services.php");
    exit();
}
$service = $connect -> prepare("select * from `tbl_service` where `delete_flag` = 0 and `id` = ".$id);
$service -> execute();
if($service -> rowCount() == 0){
    header("location:services.php");
    exit();
}
$serviceRow = $service -> fetch(PDO::FETCH_ASSOC);
?>
<!doctype html>
<html class="no-js" lang="en">

<head>
    <title>Ostad Group - <?php echo $serviceRow['title']; ?></title>
    <meta name="description" content="">
    <?php include "head.php"; ?>
</head>

<body>

<!--============================== Preloader ==============================-->
<?php include "preloader.php"; ?>

<?php include "menu.php"; ?>

<!--============================== Breadcumb ============================== -->
<div class="breadcumb-wrapper " data-bg-src="assets/img/bg/breadcumb-bg.jpg">
    <div class="container">
        <div class="breadcumb-content">
            <h1 class="breadcumb-title"><?php echo $serviceRow['title']; ?></h1>
            <ul class="breadcumb-menu">
                <li><a href="index.php">Home</a></li>
                <li><a href="services.php">Service</a></li>
                <li><?php echo $serviceRow['title']; ?></li>
            </ul>
        </div>
    </div>
</div>
<!--============================== Service Area ==============================-->
<section class="space-top space-extra-bottom">
    <div class="container">
        <div class="row">
            <div class="col-xxl-8 col-lg-7">
                <div class="page-single mb-30">
                    <div class="page-img">
                        <img src="<?php echo $serviceRow['image']; ?>" alt="<?php echo $serviceRow['title']; ?>">
                    </div>
                    <div class="page-content">
                        <h2 class="h3 sec-title page-title"><?php echo $serviceRow['title']; ?></h2>
                        <div>
                            <?php echo $serviceRow['description']; ?>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xxl-4 col-lg-5">
                <aside class="sidebar-area">
                    <div class="widget widget_search  ">
                        <form class="search-form" method="get" action="services.php">
                            <input type="text" name="search" placeholder="Enter Keyword">
                            <button type="submit"><i class="far fa-search"></i></button>
                        </form>
                    </div>
                    <div class="widget  ">
                        <h3 class="widget_title">Other services</h3>
                        <div class="recent-post-wrap">
                            <?php
                            $serviceSidebar = $connect -> prepare("select * from `tbl_service` where `delete_flag` = 0 order by rand() limit 4");
                            $serviceSidebar -> execute();
                            if($serviceSidebar -> rowCount() > 0){
                                while ($serviceSidebarRows = $serviceSidebar -> fetch(PDO::FETCH_ASSOC)){
                            ?>
                            <div class="recent-post">
                                <div class="media-img">
                                    <a href="service-details.php?id=<?php echo $serviceSidebarRows['id']; ?>"><img src="<?php echo $serviceSidebarRows['image']; ?>"
                                                                     alt="<?php echo $serviceSidebarRows['title']; ?>"></a>
                                </div>
                                <div class="media-body">
                                    <h4 class="post-title"><a class="text-inherit" href="service-details.php?id=<?php echo $serviceSidebarRows['id']; ?>"><?php echo $serviceSidebarRows['title']; ?></a></h4>
                                </div>
                            </div>
                            <?php
                                }
                            }
                            ?>
                        </div>
                    </div>
                </aside>
            </div>
        </div>
    </div>
</section>

<!--============================== Footer Area ==============================-->
<?php include "footer.php"; ?>

<!-- Scroll To Top -->
<div class="scroll-top">
    <svg class="progress-circle svg-content" width="100%" height="100%" viewBox="-1 -1 102 102">
        <path d="M50,1 a49,49 0 0,1 0,98 a49,49 0 0,1 0,-98"
              style="transition: stroke-dashoffset 10ms linear 0s; stroke-dasharray: 307.919, 307.919; stroke-dashoffset: 307.919;"></path>
    </svg>
</div>


<script src="<?php echo $url; ?>assets/js/vendor/jquery-3.7.1.min.js"></script>
<script src="<?php echo $url; ?>assets/js/swiper-bundle.min.js"></script>
<script src="<?php echo $url; ?>assets/js/bootstrap.min.js"></script>
<script src="<?php echo $url; ?>assets/js/jquery.magnific-popup.min.js"></script>
<script src="<?php echo $url; ?>assets/js/jquery.counterup.min.js"></script>
<script src="<?php echo $url; ?>assets/js/tilt.jquery.min.js"></script>
<script src="<?php echo $url; ?>assets/js/imagesloaded.pkgd.min.js"></script>
<script src="<?php echo $url; ?>assets/js/isotope.pkgd.min.js"></script>
<script src="<?php echo $url; ?>assets/js/main.js"></script>
</body>

</html>

Directory Contents

Dirs: 4 × Files: 18

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-17 18:27:30
Edit Download
admin DIR
- drwxr-xr-x 2026-07-25 23:31:38
Edit Download
assets DIR
- drwxr-xr-x 2026-01-01 07:37:07
Edit Download
images DIR
- drwxr-xr-x 2025-12-31 08:29:39
Edit Download
700 B lrw-r--r-- 2026-08-01 00:14:03
Edit Download
6.01 KB lrw-r--r-- 2026-01-01 07:18:27
Edit Download
6.34 KB lrw-r--r-- 2026-01-01 07:18:07
Edit Download
6.89 KB lrw-r--r-- 2026-01-01 07:17:50
Edit Download
4.32 KB lrw-r--r-- 2026-01-01 07:17:32
Edit Download
8.00 MB lrw-r--r-- 2026-08-02 05:35:46
Edit Download
5.24 KB lrw-r--r-- 2024-12-29 10:45:04
Edit Download
1.62 KB lrw-r--r-- 2026-01-01 07:14:35
Edit Download
25.78 KB lrw-r--r-- 2026-01-01 07:42:03
Edit Download
9.35 KB lrw-r--r-- 2025-02-05 08:03:32
Edit Download
355 B lrw-r--r-- 2024-08-04 18:32:42
Edit Download
66 B lrw-r--r-- 2025-11-27 07:18:17
Edit Download
8.05 KB lrw-r--r-- 2026-01-01 04:15:18
Edit Download
5.31 KB lrw-r--r-- 2026-01-01 07:17:00
Edit Download
3.71 KB lrw-r--r-- 2026-01-01 07:16:41
Edit Download
5.93 KB lrw-r--r-- 2026-01-01 04:15:18
Edit Download
3.88 KB lrw-r--r-- 2026-01-01 04:15:18
Edit Download
1.02 KB lrw-r--r-- 2026-01-01 04:15:18
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).