<?php
include ("php/connect.php");
include ("php/footer.php");
include ("php/header.php");
if(isset($_GET['cat']) && $_GET['cat'] != ""){
if($_GET['cat'] == 'polo_solid'){
$showCategory = "Polos, Knits, Sweaters - Solid Colors";}
if($_GET['cat'] == 'polo_perform'){
$showCategory = "Polos, Knits, Sweaters - Performance";}
if($_GET['cat'] == 'polo_trim'){
$showCategory = "Polos, Knits, Sweaters - Contrast Trim";}
if($_GET['cat'] == 'polo_long'){
$showCategory = "Polos, Knits, Sweaters - Longsleeve";}
if($_GET['cat'] == 'polo_pockets'){
$showCategory = "Polos, Knits, Sweaters - Pockets";}
if($_GET['cat'] == 'polo_sweater'){
$showCategory = "Polos, Knits, Sweaters - Sweaters";}
if($_GET['cat'] == 'polo_knit'){
$showCategory = "Polos, Knits, Sweaters - Knits";}
if($_GET['cat'] == 'woven_long'){
$showCategory = "Woven & Button Down - Long Sleeve";}
if($_GET['cat'] == 'woven_short'){
$showCategory = "Woven & Button Down - Short Sleeve";}
if($_GET['cat'] == 'woven_3_4'){
$showCategory = "Woven & Button Down - 3/4 Sleeve";}
if($_GET['cat'] == 'woven_camp'){
$showCategory = "Woven & Button Down - Camp Shirt";}
if($_GET['cat'] == 'woven_outdoor'){
$showCategory = "Woven & Button Down - Outdoors";}
if($_GET['cat'] == 'big_polo'){
$showCategory = "Big & Tall - Polo Shirt";}
if($_GET['cat'] == 'big_woven'){
$showCategory = "Big & Tall - Woven Shirt";}
if($_GET['cat'] == 'big_outerwear'){
$showCategory = "Big & Tall - Outerwear";}
if($_GET['cat'] == 'big_fleece'){
$showCategory = "Big & Tall - Fleece";}
if($_GET['cat'] == 'T_basic'){
$showCategory = "T-Shirt & Fleece - Basic";}
if($_GET['cat'] == 'T_long'){
$showCategory = "T-Shirt & Fleece - Longsleeve";}
if($_GET['cat'] == 'T_pocket'){
$showCategory = "T-Shirt & Fleece - Pockets";}
if($_GET['cat'] == 'T_perform'){
$showCategory = "T-Shirt & Fleece - Performance";}
if($_GET['cat'] == 'T_fashion'){
$showCategory = "T-Shirt & Fleece - Fashion T's";}
if($_GET['cat'] == 'u_medical'){
$showCategory = "Uniform & Workwear - Medical";}
if($_GET['cat'] == 'u_industrial'){
$showCategory = "Uniform & Workwear - Industrial";}
if($_GET['cat'] == 'u_hospitality'){
$showCategory = "Uniform & Workwear - Hospitality";}
if($_GET['cat'] == 'u_safety'){
$showCategory = "Uniform & Workwear - Safety";}
if($_GET['cat'] == 'u_flame'){
$showCategory = "Uniform & Workwear - Flame Resistant";}
if($_GET['cat'] == 'outer_wind'){
$showCategory = "Outerwear - Wind shirts";}
if($_GET['cat'] == 'outer_jackets'){
$showCategory = "Outerwear - Jackets";}
if($_GET['cat'] == 'outer_polar'){
$showCategory = "Outerwear - Polar Fleece";}
if($_GET['cat'] == 'head_cap'){
$showCategory = "Headwear - Caps";}
if($_GET['cat'] == 'head_visor'){
$showCategory = "Headwear - Visors";}
if($_GET['cat'] == 'head_bags'){
$showCategory = "All Bags";}
if($_GET['cat'] == 'all_polos'){
$showCategory = "All Polos";}
if($_GET['cat'] == 'woven_button'){
$showCategory = "All Woven & Button Down";}
if($_GET['cat'] == 'big_tall'){
$showCategory = "All Big & Tall Shirts";}
if($_GET['cat'] == 'all_outerwear'){
$showCategory = "All Outerwear";}
if($_GET['cat'] == 'tshirt_fleece'){
$showCategory = "All T-shirts & Fleece";}
if($_GET['cat'] == 'T_sweats'){
$showCategory = "Sweats & Hoodies";}
if($_GET['type'] == 'Men'){
$showType = "Mens - ";}
if($_GET['type'] == 'Woman'){
$showType = "Womens - ";}
if($_GET['type'] == 'Youth'){
$showType = "Youth - ";}
if($_GET['type'] == 'Junior'){
$showType = "Juniors - ";}
if (isset($_GET['pageno'])) {
$pageno = $_GET['pageno'];
$pageno_start_number = ($pageno * 15) - 14;
$pageno_end_number = ($pageno * 15);
} else {
$pageno = 1;
$pageno_start_number = 1;
$pageno_end_number = ($pageno * 15);
}
if($pageno == 0){
$pageno_start_number = 1;
$pageno_end_number = 15;
}
$no_of_records_per_page = 15;
$offset = ($pageno-1) * $no_of_records_per_page;
$ProductOutput = "";
$category = $_GET['cat'];
$type = $_GET['type'];
$brand = $_GET['brand'];
$query_total_products = "SELECT * FROM products WHERE $category='Y'AND $type='Y' AND manufacture='$brand' AND EV = 'Y' AND price > 0 ORDER BY sort_order_EV ASC";
$total_products = mysqli_query($LogoMasters, $query_total_products);
$totalRows_total_products = mysqli_num_rows($total_products);
$total_pages = ceil($totalRows_total_products / $no_of_records_per_page);
$pargeno_active = 'class="active"';
if($totalRows_total_products < $pageno_end_number){
$pageno_end_number = $totalRows_total_products;
}
$query = "SELECT * FROM products WHERE $category='Y'AND $type='Y' AND manufacture='$brand' AND EV = 'Y' AND price > 0 ORDER BY sort_order_EV ASC LIMIT $offset, $no_of_records_per_page";
$result = mysqli_query($LogoMasters, $query);
$totalRows_result = mysqli_num_rows($result);
if($totalRows_result > 0){
while($row = mysqli_fetch_array($result)){
$product_id = $row['id'];
$product_name = $row['name'];
$product_num = $row['unitNumber'];
$product_mainimage = $row['image'];
$product_manufacture = $row['manufacture'];
$product_price = $row['price'];
$Emboridery = $row['Embroidery'];
$ScreenPrint = $row['Print'];
$Blank = $row['Blank'];
$ShowPrice = $row['showPrice_main'];
if($ScreenPrint == 1){
$price = $row['price'] - 0.50;
}
elseif($Emboridery == 1){
$price = $row['price'] - 1.50;
}
else {
$price = $row['price'];
}
if($ShowPrice != 1){
$priceMessage = '<strong>Call for Pricing</strong>';
}
else {
$priceMessage = '<strong>Price as low as: $'.number_format($price, 2).'</strong>';
}
$query_color = "SELECT * FROM images WHERE productid = '$product_id' AND Stock < 1";
$color = mysqli_query($LogoMasters, $query_color);
$row_color = mysqli_fetch_assoc($color);
$totalRows_color = mysqli_num_rows($color);
$ColorID = $row_color['id'];
$ProductOutput .= '<li class="product-item">
<div class="product-thumb clearfix">
<a href="product-details-colors.php?id='.$product_id.'&&color='.$ColorID.'">
<img src="https://logomastersintl.com/largeimages/'.$product_mainimage.'" alt="'.$product_manufacture.' '.$product_name.'">
</a>
</div>
<div class="product-info clearfix">
<span class="product-title">'.$product_manufacture.' '.$product_name.' - #'.$product_num.'</span>
<div class="price">
<ins>
<span class="amount">$'.number_format($price, 2).'</span>
</ins>
</div>
</div>
<div class="add-to-cart text-center">
<a href="product-details-colors.php?id='.$product_id.'&&color='.$ColorID.'">View Details</a>
</div>
</li>';
}
}
else {
$ProductOutput .= '<p>No products currently available. Please check back soon.</p>';
}
}
$brand_query = "SELECT * FROM products WHERE $category='Y' AND $type='Y' AND EV = 'Y' AND price > 0
GROUP BY manufacture
ORDER BY manufacture ASC";
$result_brand = mysqli_query($LogoMasters, $brand_query);
$totalRows_result_brand = mysqli_num_rows($result_brand);
if($totalRows_result_brand > 0){
while($row_result_brand = mysqli_fetch_array($result_brand)){
$Brand_Name = $row_result_brand['manufacture'];
$Brand_Output .= '<li><a href="shop-by-brand.php?cat='.$category.'&&type='.$type.'&&brand='.$Brand_Name.'">'.$Brand_Name.'</a></li>';
}}
?>
<!DOCTYPE html>
<head>
<!-- Basic Page Needs -->
<meta charset="utf-8">
<!--[if IE]><meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'><![endif]-->
<title>Shop <?php echo $brand; ?> - Logo Masters International</title>
<meta name="description" content="Shop <?php echo $brand; ?> products for <?php echo $showType; ?> <?php echo $showCategory; ?>. We offer custom embroidery and screen printing out of Pensacola, FL.">
<!-- Mobile Specific Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Bootstrap -->
<link rel="stylesheet" type="text/css" href="stylesheets/bootstrap.css" >
<!-- Theme Style -->
<link rel="stylesheet" type="text/css" href="stylesheets/style.css">
<link rel="stylesheet" type="text/css" href="stylesheets/responsive.css">
<!-- Colors -->
<link rel="stylesheet" type="text/css" href="stylesheets/colors/color1.css" id="colors">
<!-- Animation Style -->
<link rel="stylesheet" type="text/css" href="stylesheets/animate.css">
<!-- Favicon and touch icons -->
<link href="icon/favicon.png" rel="shortcut icon">
<!--[if lt IE 9]>
<script src="javascript/html5shiv.js"></script>
<script src="javascript/respond.min.js"></script>
<![endif]-->
</head>
<body class="header_sticky header-style-1 has-menu-extra">
<!-- Preloader -->
<div id="loading-overlay">
<div class="loader"></div>
</div>
<!-- Boxed -->
<div class="boxed">
<?php echo $Header; ?>
<!-- Page title -->
<div class="page-title parallax parallax1">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="page-title-heading">
<h1 class="title"><?php echo $brand; ?>: <?php echo $showType; ?> <?php echo $showCategory; ?></h1>
</div><!-- /.page-title-heading -->
</div><!-- /.col-md-12 -->
</div><!-- /.row -->
</div><!-- /.container -->
</div><!-- /.page-title -->
<section class="flat-row main-shop shop-slidebar">
<div class="container">
<div class="row">
<div class="col-md-3">
<div class="sidebar slidebar-shop">
<div class="widget widget-search">
<form method="get" class="search-form" action="search.php">
<label>
<input type="text" class="search-field" placeholder="Search …" value="" name="search">
</label>
<input type="submit" class="search-submit" value="Search">
</form>
</div><!-- /.widget-search -->
<div class="widget widget-sort-by">
<h5 class="widget-title">
Shop by Brand
</h5>
<ul>
<?php echo $Brand_Output; ?>
</ul>
</div><!-- /.widget-sort-by -->
</div><!-- /.sidebar -->
</div><!-- /.col-md-3 -->
<div class="col-md-9">
<div class="filter-shop clearfix">
<p class="showing-product float-right">
Showing <?php echo $pageno_start_number; ?>–<?php echo $pageno_end_number; ?> of <?php echo $totalRows_total_products; ?> Products
</p>
</div><!-- /.filte-shop -->
<div class="product-content product-threecolumn product-slidebar clearfix">
<ul class="product style2 sd1">
<?php echo $ProductOutput; ?>
</ul><!-- /.product -->
</div><!-- /.product-content -->
<div class="product-pagination text-center margin-top-11 clearfix">
<ul class="flat-pagination">
<li class="prev">
<a href="<?php if($pageno <= 1){ echo '#'; } else { echo "?cat=$category&&type=$type&&brand=$brand&&pageno=".($pageno - 1); } ?>"><i class="fa fa-angle-left"></i></a>
</li>
<li> <?php echo $pageno; ?> of <?php echo $total_pages; ?> Pages </li>
<li><a href="<?php if($pageno >= $total_pages){ echo '#'; } else { echo "?cat=$category&&type=$type&&brand=$brand&&pageno=".($pageno + 1); } ?>"><i class="fa fa-angle-right"></i></a></li>
</ul><!-- /.flat-pagination -->
</div>
</div><!-- /.col-md-9 -->
</div><!-- /.row -->
</div><!-- /.container -->
</section><!-- /.flat-row -->
<!-- Newsletter -->
<?php echo $Newsletter_SignUp; ?>
<!-- Footer -->
<?php echo $Footer; ?>
<!-- Go Top -->
<a class="go-top">
<i class="fa fa-chevron-up"></i>
</a>
</div>
<!-- Javascript -->
<script src="javascript/jquery.min.js"></script>
<script src="javascript/tether.min.js"></script>
<script src="javascript/bootstrap.min.js"></script>
<script src="javascript/jquery.easing.js"></script>
<script src="javascript/parallax.js"></script>
<script src="javascript/jquery-waypoints.js"></script>
<script src="javascript/jquery-countTo.js"></script>
<script src="javascript/jquery.countdown.js"></script>
<script src="javascript/jquery.flexslider-min.js"></script>
<script src="javascript/images-loaded.js"></script>
<script src="javascript/jquery.isotope.min.js"></script>
<script src="javascript/magnific.popup.min.js"></script>
<script src="javascript/jquery.hoverdir.js"></script>
<script src="javascript/owl.carousel.min.js"></script>
<script src="javascript/equalize.min.js"></script>
<script src="javascript/gmap3.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAIEU6OT3xqCksCetQeNLIPps6-AYrhq-s®ion=GB"></script>
<script src="javascript/jquery-ui.js"></script>
<script src="javascript/jquery.cookie.js"></script>
<script src="javascript/main.js"></script>
<!-- Revolution Slider -->
<script src="rev-slider/js/jquery.themepunch.tools.min.js"></script>
<script src="rev-slider/js/jquery.themepunch.revolution.min.js"></script>
<script src="javascript/rev-slider.js"></script>
<!-- Load Extensions only on Local File Systems ! The following part can be removed on Server for On Demand Loading -->
<script src="rev-slider/js/extensions/revolution.extension.actions.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.carousel.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.kenburn.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.layeranimation.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.migration.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.navigation.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.parallax.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.slideanims.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.video.min.js"></script>
</body>
</html> |