Server : LiteSpeed System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64 User : u615232177 ( 615232177) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/u615232177/domains/poiseseat.com/public_html/ |
<?php session_start();
$page_name = basename($_SERVER['PHP_SELF']);
include("header.php"); ?>
<title><?php echo $company_name; ?> - Home</title>
<div class="col-md-12 col-xs-12" id="product_msg"></div>
<!-- Slide1 -->
<section class="slide1">
<div class="wrap-slick1">
<div class="slick1">
<?php
$one=1;
$stmt = $con -> prepare('SELECT * FROM picture_slider');
$stmt -> execute();
$stmt -> store_result();
$stmt -> bind_result($home_id,$home_heading,$home_heading2,$home_paragraph,$home_picture);
$numrows = $stmt -> num_rows();
if($numrows > 0){
while ($stmt -> fetch()) {
?>
<div class="item-slick1 item1-slick1" style="background-image: url(<?php echo $admin_no ?>/assets/img/home_background/<?php echo $home_picture; ?>);">
<div class="wrap-content-slide1 sizefull flex-col-c-m p-l-15 p-r-15 p-t-150 p-b-170">
<span class="caption1-slide1 m-text1 t-center animated visible-false m-b-15" data-appear="fadeInDown">
<?php echo $home_paragraph; ?>
</span>
<h2 class="caption2-slide1 xl-text1 t-center animated visible-false m-b-37" data-appear="fadeInUp">
<?php echo $home_heading; ?>
</h2>
<div class="wrap-btn-slide1 w-size1 animated visible-false" data-appear="zoomIn">
<!-- Button -->
<a href="shop.php" class="flex-c-m size2 bo-rad-23 s-text2 bgwhite hov1 trans-0-4">
Shop Now
</a>
</div>
</div>
</div>
<?php }} ?>
</div>
</div>
</section>
<?php include("box_queries.php"); ?>
<!-- Banner -->
<section class="banner bgwhite p-t-40 p-b-40">
<div class="container">
<div class="row">
<div class="col-sm-10 col-md-8 col-lg-4 m-l-r-auto">
<!-- block1 -->
<div class="block1 hov-img-zoom pos-relative m-b-30" data-aos='zoom-in' data-aos-delay='100'>
<img src="<?php echo $admin_no ?>/assets/img/home_boxes/<?php echo $box_picture1 ?>">
<div class="block1-wrapbtn w-size2">
<!-- Button -->
<a href="<?php echo $box_link1 ?>" class="flex-c-m size2 m-text2 bg3 hov1 trans-0-4">
<?php echo $box_link_text1 ?>
</a>
</div>
</div>
<!-- block1 -->
<div class="block1 hov-img-zoom pos-relative m-b-30" data-aos='zoom-in' data-aos-delay='100'>
<img src="<?php echo $admin_no ?>/assets/img/home_boxes/<?php echo $box_picture2 ?>">
<div class="block1-wrapbtn w-size2">
<!-- Button -->
<a href="<?php echo $box_link2 ?>" class="flex-c-m size2 m-text2 bg3 hov1 trans-0-4">
<?php echo $box_link_text2 ?>
</a>
</div>
</div>
</div>
<div class="col-sm-10 col-md-8 col-lg-4 m-l-r-auto">
<!-- block1 -->
<div class="block1 hov-img-zoom pos-relative m-b-30" data-aos='zoom-in' data-aos-delay='100'>
<img src="<?php echo $admin_no ?>/assets/img/home_boxes/<?php echo $box_picture3 ?>">
<div class="block1-wrapbtn w-size2">
<!-- Button -->
<a href="<?php echo $box_link3 ?>" class="flex-c-m size2 m-text2 bg3 hov1 trans-0-4">
<?php echo $box_link_text3 ?>
</a>
</div>
</div>
<!-- block1 -->
<div class="block1 hov-img-zoom pos-relative m-b-30" data-aos='zoom-in' data-aos-delay='100'>
<img src="<?php echo $admin_no ?>/assets/img/home_boxes/<?php echo $box_picture4 ?>">
<div class="block1-wrapbtn w-size2">
<!-- Button -->
<a href="<?php echo $box_link4 ?>" class="flex-c-m size2 m-text2 bg3 hov1 trans-0-4">
<?php echo $box_link_text4 ?>
</a>
</div>
</div>
</div>
<div class="col-sm-10 col-md-8 col-lg-4 m-l-r-auto">
<!-- block1 -->
<div class="block1 hov-img-zoom pos-relative m-b-30" data-aos='zoom-in' data-aos-delay='100'>
<img src="<?php echo $admin_no ?>/assets/img/home_boxes/<?php echo $box_picture5 ?>">
<div class="block1-wrapbtn w-size2">
<!-- Button -->
<a href="<?php echo $box_link5 ?>" class="flex-c-m size2 m-text2 bg3 hov1 trans-0-4">
<?php echo $box_link_text5 ?>
</a>
</div>
</div>
<!-- block2 -->
<div class="block2 wrap-pic-w pos-relative m-b-30" data-aos='zoom-in' data-aos-delay='100'>
<img src="images/icons/bg-01.jpg" alt="IMG">
<div class="block2-content sizefull ab-t-l flex-col-c-m">
<h4 class="m-text4 t-center w-size3 p-b-8">
Sign up & get 20% off
</h4>
<p class="t-center w-size4">
Be the first to know about the latest fashion news and get exclusive offers
</p>
<div class="w-size2 p-t-25">
<!-- Button -->
<a href="sign_up.php" class="flex-c-m size2 bg4 bo-rad-23 hov1 m-text3 trans-0-4">
Sign Up
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- New Product -->
<section class="newproduct bgwhite p-t-45 p-b-105">
<div class="container">
<div class="sec-title p-b-60">
<h3 class="m-text5 t-center">
Featured Designs
</h3>
</div>
<!-- Slide2 -->
<div class="wrap-slick2">
<div class="slick2">
<?php $count=0;$yes='Yes';$eight=8;
$stmt_p = $con -> prepare("SELECT * FROM products WHERE home_products=? AND in_stock=? ORDER BY RAND() LIMIT ?");
$stmt_p -> bind_param('ssi',$yes,$yes,$eight);
$stmt_p -> execute();
$stmt_p -> store_result();
$stmt_p -> bind_result($product_id,$product_cat,$product_brand,$product_title,$product_price,$product_desc,$product_image,$product_keywords,$old_price,$new_tag,$home_products,$tags,$in_stock,$featured,$picture2,$picture3,$picture4,$picture5,$picture6);
$numrows_p = $stmt_p -> num_rows();
if($numrows_p > 0){
while ($stmt_p -> fetch()) {
//calculate the rating of each product
$stmt_reviews = $con -> prepare('SELECT rating FROM product_reviews WHERE product_id = ?');
$stmt_reviews -> bind_param('s',$product_id);
$stmt_reviews -> execute();
$stmt_reviews -> store_result();
$stmt_reviews -> bind_result($product_rating);
$numrows_reviews = $stmt_reviews -> num_rows();
if($numrows_reviews > 0){
$total_rating = array();
while ($stmt_reviews -> fetch()) {
array_push($total_rating,$product_rating);
}
$all_ratings = array_sum($total_rating);
$average_rating = $all_ratings / $numrows_reviews;
$rounded_up = round($average_rating);
$rating_display = " $rounded_up / 5";
}
else{$rating_display = "";$rounded_up = 0;}
$count++; ?>
<div class='item-slick2 p-l-15 p-r-15' data-aos='zoom-in' data-aos-delay='100'>
<?php include("product.php"); ?>
</div>
<?php
}
}
?>
</div>
</div>
</div>
</section>
<!-- Shipping -->
<section class="shipping bgwhite p-t-62 p-b-46">
<div class="flex-w p-l-15 p-r-15">
<div class="flex-col-c w-size5 p-l-15 p-r-15 p-t-16 p-b-15 respon1" data-aos='zoom-in' data-aos-delay='100'>
<h4 class="m-text12 t-center">
Fast Delivery Worldwide
</h4>
<a href="#" class="s-text11 t-center">
Shipping via postal service of choice
</a>
</div>
<div class="flex-col-c w-size5 p-l-15 p-r-15 p-t-16 p-b-15 bo2 respon2" data-aos='zoom-in' data-aos-delay='100'>
<h4 class="m-text12 t-center">
7 Day Return
</h4>
<span class="s-text11 t-center">
Simply return it within 7 days for an exchange.
</span>
</div>
<div class="flex-col-c w-size5 p-l-15 p-r-15 p-t-16 p-b-15 respon1" data-aos='zoom-in' data-aos-delay='100'>
<h4 class="m-text12 t-center">
Original goods
</h4>
<span class="s-text11 t-center">
Authentic wigs only
</span>
</div>
</div>
</section>
<?php include("footer.php"); ?>