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/marisgoldunisexboutique.com/public_html/ |
<?php session_start();
$page_name = basename($_SERVER['PHP_SELF']);
include("header.php"); ?>
<title><?php echo $company_name; ?> - Men</title>
<div class="col-md-12 col-xs-12" id="product_msg"></div>
<main>
<section class="slider-area">
<div class="slider-active">
<?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()) {
if($home_id == 1 OR $home_id == 2){
?>
<div class="single-slider slider-height d-flex align-items-center"style="background-image:url(<?php echo $admin_no1; ?>/assets/img/home_background/<?php echo $home_picture; ?>)">
<div class="container">
<div class="rowr">
<div class="col-xxl-5 col-xl-6 col-lg-7 col-md-8 col-sm-10">
<div class="hero-caption text-center trans_back">
<span><?php echo $home_heading2; ?></span>
<h1 data-animation="bounceIn" data-delay="0.2s"><?php echo $home_heading; ?></h1>
<p data-animation="fadeInUp" data-delay="0.4s"><?php echo $home_paragraph; ?></p>
<a href="shop.php" class="btn_1 hero-btn" data-animation="fadeInUp" data-delay="0.7s">Shop Now</a>
</div>
</div>
</div>
</div>
</div>
<?php } }} ?>
</div>
</section>
<section class="items-product1 pt-30">
<div class="hero-caption hero-caption2 align-items-center">
<img src='assets/img/logo/logo.png'style='width:50px;height:19px;display:flex; margin:auto;'>
<h2 style='text-align:center;' data-aos="fade-up" data-aos-delay="100">Top <span style='color:#ff6600;'>Mens</span> Categories</h2>
</div><br/>
<div class="container">
<div class="row">
<?php
$one=1;
$stmt_box = $con -> prepare('SELECT * FROM boxes');
$stmt_box -> execute();
$stmt_box -> store_result();
$stmt_box -> bind_result($box_id,$box_heading,$box_link,$box_link_text,$box_picture);
$numrows_box = $stmt_box -> num_rows();
if($numrows_box > 0){
while ($stmt_box -> fetch()) {
if($box_id == 3 OR $box_id == 4 OR $box_id == 5){
?>
<div class="col-xl-4 col-lg-4 col-md-6 col-sm-6" data-aos="zoom-in" data-aos-delay="100">
<div class="single-items mb-20">
<div class="items-img">
<img src="admin<?php echo $admin_no; ?>/assets/img/home_boxes/<?php echo $box_picture; ?>" style="border-radius:5px;">
</div>
<div class="items-details">
<h4><a href="<?php echo $box_link; ?>"><?php echo $box_heading; ?></a></h4>
<a href="<?php echo $box_link; ?>" class="browse-btn"><?php echo $box_link_text; ?></a>
</div>
</div>
</div>
<?php }}} ?>
</div>
</div>
</section>
<section class="latest-items section-padding fix">
<div class="row">
<div class="col-xl-12">
<div class="section-tittle text-center mb-40">
<img src='assets/img/logo/logo.png'style='width:50px;height:19px;display:flex; margin:auto;'>
<h2 data-aos="fade-up" data-aos-delay="100">Top <span style='color:#ff6600;'>Selling</span> Items</h2>
</div>
</div>
</div>
<div class="container">
<div class="latest-items-active">
<?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()) {
//product cat is from which category
$stmt_ca = $con -> prepare("SELECT main_category FROM categories WHERE cat_id = ?");
$stmt_ca -> bind_param('s',$product_cat);
$stmt_ca -> execute();
$stmt_ca -> store_result();
$stmt_ca -> bind_result($main_category);
$numrows_ca = $stmt_ca -> num_rows();
if($numrows_ca > 0){
while ($stmt_ca -> fetch()) {}
}
$count++;
if($main_category == "Men"){
echo"
<div class='properties pb-30' data-aos='zoom-in' data-aos-delay='100'>
<div class='properties-card'>
<div class='properties-img'>
<a href='product_details.php?product=$product_id'>
<img src='$admin_no1/assets/img/products/$product_image' alt='$product_title' style='border-radius:5px;'>
</a>
<div class='socal_icon'>
<a pid='$product_id' id='product' title='Add to Cart'><i class='ti-shopping-cart'></i></a>
<a href='product_details.php?product=$product_id'title='View Details'><i class='ti-zoom-in'></i></a>
</div>
</div>
<div class='properties-caption properties-caption2'>
<h3>
<a href='product_details.php?product=$product_id'>$product_title</a>
</h3>
<div class='properties-footer'>
<div class='price'>
<span>₦"; echo number_format("$product_price"); echo" <span></span></span>
</div>
</div>
</div>
</div>
</div>
";
}
}
}
?>
</div>
</div>
</section>
<section class="">
<div class="container">
<div class="latest-items latest-items2">
<div class="row">
<?php $count=0;$yes='Yes';$four=4;
$stmt_p = $con -> prepare("SELECT * FROM products WHERE in_stock=? ORDER BY RAND() LIMIT ?");
$stmt_p -> bind_param('si',$yes,$four);
$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()) {
//product cat is from which category
$stmt_ca = $con -> prepare("SELECT main_category FROM categories WHERE cat_id = ?");
$stmt_ca -> bind_param('s',$product_cat);
$stmt_ca -> execute();
$stmt_ca -> store_result();
$stmt_ca -> bind_result($main_category);
$numrows_ca = $stmt_ca -> num_rows();
if($numrows_ca > 0){
while ($stmt_ca -> fetch()) {}
}
$count++;
if($main_category == "Men"){
echo"
<div class='col-xl-3 col-lg-3 col-md-3 col-sm-3' data-aos='zoom-in' data-aos-delay='100'>
<div class='properties pb-30' data-aos='zoom-in' data-aos-delay='100'>
<div class='properties-card'>
<div class='properties-img'>
<a href='product_details.php?product=$product_id'>
<img src='$admin_no1/assets/img/products/$product_image' alt='$product_title' alt=''>
</a>
<div class='socal_icon'>
<a pid='$product_id' id='product' title='Add to Cart'><i class='ti-shopping-cart'></i></a>
<a href='product_details.php?product=$product_id'title='View Details'><i class='ti-zoom-in'></i></a>
</div>
</div>
<div class='properties-caption properties-caption2'>
<h3>
<a href='product_details.php?product=$product_id'>$product_title</a>
</h3>
<div class='properties-footer'>
<div class='price'>
<span>₦"; echo number_format("$product_price"); echo" <span></span></span>
</div>
</div>
</div>
</div>
</div>
</div>
";
}
}
}
?>
</div>
</div>
</div>
</section>
<div class="categories-area">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="single-cat mb-50 wow fadeInUp text-center" data-wow-duration="1s" data-wow-delay=".2s">
<div class="cat-icon">
<img src="assets/img/icon/services1.svg" alt="">
</div>
<div class="cat-cap">
<h5>Fast Delivery</h5>
<p>Super Fast Delivery on all Orders</p>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="single-cat mb-50 wow fadeInUp text-center" data-wow-duration="1s" data-wow-delay=".2s">
<div class="cat-icon">
<img src="assets/img/icon/services2.svg" alt="">
</div>
<div class="cat-cap">
<h5>Secure Payment</h5>
<p>Pay with peace of mind</p>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="single-cat mb-50 wow fadeInUp text-center" data-wow-duration="1s" data-wow-delay=".4s">
<div class="cat-icon">
<img src="assets/img/icon/services3.svg" alt="">
</div>
<div class="cat-cap">
<h5>Exchanges</h5>
<p>Exchanges? We got your back</p>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="single-cat mb-50 wow fadeInUp text-center" data-wow-duration="1s" data-wow-delay=".5s">
<div class="cat-icon">
<img src="assets/img/icon/services4.svg" alt="">
</div>
<div class="cat-cap">
<h5>Online Support</h5>
<p>We are available 24/7</p>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<?php include("footer.php"); ?>