177 lines
6.9 KiB
PHP
177 lines
6.9 KiB
PHP
<?PHP
|
|
require_once "../admin/db/config.php";
|
|
if (!isset($_GET['service']) && empty($_GET['service'])) header('Location: index.php');
|
|
$service_id = (int) base64_decode($_GET['service']);
|
|
|
|
if (isset($connection)) {
|
|
$pageData = $connection->query("SELECT `page`.*, `category`.`name` AS `category_name`, `sub_category`.`name` AS `sub_category_name`
|
|
FROM ((`page`
|
|
INNER JOIN `category` ON `page`.`category_id` = `category`.`id`)
|
|
INNER JOIN `sub_category` ON `page`.`sub_category_id` = `sub_category`.`id`)
|
|
WHERE `page`.`id` = $service_id;");
|
|
if ($pageData) {
|
|
if($pageData->num_rows > 0){
|
|
|
|
$data = $pageData->fetch_object();
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
?>
|
|
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
|
|
<?PHP include './includes/links.php'; ?>
|
|
<title>Tech4Biz - <?PHP if (isset($data)) {
|
|
echo $data->sub_category_name;
|
|
} ?></title>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
<?PHP include './includes/spinner.php'; ?>
|
|
|
|
<?PHP include './includes/header.php'; ?>
|
|
|
|
<div class="service-details-area pt-100 pb-70">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-8">
|
|
<div class="service-article">
|
|
|
|
<div class="service-article-content">
|
|
<h2><?PHP
|
|
if (isset($data)) {
|
|
echo $data->title;
|
|
}
|
|
?>
|
|
</h2>
|
|
<p>
|
|
<?PHP
|
|
if (isset($data)) {
|
|
echo $data->content2;
|
|
}
|
|
?>
|
|
</p>
|
|
</div>
|
|
<div class="service-article-another">
|
|
<div class="row">
|
|
<div class="col-lg-4 col-sm-4">
|
|
<div class="service-article-another-img">
|
|
<?PHP
|
|
if (isset($data)) { ?>
|
|
<img src="./uploads/<?PHP echo $data->image1; ?>" alt="Images">
|
|
<?PHP }
|
|
?>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4 col-sm-4">
|
|
<div class="service-article-another-img">
|
|
<?PHP
|
|
if (isset($data)) { ?>
|
|
<img src="./uploads/<?PHP echo $data->image2; ?>" alt="Images">
|
|
<?PHP }
|
|
?>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4 col-sm-4">
|
|
<div class="service-article-another-img">
|
|
<?PHP
|
|
if (isset($data)) { ?>
|
|
<img src="./uploads/<?PHP echo $data->image3; ?>" alt="Images">
|
|
<?PHP }
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="service-article-another">
|
|
<h2><?PHP
|
|
if (isset($data)) {
|
|
echo $data->title2;
|
|
}
|
|
?>
|
|
</h2>
|
|
<p>
|
|
<?PHP
|
|
if (isset($data)) {
|
|
echo $data->content2;
|
|
}
|
|
?>
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-4">
|
|
<div class="side-bar-area">
|
|
<div class="side-bar-widget">
|
|
<h3 class="title">Our Services</h3>
|
|
<div class="side-bar-categories">
|
|
<ul>
|
|
|
|
<?PHP
|
|
if (isset($connection)) {
|
|
$getAllServices = $connection->query("SELECT * FROM `category` WHERE `status` = 1 ORDER BY `name` ");
|
|
if ($getAllServices) {
|
|
while ($service = $getAllServices->fetch_object()) { ?>
|
|
<li>
|
|
<div class="line-circle"></div>
|
|
<a href="service.php" target="_blank"><?PHP echo $service->name; ?></a>
|
|
</li>
|
|
<?PHP }
|
|
}
|
|
}
|
|
?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="side-bar-widget">
|
|
<h3 class="title">More Services on <?PHP if (isset($data)) {
|
|
echo $data->category_name;
|
|
} ?></h3>
|
|
<div class="side-bar-categories">
|
|
<ul>
|
|
|
|
<?PHP
|
|
|
|
if (isset($connection) && isset($data)) {
|
|
$getAllServices = $connection->query("SELECT `page`.*, `category`.`name` AS `category_name`, `sub_category`.`name` AS `sub_category_name`
|
|
FROM ((`page`
|
|
INNER JOIN `category` ON `page`.`category_id` = `category`.`id`)
|
|
INNER JOIN `sub_category` ON `page`.`sub_category_id` = `sub_category`.`id`)
|
|
WHERE `page`.`category_id` = $data->category_id; ");
|
|
if ($getAllServices) {
|
|
while ($service = $getAllServices->fetch_object()) { ?>
|
|
<li>
|
|
<div class="line-circle"></div>
|
|
<a href="service_details.php?service=<?PHP echo base64_encode($service->id)?>" target="_blank"><?PHP echo $service->sub_category_name; ?></a>
|
|
</li>
|
|
<?PHP }
|
|
}
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?PHP include './includes/footer.php'; ?>
|
|
|
|
<?PHP include './includes/scripts.php'; ?>
|
|
</body>
|
|
</html>
|