PHP 8.5.2
Preview: service-detail.php Size: 3.84 KB
/home/serveshikshafoundation/htdocs/serveshikshafoundation.org.in/service-detail.php

<?php 
require('header.php');

$id = $_GET['id'];

$sql = "SELECT * FROM tour_packages WHERE id = $id";
$result = mysqli_query($conn, $sql);

// Display data from contact_info
if (mysqli_num_rows($result) > 0) {
    $row = mysqli_fetch_assoc($result);
   $id = $row['id'];
   $stitle = $row['package_name'];
   $simage = $row['package_image'];
   $sdescription = $row['description'];
    
} else {
    echo "0 results";
}
?>

        <!-- start page-title -->    
        <section class="page-title">
            <div class="page-title-bg"></div>
            <div class="container">
                <div class="title-box">
                    <h1><?php echo $stitle ?></h1>
                    <ol class="breadcrumb">
                        <li><a href="index.php">Home</a></li>
                        <li class="active"><?php echo $stitle ?></li>
                    </ol>
                </div>
            </div> <!-- end container -->
        </section>
        <style>
       
        .service-detail-section {
            padding: 60px 0;
            border-radius: 15px;
            margin: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
        .service-container {
            display: flex;
            background-color: #ffffff;
            color: #333333;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        }
        .service-image {
            flex: 0 0 40%;
            height: 400px;
            object-fit: cover;
            background-color: #313244;
        }
        .service-content {
            flex: 0 0 60%;
            padding: 30px;
        }
        .service-title {
            color: #ff6200;
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .service-description {
            font-size: 1.2rem;
            line-height: 1.8;
            margin-bottom: 30px;
        }
        .btn-call-now {
            background-color: #ff6200;
            color: #ffffff;
            padding: 12px 30px;
            border: none;
            border-radius: 25px;
            font-size: 1.2rem;
            text-transform: uppercase;
            transition: background-color 0.3s ease;
        }
        .btn-call-now:hover {
            background-color: #e65100;
        }
        .date-time {
            text-align: center;
            color: #ff6200;
            font-size: 1.1rem;
            margin-top: 20px;
            font-style: italic;
        }
        @media (max-width: 768px) {
            .service-container {
                flex-direction: column;
            }
            .service-image {
                flex: 0 0 100%;
                height: 250px;
            }
            .service-content {
                flex: 0 0 100%;
                padding: 20px;
            }
            .service-title {
                font-size: 2rem;
            }
            .service-description {
                font-size: 1rem;
            }
        }
    </style>
<section class="service-detail-section">
        <div class="container">
            <div class="service-container">
                <img style="object-fit:contain; width:450px; height:450px;" src="admin/html/<?php echo $simage?>" alt="<?php echo $stitle ?>" class="service-image">
                <div class="service-content">
                    <h2 class="service-title"><?php echo $stitle ?></h2>
                    <p class="service-description"><?php echo $sdescription ?></p>
                    <a href="contact.php" class="btn btn-call-now">Enroll Now</a>
                </div>
            </div>
        </div>
    </section>


<?php 
require('footer.php');
?>

Directory Contents

Dirs: 9 × Files: 13

Name Size Perms Modified Actions
- drwxr-x--- 2026-04-06 05:06:07
Edit Download
admin DIR
- drwxr-xr-x 2025-06-20 19:52:56
Edit Download
css DIR
- drwxr-xr-x 2017-02-09 07:19:34
Edit Download
- drwxr-xr-x 2017-02-06 08:34:56
Edit Download
fonts DIR
- drwxr-xr-x 2017-02-09 07:19:36
Edit Download
images DIR
- drwxr-xr-x 2026-05-12 05:55:39
Edit Download
js DIR
- drwxr-xr-x 2017-02-09 07:19:38
Edit Download
one-page DIR
- drwxr-xr-x 2017-02-09 07:22:46
Edit Download
sass DIR
- drwxr-xr-x 2017-02-09 07:19:38
Edit Download
14.64 KB lrw-r----- 2025-07-01 04:44:27
Edit Download
2.79 KB lrw-r----- 2025-06-28 21:45:06
Edit Download
1.09 KB lrw-r----- 2026-04-08 07:27:29
Edit Download
7.78 KB lrw-r----- 2025-06-30 06:53:01
Edit Download
2.82 KB lrw-r----- 2025-07-04 06:36:48
Edit Download
5.77 KB lrw-r----- 2025-06-30 10:33:33
Edit Download
3.78 KB lrw-r----- 2025-10-14 09:36:36
Edit Download
9.86 KB lrw-r----- 2025-07-04 05:51:14
Edit Download
34.45 KB lrw-r----- 2026-05-12 06:04:21
Edit Download
562 B lrw-r----- 2017-02-09 07:17:08
Edit Download
294.58 MB lrw-r--r-- 2026-04-06 05:07:53
Edit Download
3.84 KB lrw-r----- 2025-07-01 04:55:12
Edit Download
5.77 KB lrw-r----- 2025-06-30 11:30:33
Edit Download

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