<?php
    require_once "lib.php";
    // $lib = new lib("http://localhost:8080/gits/fertimicro/webservice/index.php");
	// $lib = new lib("http://pitaya-organicos.com/fertimicro2/webservice/index.php");
	$lib = new lib("http://fertimicro.com/webservice/index.php");
	$uri_ajust = "";
?>
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> 
<html class="no-js" lang="es-MX"> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<!--[if IE]>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
	<![endif]-->

	<title>FERTIMICRO</title>
	<?php require_once "includes/head.php"; ?>
</head>

<body class="page page-template-default header-transparent home8">
	<div id="main-wrapper">
	    <div id="main" class="ajaxable layout-wide">
	        <header id="header">
				<?php require_once "includes/header.php";?>
			</header>
			<!-- END HEADER -->


			<div class="header-hero-section" id="hero-section">
			    <div class="header-hero-custom-section">
			        <div class="hero-section-wrap be-section  full-no be-bg-cover   be-bg-overlay  clearfix" style="background: url(<?php echo $uri_ajust;?>pics/fondo.png) no-repeat fixed bottom center; height: 500px !important;">
			            <div class="section-overlay" style="background: #000000; -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=20);filter: alpha(opacity=20);-moz-opacity: 0.2;-khtml-opacity: 0.2;opacity: 0.2;"></div>
			            <div class="be-row be-wrap">
			                <div class="hero-section-inner-wrap">
			                    <div class="hero-section-inner">
			                        <div class="special-heading-wrap style2 " data-animation="fadeIn" style="border-color: #000;">
			                            <div class="special-heading align-center" style="background-color: rgb(0,0,0);background-color: rgba(0,0,0,0.5);">
			                                <H2 class="special-h-tag" style="color: #fff">TITULO</H2>
			                            </div>
			                        </div>
			                    </div>
			                </div>
			            </div>
			        </div>
			    </div>
			</div>

			<section id="content" class="no-sidebar-page">
			    <div id="content-wrap" class="page-builder">
			        <section id="page-content">
			            <div class="clearfix">
			                <div class="be-section clearfix" data-headerscheme="background--dark" style="">
			                    <div class="be-section-pad clearfix" style="padding-top:100px;padding-bottom:100px;">
			                        <div class="be-row be-wrap clearfix">
										<?php
											$data = "pet=productos&act=cat&data=all&data2=".urlencode(strtoupper($_GET["subcat"]));
											$productos= $lib->webservice_get($data);
											$cont = 1;
											foreach ($productos as $producto) {
										?>
											<div class="one-third column-block   " style=""><i class="icon-leaf title-icon plain small 0 align-left" style="color:#26cda4;border-color: " data-animation="fadeIn"></i>
												<div class="title-with-icon 0 small plain align-left" data-animation="fadeIn">
													<h6><span style="color: #000000;"><?php echo $producto->producto;?></span></h6>
													<p><span style="color: #707070;"><?php echo substr($producto->descripcion,0,100)."..."; ?></span></p>
												</div>
											</div>
										<?php 
											if($cont == 3){
												$cont = 1;   
												echo '</div>';
												echo '<div class="be-row be-wrap clearfix">';
											}else{
												$cont++;
											}
										}
										?>
			                        </div>
			                        
			                    </div>
			                </div>

			            </div>
			            <!--  End Page Content -->
			        </section>
			    </div>
			</section>

			

				<footer id="footer">
					<?php require_once "includes/footer.php";?>
				</footer>
				<div class="gallery-slider-wrap">
					<div class="gallery-slider-content">
					</div>
					<div class="gallery-slider-controls">
						<div class="bubblingG loader">
							<span id="bubblingG_1"></span>
							<span id="bubblingG_2"></span>
							<span id="bubblingG_3"></span>
						</div>
					</div>
				</div>
			</div>
			
			<a href="#" id="back-to-top"><i class="font-icon icon-up-open-big"></i></a>
	</div>

			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/jquery.themepunch.tools.min.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/jquery.themepunch.revolution.min.js'></script>


			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/comment-reply.min.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/jquery.form.min.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/scripts.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/frontend/add-to-cart.min.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/jquery-blockui/jquery.blockUI.min.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/frontend/woocommerce.min.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/jquery-cookie/jquery.cookie.min.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/frontend/cart-fragments.min.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/plugins.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/woocommerce.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/be-slider.js'></script>
			<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/gmap3.min.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/jquery-ui-1.8.22.custom.min.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/script.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/chosen/chosen.jquery.min.js'></script>
			<script type='text/javascript' src='<?php echo $uri_ajust;?>js/frontend/chosen-frontend.min.js'></script>

</body>
</html>