<?php 
require_once("header.php");
require_once("cookie_check.php");

if(isset($_GET["pincode"]))
{
    mysqli_query($connection,"UPDATE `sc_users` SET `zip` = '".$_GET["pincode"]."' WHERE `user_id` = '".$_COOKIE["USER_ID"]."'");
}
?>

<?php
$fetch_service = mysqli_fetch_array(mysqli_query($connection,"SELECT * FROM `sc_subcategory` WHERE `category_id` = '".$_REQUEST['category_id']."' AND `subcategory_id` = '".$_REQUEST['subcategory_id']."'"));
?>

			<!-- page template area start -->
			<section id="about">
				<div class="container mt-0 pb-0 pt-10">
				    <div class="row">
				        <form action="get-quotation.php" method="GET">
						<input type="hidden" name="category_id" id="category_id" value="<?php echo $_GET['category_id'];?>">
						<input type="hidden" name="subcategory_id" id="subcategory_id" value="<?php echo $_GET['subcategory_id'];?>">
						<div class="col-lg-12">
						    <h3 class="title mt-0 mb-5" style="text-align:left; color:#1565c0;"><?php echo stripslashes($fetch_service['subcategory_name']);?></h3>
						    <?php echo stripslashes($fetch_service['subcategory_details']);?></p>
						    <?php if($_GET['category_id'] <> 1 && $_GET['category_id'] <> 8) { ?>
						    <div class="mt-5"><h4 class="title mt-0 mb-0" style="text-align:left;">Time Duration : <?php echo stripslashes($fetch_service['timing']);?></h4></div>
						    <?php } ?>
						    <?php if($fetch_service['quantity_available']=="Yes") { ?>
						    <div class="mt-10">
						    <p><input type="radio" name="qty" id="qty" value="1-2"> 1-2 Camera</p>
						    <p><input type="radio" name="qty" id="qty" value="3-4"> 3-4 Camera</p>
						    <p><input type="radio" name="qty" id="qty" value="5-8"> 5-8 Camera</p>
						    <p><input type="radio" name="qty" id="qty" value="9-12"> 9-12 Camera</p>
						    <p><input type="radio" name="qty" id="qty" value="12 more"> More Than 12 Camera</p>
						    </div>
						    <?php } ?>
						    <p><button type="submit" class="btn btn-flat btn-theme-colored border-left-theme-color-2-4px mt-10 mb-10" style="width:48%;" name="action" value="order">Get Quotation</button><!--&nbsp;&nbsp;<button type="button" class="btn btn-flat btn-theme-colored2 border-left-theme-color-2-4px mt-10 mb-10" style="width:48%;" name="action" value="order">Book Now</button>--></p>
						    </div>
						    </form>
						</div>
					</div>
					</form>
				</div>
			</section>
			
			<section id="about">
				<div class="container mt-0 pb-0 pt-5">
					<div class="col-lg-12">
					    <h1 class="title mt-10 mb-10" style="text-align:center;">End-To-End Service Protection</h1>
    					<div class="row multi-row-clearfix">
    					    <div class="">
    							<div class="col-md-4 col-sm-6 col-xs-6 pl-5 pr-5" data-nav="false">
    								<div class="item" style="background:#7986cb; border-radius:5px;">
    									<div class="mb-10" style="">
    										    <div class="thumb pt-15 pb-10" style="background:#7986cb; text-align:center; border-radius:5px;">
    											<i class="fa fa-check-circle" aria-hidden="true" style="color:#fff; font-size:40px;"></i>
    										</div>									<div class="p-0 pt-0 pb-10" style="text-align:center;">
    											<p style="margin-bottom:0; font-size:14px; text-align:center; color:#fff;">Quality Materials</p>       		    </div>	
    									</div>
    								</div>
    							</div>
    							<div class="col-md-4 col-sm-6 col-xs-6 pl-5 pr-5" data-nav="false">
    								<div class="item" style="background:#7986cb; border-radius:5px;">
    									<div class="mb-10" style="">
    										    <div class="thumb pt-15 pb-10" style="background:#7986cb; text-align:center; border-radius:5px;">
    											<i class="fa fa-users" aria-hidden="true" style="color:#fff; font-size:40px;"></i>
    										</div>									<div class="p-0 pt-0 pb-10" style="text-align:center;">
    											<p style="margin-bottom:0; font-size:14px; text-align:center; color:#fff;">Expert Technicians</p>       	</div>	
    									</div>
    								</div>
    							</div>
    							<div class="col-md-4 col-sm-6 col-xs-6 pl-5 pr-5" data-nav="false">
    								<div class="item" style="background:#7986cb; border-radius:5px;">
    									<div class="mb-10" style="">
    										    <div class="thumb pt-15 pb-10" style="background:#7986cb; text-align:center; border-radius:5px;">
    											<i class="fa fa-clock-o" aria-hidden="true" style="color:#fff; font-size:40px;"></i>
    										</div>									<div class="p-0 pt-0 pb-10" style="text-align:center;">
    											<p style="margin-bottom:0; font-size:14px; text-align:center; color:#fff;">On Time Service</p>       		    
    									    </div>	
    									</div>
    								</div>
    							</div>
    							<div class="col-md-4 col-sm-6 col-xs-6 pl-5 pr-5" data-nav="false">
    								<div class="item" style="background:#7986cb; border-radius:5px;">
    									<div class="mb-10" style="">
    										    <div class="thumb pt-15 pb-10" style="background:#7986cb; text-align:center; border-radius:5px;">
    											<i class="fa fa-exchange" aria-hidden="true" style="color:#fff; font-size:40px;"></i>
    										</div>									<div class="p-0 pt-0 pb-10" style="text-align:center;">
    											<p style="margin-bottom:0; font-size:14px; text-align:center; color:#fff;">Hassle Free Claims</p>           </div>	
    									</div>
    								</div>
    							</div>
    						</div>
    					</div>
					</div>
				</div>
			</section>
			<!-- page template area end -->
  
<?php require_once("footer.php");?>