%PDF-1.4 %Óëéá 1 0 obj <> endobj 3 0 obj <> endobj 4 0 obj <
| Server IP : 212.252.79.165 / Your IP : 216.73.216.24 [ Web Server : Apache System : Linux 212-252-79-165.cprapid.com 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64 User : cehaburo ( 1001) PHP Version : 8.1.33 Disable Function : exec,passthru,shell_exec,system Domains : 48 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/cehaburo/public_html/ |
Upload File : |
<?php
include('lib/include.php');
$category_result = $ceha->query("SELECT * FROM tbl_product_category WHERE parent_id='$seo_id' AND active='1' ORDER BY sequence");
$parent_category_result = $ceha->query("SELECT * FROM tbl_product_category WHERE id='$seo_id' AND active='1'");
$parent_category = $parent_category_result->fetch_assoc();
include('header.php');
?>
<main id="content" class="bg-white">
<section class="img-breadcrumb ptb--100 bg-img-cover-center" style="background-image: url('<?php echo $parent_category['slider_image_url']; ?>');">
<div class="img-breadcrumb-overlay"></div>
<div class="container">
<div class="row">
<div class="col-md-6">
<h2><?php echo $parent_category['title_'.$lang]; ?></h2>
<nav aria-label="breadcrumb text-white">
<ol class="breadcrumb py-0">
<li class="breadcrumb-item"><a href="<?php echo $page_url[1]; ?>"><?php echo $variable[18]; ?></a></li>
<li class="breadcrumb-item active" aria-current="page"><?php echo $parent_category['title_'.$lang]; ?></li>
</ol>
</nav>
</div>
<div class="col-md-6">
<?php echo $parent_category['content_'.$lang]; ?>
</div>
</div>
</div>
</section>
<section class="py-10 pb-lg-13">
<div class="container">
<div class="row">
<?php while($category = $category_result->fetch_assoc()){
$products_result = $ceha->query("SELECT count(*) FROM tbl_product WHERE category_id='".$category['id']."' AND active='1' ");
$products=$products_result->fetch_assoc();
if($products['count(*)']==1){
$product_result = $ceha->query("SELECT * FROM tbl_product WHERE category_id='".$category['id']."' AND active='1' ");
$product=$product_result->fetch_assoc();
$direct_url=$page_url[8]."/".$product['id'];
}else{
$direct_url=$page_url[7]."/".$category['id'];
}
?>
<div class="col-sm-6 col-lg-4 mb-8" data-animate="fadeInUp">
<div class="card border-0 hover-change-content product">
<div class="card-img-top position-relative">
<div style="background-image: url('<?php echo $category['image_url']; ?>')" class="card-img ratio bg-img-contain-center ratio-1-1"></div>
</div>
<div class="card-body px-0 pt-4 pb-0 d-flex align-items-end">
<div class="m-auto"><div class="product-line"></div><a href="#" class="font-weight-bold mt-1 d-block text-center product-name"><?php echo $category['title_'.$lang]; ?>
</div></a></div>
<div class="position-absolute pos-fixed-bottom px-4 px-sm-6 pb-5 d-flex w-100 justify-content-center content-change-horizontal">
<a href="<?php echo $direct_url; ?>" title="<?php echo $variable[28]; ?>" class="inspect-product d-flex align-items-center justify-content-center"><?php echo $variable[28]; ?></a>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</section>
</main>
<?php include('footer.php'); ?>