<? 	
session_start(); 
$productActive = '';
$newsActive = '';
$resourcesActive = '';
if($pageId == 'resources'){
	$resourcesActive = 'active';
} else if($pageId == 'news'){
	$newsActive = 'active';
} else if($pageId == 'other' || $pageId == 'home'){
	//do nothing
} else if($pageId == 'products'){
	$productActive = 'active';
} else {
	$productActive = 'active';
}
$xpage = $_SERVER['REQUEST_URI'];
$ucode = $_SESSION['user'];
function get_cate_slug($conn, $cat_id){
	$slug = '';
	$sql = "select slug from xlist where id=$cat_id";
	$result = $conn->query($sql);	
	while($row = mysqli_fetch_array($result)) {
		$slug = 'ladetails/landscape-suppliers/' . $row['slug'];
	}
	return $slug;
}
?>
<!-- PRELOADER -->
<!-- <div id="loader"></div> -->
<div class="body">
<!-- HEADER -->

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<nav class="navbar navbar-default">
	<div class="container header_container">
		<div class="row mob-nopad row_header_adjust">
			<div class="col-md-12 col-sm-12 col-xs-12 mob-nopad">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar bar1"></span>
						<span class="icon-bar bar2"></span>
						<span class="icon-bar bar3"></span>
					</button>
					<!-- Logo -->
					<a class="navbar-brand" href="/"><img data-src="/images/basic/logo.jpg" class="img-responsive lazyload" alt="" /></a>
					<!-- Search -->
					<button type="button" id="mob-search-btn" class="mob-search">
						<span class="sr-only">Search</span>
						<i class="fa fa-search" aria-hidden="true"></i>
					</button>
				</div>
				<!-- Cart & Search -->
				<div class="header-xtra pull-right">
					<form onSubmit="return submitForm_headerSearch(event, '<?php echo BASE_URL; ?>search-results-site.php?searchParma=')">
						<input class="search__input" type="text" placeholder="What are you looking for?" name="submitForm_headerSearch_key" id="submitForm_headerSearch_key">
					</form>
				</div>
				<!-- Navmenu -->
				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav navbar-left">						
						<li class="dropdown mmenu"><a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Product</a>
							<div class="mega-menu dropdown-menu" role="menu">
								<div class="mega-menu-header">
									<div class="row" style="margin: 0; padding: 15px;">
										<!-- Left column with logo and tagline -->
										<div class="col-xs-8">
											<div class="d-flex align-items-center"><img class="menuLogo-LA hidden-xs lazyload" src="/lol-logos/la-details-1.jpg" style="max-width: 250px; margin-right: 15px;" />
												<p style="font-size: 16px; font-weight: bold; margin: 0; word-wrap: break-word;">Products, Vendors, CAD Files, Spec Sheets and More...</p>
											</div>
										</div>
										<!-- Right column with CTA -->
										<div class="col-xs-4 text-right">
											<a href="#" class="btn btn-success menu-cta hidden-xs cta-product-details" style="margin-top: 5px; white-space: normal; line-height: 1.2; font-size: 18px;">Click Here to request product information from vendors</a>
										</div>
									</div>
								</div>
								<ul class="mega-menu-content">                      
									<li class="padding25">
										<div>
											<p style="font-size:14px; color:#2e2e2e; font-weight: 800; text-transform: capitalize;">Categories</p>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 28); ?>">Business Services &amp; Software</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 30); ?>">Erosion Control</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 1300); ?>">Fencing</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 1139); ?>">Irrigation</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 32); ?>">Lighting / Electrical</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 1214); ?>">Outdoor Living</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 33); ?>">Park &amp; Recreation</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 38); ?>">Paver, Masonry, Blocks, Rocks</a>
										</div>
									</li>
									<li class="padding25">
										<div>
											<a href="#" style="font-size: 18px">&nbsp;</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 1212); ?>">Pest / Wildlife Control</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 1002); ?>">Plant Accessories &amp; Amendments</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 1394); ?>">Pool &amp; Spa</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 1301); ?>">Sculpture / Art / Garden Ornaments</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 29); ?>">Site Amenities</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 1215); ?>">Site Furnishings &amp; Receptables</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 41); ?>">Water Features</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 1213); ?>">Water Management</a>
										</div>
									</li>
									<li class="padding25">
										<div>
											<p class="" style="font-size:14px; color:#2e2e2e; font-weight: 800; text-transform: capitalize;">Plants, Trees &amp; Turf</p>
											<a href="/LandscapeProducts/local_wholesale.php?ad=1027&zip=National&d=250&stype=plants">Ground Cover</a>
											<a href="/LandscapeProducts/local_wholesale.php?ad=279&zip=National&d=250&stype=plants">Tree Relocation Services</a>
											<a href="/LandscapeProducts/local_wholesale.php?ad=271&zip=National&d=250&stype=plants">Trees - Palms</a>
											<a href="/LandscapeProducts/local_wholesale.php?ad=998&zip=National&d=250&stype=plants">Trees - Wholesale</a>
											<a href="/LandscapeProducts/local_wholesale.php?ad=1143&zip=National&d=250&stype=plants">Turf Grass / Sod / Seed</a>
											<br class="hidden-xs" />
											<p class="" style="font-size:14px; color:#2e2e2e; font-weight: 800; text-transform: capitalize;"> Contractors &amp; Vendors</p>
											<a href="/LandscapeProducts/local_wholesale.php?ad=1418&zip=National&d=250&stype=ws">Fencing Contractors</a>
											<a href="/LandscapeProducts/local_wholesale.php?ad=1365&zip=National&d=250&stype=ws">Small Engine Repair</a>
										</div>
									</li>
									<li class="padding25">
										<div>
											<p class="" style="font-size:14px; color:#2e2e2e; font-weight: 800; text-transform: capitalize;">Commercial Supply</p>
											<a href="/LandscapeProducts/local_wholesale.php?ad=572&zip=National&d=250&stype=ws">Chemicals, Soil Nutrients &amp; Mulch</a>
											<a href="/LandscapeProducts/local_wholesale.php?ad=560&zip=National&d=250&stype=ws">Landscape / Irrigation Supply</a>
											<a href="/LandscapeProducts/local_wholesale.php?ad=1248&zip=National&d=250&stype=ws">Pavers, Masonry, Blocks &amp; Rocks</a>
											<a href="/LandscapeProducts/local_wholesale.php?ad=590&zip=National&d=250&stype=ws">Power Equipment</a>
											<br class="hidden-xs" />
											<p class="" style="font-size:14px; color:#2e2e2e; font-weight: 800; text-transform: capitalize;">Tools &amp; Equipment</p>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 1209); ?>">Installation Equipment</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 1210); ?>">Maintenance Equipment</a>
											<a href="<?php echo BASE_URL.get_cate_slug($conn, 1211); ?>">Tools &amp; Parts</a>
										</div>
									</li>
								</ul>
								<div class="mega-menu-footer" style="background:#1b8047; text-align:center; width:100%; padding:5px; position:absolute; bottom:0px; left: 0px;">
									<h5 style="color:white; text-transform:initial; font-size:18px; font-family: 'Nunito Sans', sans-serif;">Know what you're looking for? <a href="#" style="color:white;" class="lazyload hidden-sm hidden-xs" id="requestProductDetailsBtn"><strong>Request Product Details</strong></a></h5>
								</div>
							</div>
						</li>
						<li class="dropdown mmenu" style="position: relative;"><a href="/research/news_landing.php" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">News</a>
							<ul class="dropdown-menu non-mega-menu" role="menu">
								<li><a href="/research/news_landing.php">Trending</a></li>
								<li><a href="/research/news_landing.php?news=association">Association</a></li>
								<li><a href="/research/news_landing.php?news=legislation">Legislation</a></li>
								<li><a href="/research/news_landing.php?news=education">Education</a></li>

								<li><a href="/research/news_landing.php?news=industry">Industry</a></li>
								<li><a href="/research/news_landing.php?news=projects">Projects</a></li>
								<li><a href="#">Opinion</a></li>
							</ul>
						</li>
						<li class="dropdown mmenu" style="position: relative;"><a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Resources</a>
							<ul class="dropdown-menu non-mega-menu" role="menu">
								<li><span style="font-size: 10px; font-weight: bold">Digital Magazines</span></li>
								<li><a href="/LandscapeProducts/magazine.php">Landscape Architect</a></li>
								<li><a href="/LandscapeProducts/magazine-lcdbm.php">Landscape Contractor</a></li>
								<li><hr></li>
								<li><a href="https://landscapewebinars.org/landscape-webinars/on-demand.php">Landscape Webinars</a></li>
								<li><hr></li>
								<li><a href="/contact-us/">Contact Us</a></li>
								<li><a href="/research/editorial/editorial-submissions.php">Submit Editorial</a></li>
								<li><a href="/contact-us/media-kit-request.php">Advertising</a></li>
							</ul>
						</li>
						<li class="dropdown mmenu" style="position: relative;"><a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Events</a>
							<ul class="dropdown-menu non-mega-menu" role="menu">
								<li><a href="https://landscapewebinars.org/landscape-webinars/upcoming-webinars.php"
								target="_blank">Up Coming Webinars</a></li>
								<li><a href="https://landscapewebinars.org/landscape-webinars/on-demand.php" target="_blank">On
								Demand Webinars</a></li>
								<li>
								<hr>
								</li>
								<li><a href="https://thelandscapeexpo.com" target="_blank">The Landscape Expo</a></li>
								<li><a href="https://www.aslaconference.com" target="_blank">ASLA Annual Conference</a></li>
								<li><a href="https://conference.nrpa.org" target="_blank">NRPA Annual Meeting</a></li>
								<li><a href="https://www.hardscapena.com/home-attendees" target="_blank">HNA Expo</a></li>
							</ul>
						</li>
						<li class="dropdown mmenu" style="position: relative;"><a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"	aria-expanded="false">Login</a>
							<ul class="dropdown-menu non-mega-menu" role="menu">
							<li><a class="logInModalPopUpBtn">User Login</a></li>
							<li><a id="menuSubscribeBtn">New Subscription Request</a></li>
							<li>
							<hr>
							</li>
							<li><a href="/vendoredit/login">Vendor Login</a></li>
							<li><a href="/contact-us">Create New Vendor Account</a></li>
							<li>
							<hr>
							</li>
							<li><a href="/logout.php">Log Out</a></li>

							</ul>
						</li>
						<? if($_SESSION['loggedIn'] == true){  ?>
						<style>
							@media only screen and (min-width: 1441px) {
								.search__input {
									width: 190px !important;
								}
							}
						</style>
						<li class="dropdown mmenu" style="position: relative; width: 33px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false" style="padding-left: 0px; padding-right: 0px; padding-top: 0px;"><img data-src="/images/la-user-icon.jpg" style="width: 33px; padding-bottom: 1px; position: relative; top: 9px;" class="lazyload"></a>
							<ul class="dropdown-menu non-mega-menu" role="menu" style="width: max-content;">
								<li><p style="font-size: 16px;">Welcome	<? echo $_SESSION['name']; ?></p></li>
								<li><hr></li>
								<li><a href="/subscriptions/subscribe-renew.php?action=edit&id=<? echo $_SESSION['user'] ?>">Edit Profile</a></li>
								<li><a href="../logout.php">Log Out</a></li>
							</ul>
						</li>
						<? } ?>
					</ul>
					<div class="mobile-signup hidden-sm hidden-md hidden-lg">
						<p style="text-transform:initial;">Sign up for LAWeekly newsletter</p>
						<form class="newsletter">
							<input type="text" style="background:white;" placeholder="Enter your email address">
							<button type="submit" class="btn btn-lg">SIGN UP</button>
						</form>
					</div>
				</div>
				<!-- Mobile Search Box -->
				<div id="mob-search-block" class="sclose">
					<form onSubmit="return submitForm_headerSearch_mobile(event, '<?php echo BASE_URL; ?>search-results-site.php?searchParma=')" class="headerSearchBar" style="width: 90%; padding: 0 4px; display: flex; align-items: center; justify-content: center; margin: 20px auto 10px;">
						<input class="search__input" id="submitForm_headerSearch_mobile_key" name="submitForm_headerSearch_mobile_key" type="text" style="padding: 7px 25px 7px 25px; color: #434343; background-position: 0% center;" placeholder="What are you looking for?" value="<?php echo $_GET['searchParma'] ?>">
						<p id="mob-search-btn-c" style="margin-bottom: 0px;"><i style="font-size:15px;" class="fa fa-close"></i></p>
					</form>
				</div>
			</div>
		</div>
	</div>
</nav>

<!-- EBD HEADER -->