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