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

<?php
$get_scategory = mysqli_fetch_array(mysqli_query($connection,"SELECT * FROM `sc_category` WHERE `category_id` = '".$_GET['category_id']."'"));
?>

			<!-- page template area start -->
			<section id="about">
			    <img src="../uploads/category/<?php echo $get_scategory['category_banner'];?>" alt="">
				<div class="container mt-0 pb-0 pt-10">
					<div class="col-lg-12">
				        <h1 class="title mt-0 mb-5" style="text-align:center;"><?php echo stripslashes($get_scategory['category_name']);?></h1>
				        <div class="row" style="margin-top:10px;">
					    <?php
						$sql_category = "SELECT * FROM `sc_subcategory` WHERE `category_id` = '".$_GET['category_id']."' AND `subcategory_status` = 'Active' ORDER BY `subcategory_id` ASC";
						$exe_category = mysqli_query($connection,$sql_category);
						while($arr_category = mysqli_fetch_array($exe_category))
						{
						?>	
    					    <a href="login.php?category_id=<?php echo $_GET['category_id'];?>&subcategory_id=<?php echo $arr_category['subcategory_id'];?>">
							<div class="col-xs-10 mb-10" style="background:#e6e8f5; border-top-left-radius:10px; border-bottom-left-radius:10px;">
								<p style="margin:5px 0; color:#333;"><!--<i class="fa fa-arrows" style="font-size:20px; color:#1565c0; margin-right:5px;"></i>--><img class="" style="width:40px;" alt="" src="../uploads/subcategory/<?php echo stripslashes($arr_category['subcategory_icon']);?>"> <?php echo stripslashes($arr_category['subcategory_name']);?></p>
							</div>
							<div class="col-xs-2 mb-10" style="background:#e6e8f5; border-top-right-radius:10px; border-bottom-right-radius:10px;">
								<p style="margin:13px 0; text-align:center;"><i class="fa fa-angle-right" style="font-size:20px; color:#1565c0;"></i></p>
							</div>
							</a>
    							<?php
    						}
    						?>
    					</div>
					</div>
				</div>
			</section>
			<!-- page template area end -->
  
<?php require_once("footer.php");?>