<?php 
include("header.php");
include("left-nev.php");
$con=db();
$page_title="Category Management";
if($_GET['action']=="Edit")
{
$page_subtitle="Edit Category";
}
else
{
	$page_subtitle="Add Category";
}
$table="tbl_product_category";
?>
<!-- Customizer JavaScript File (remove if not needed) -->
<script type="text/javascript" src="jsfiles/pagetransfer.js"></script>
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        <?php echo $page_title;?>
        <small><?php echo $page_subtitle;?></small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="dashboard.php"><i class="fa fa-dashboard"></i> Home</a></li>
        <li><a href="dashboard.php">Dashboard</a></li>
		<li><a href="manage-product-category.php"><?php echo $page_title;?></a></li>
        <li class="active"><?php echo $page_subtitle;?></li>
      </ol>
    </section>
    <!-- Main content -->
    <section class="content">
      <!-- Main row -->
      <div class="row">
        <!-- Left col -->
<?php
if($_GET['action']=="Edit")
{
?>
<section class="col-lg-12 connectedSortable">
          <!-- TO DO List -->
            <?php
            if($_SESSION["update-page-msg"]!=""){
        	?>
	<div class="form-group has-success">
	<label class="control-label" for="inputSuccess"><i class="fa fa-check"></i> <?php echo $_SESSION["update-page-msg"];?></label>
   </div>
<?php
unset($_SESSION["update-page-msg"]);
}
$id=$_GET['id'];
$selsql=$user->FetchCategoryEdit($id);
$respage=mysqli_fetch_object($selsql);
?>

   <div class="box-body">
              <form method="post" action="process-update-category.php?id=<?php echo $id;?>" enctype="multipart/form-data">
			  Category Title<span style="color:red;">*</span>
                <div class="form-group">
                  <input type="text" class="form-control" name="product_category_title" value="<?php echo $respage->product_category_title;?>" placeholder="Category Title" required>
                </div>
				Page Url <span style="color:red;">*</span>
                <div class="form-group">
                  <input type="text" class="form-control" name="pg_url" value="<?php echo $respage->pg_url;?>" placeholder="Page Url" required>
                </div>
                
              <!--Price<span style="color:red;"></span>-->
                <!--<div class="form-group">-->
                <!--  <input type="text" class="form-control" name="hindi_title" value="<?php echo $respage->hindi_title;?>" placeholder="Price">-->
                <!--</div>-->
				<!--Meta/Page 2nd Title <span style="color:red;"></span>
				<div class="form-group">
                  <input type="text" class="form-control" name="pg_hindi_meta_title" value="<?php echo $respage->pg_hindi_meta_title;?>" placeholder="Meta/Page 2nd Title">
                </div>
				Page 2nd Url <span style="color:red;"></span>
                <div class="form-group">
                  <input type="text" class="form-control" name="hindi_url" value="<?php echo $respage->hindi_url;?>" placeholder="Page 2nd Url">
                </div>-->
                
				Meta/Page Title <span style="color:red;">*</span>
				<div class="form-group">
                  <input type="text" class="form-control" name="pg_meta_title" value="<?php echo str_replace("^","'",$respage->pg_meta_title);?>" placeholder="Meta/Page Title" required>
                </div>
                
				Meta Keywords <span style="color:red;"></span>
				<div class="form-group">
				  <textarea class="form-control" style="height:50px; width:100%;" name="pg_meta_keyword"><?php echo str_replace("^","'",$respage->pg_meta_keyword);?></textarea>
                </div>
                
				Meta Description <span style="color:red;"></span>
				<div class="form-group">
                  <textarea class="form-control" style="height:50px; width:100%;" name="pg_meta_desc"><?php echo str_replace("^","'",$respage->pg_meta_desc);?></textarea>
                </div>
                Image Alt tag <span style="color:red;"></span>
				<div class="form-group">
                  <input type="text" class="form-control" name="img_alttag" value="<?php echo str_replace("^","'",$respage->imges_alttag);?>" placeholder="Image Alt tag">
                </div>
                
				<!--
				Video Link (E.g: https://www.youtube.com/embed/mPqF4DTgEIQ) <span style="color:red;"></span>
				<div class="form-group">
                  <textarea class="form-control" style="height:50px; width:100%;" name="sort_description"><?php echo str_replace("^","'",$respage->sort_description);?></textarea>
                </div>
				Hindi Video Link (E.g: https://www.youtube.com/embed/mPqF4DTgEIQ) <span style="color:red;"></span>
				<div class="form-group">
                  <textarea class="form-control" style="height:50px; width:100%;" name="hindi_video"><?php echo $respage->hindi_video;?></textarea>
                </div>
				Short Description <span style="color:red;"></span>
				<div class="form-group">
                <textarea class="ckeditor" name="sort_description" cols="45" rows="7" style=" border:1px solid #A8D3FF;" ><?php echo str_replace("^","'",$respage->sort_description);?></textarea>
                </div>-->
       </div>  

       <div class="container box-body">
           <div class="row">            
        <div class="col-12 col-md-6 col-lg-6 col-xl-6">
          <?php 
          $selprodsql=mysqli_query($con,"select * from tbl_product where product_subcat='$respage->product_cat_id'");
$resprod=mysqli_fetch_object($selprodsql);
$selectedColors = explode(',', $resprod->ProductColour ?? '');
$selectedColors = array_map('trim', $selectedColors); // remove extra spaces
?>
<input type="hidden" name="product_cat" value="<?php echo $resprod->product_cat;?>">
<input type="hidden" name="product_subcat" value="<?php echo $resprod->product_subcat;?>">
                  <br><div class="controls">
                      <label for="ProductColour">Product Colour :</label><br>
                     <span style="background-color:#E00;padding:1px 4px 0px 4px;"><input type="checkbox" name="ProductColour[]" value="Red" <?php if(in_array('Red', $selectedColors)) echo 'checked'; ?>></span> Red
                     <span style="background-color:#0000FF;padding:1px 4px 0px 4px;"><input type="checkbox" name="ProductColour[]" value="Blue" <?php if(in_array('Blue', $selectedColors)) echo 'checked'; ?>></span> Blue 
                     <span style="background-color:#008000;padding:1px 4px 0px 4px;"><input type="checkbox" name="ProductColour[]" value="Green" <?php if(in_array('Green', $selectedColors)) echo 'checked'; ?>></span> Green 
                     <span style="background-color:#FFFACD;padding:1px 4px 0px 4px;"><input type="checkbox" name="ProductColour[]" value="Cream" <?php if(in_array('Cream', $selectedColors)) echo 'checked'; ?>></span> Cream
                     <span style="background-color:#ffffff;padding:1px 4px 0px 4px;"><input type="checkbox" name="ProductColour[]" value="White" <?php if(in_array('White', $selectedColors)) echo 'checked'; ?>></span> White 
                  </div>
        </div>

        <div class="col-12 col-md-6 col-lg-6 col-xl-6">
          <?php 
$homePgShowing = explode(',', $resprod->home_pg_showing_status ?? '');
$homePgShowingStatus = array_map('trim', $homePgShowing); // remove extra spaces
?>
           <br><div class="form-group">
                <label for="codstatus">Showing Status :</label>
                <br><input type="checkbox" name="home_pg_showing_status[]" value="1" <?php if(in_array('1', $homePgShowingStatus)) echo 'checked' ?>> Top-Quality &nbsp; 
                <input type="checkbox" name="home_pg_showing_status[]" value="2" <?php if(in_array('2', $homePgShowingStatus)) echo 'checked' ?>> High-Demand &nbsp; 
                <input type="checkbox" name="home_pg_showing_status[]" value="3" <?php if(in_array('3', $homePgShowingStatus)) echo 'checked' ?>> Top Choices &nbsp; 
                <input type="checkbox" name="home_pg_showing_status[]" value="4" <?php if(in_array('4', $homePgShowingStatus)) echo 'checked' ?>> Container Sale &nbsp;                                           
            </div>
        </div>
        
        <div class="col-12 col-md-4 col-lg-4 col-xl-4">
                    <div class="form-group">
                                        <br><div class="controls">
                                        <label for="lastName1">Product SKU :</label>
                                            <input type="text" class="form-control" value="<?php echo $resprod->sku_code;?>" name="ProductSku" id="ProductSku">
                                            <div class="help-block validmsg" id="ProductSkumsg"></div></div>
                    </div>
        </div>

        <div class="col-12 col-md-4 col-lg-4 col-xl-4">
                                    <br><div class="form-group">
                                    <label for="emailAddress1">Product MRP :</label>
                                            <input type="text" class="form-control mrp" value="<?php echo $resprod->mrp_price;?>" name="ProductMrp" id="ProductMrp">
                                            <div class="help-block validmsg" id="ProductMrpmsg"></div>
                                    </div>
        </div>

        <div class="col-12 col-md-4 col-lg-4 col-xl-4">               
                     <br><div class="form-group">
                                    <label for="emailAddress1">Product Selling Price :</label>
                                            <input type="text" class="form-control sellingp" value="<?php echo $resprod->discounted_price;?>" name="ProductSellingPrice" id="SellingPrice">
                                            <div class="help-block validmsg" id="ProductSellingPricemsg"></div>
                                    </div>
        </div>

         </div>
        </div>

         <div class="box-body">
    			Description <span style="color:red;">*</span>
				<div class="form-group">
                <textarea class="ckeditor" name="description" cols="45" rows="7" style=" border:1px solid #A8D3FF;" ><?php echo str_replace("^","'",$respage->description);?></textarea>
                </div>
         
                Meta/Page Title (Use ServiceLocation as Target Location)<span style="color:red;">*</span>
				<div class="form-group">
          <?php 
          if($resprod->pg_meta_title_location)
          {
           $pg_meta_title_location = $resprod->pg_meta_title_location;
          }
          else
          {
           $pg_meta_title_location = $respage->pg_meta_title_location; 
          }
          if($resprod->pg_meta_keyword_location)
          {
           $pg_meta_keyword_location = $resprod->pg_meta_keyword_location;
          }
          else
          {
           $pg_meta_keyword_location = $respage->pg_meta_keyword_location; 
          }
          if($resprod->pg_meta_desc_location)
          {
           $pg_meta_desc_location = $resprod->pg_meta_desc_location;
          }
          else
          {
           $pg_meta_desc_location = $respage->pg_meta_desc_location; 
          }
          if($resprod->description)
          {
           $product_information = $resprod->description;
          }
          else
          {
           $product_information = $respage->product_information; 
          }
          
          ?>
                  <input type="text" class="form-control" name="pg_meta_title_location" value="<?php echo str_replace("^","'",$pg_meta_title_location);?>" placeholder="Meta/Page Title" required>
                </div>
                
				Meta Keywords (Use ServiceLocation as Target Location)<span style="color:red;"></span>
				<div class="form-group">
				  <textarea class="form-control" style="height:50px; width:100%;" name="pg_meta_keyword_location"><?php echo str_replace("^","'",$pg_meta_keyword_location);?></textarea>
                </div>
                
				Meta Description (Use ServiceLocation as Target Location)<span style="color:red;"></span>
				<div class="form-group">
                  <textarea class="form-control" style="height:50px; width:100%;" name="pg_meta_desc_location"><?php echo str_replace("^","'",$pg_meta_desc_location);?></textarea>
                </div>

            Description (Use ServiceLocation as Target Location) <span style="color:red;">*</span>
				<div class="form-group">
                <textarea class="ckeditor" name="product_information" cols="45" rows="7" style=" border:1px solid #A8D3FF;" ><?php echo str_replace("^","'",$respage->product_information);?></textarea>
                </div>
				<!--Product Information <span style="color:red;">*</span>
				<div class="form-group">
                <textarea class="ckeditor" name="product_information" cols="45" rows="7" style=" border:1px solid #A8D3FF;" ><?php echo $respage->product_information;?></textarea>
                </div> -->	
                
				<!--Visible on Home Page in Rooms <span style="color:red;"></span>-->
				<!--<div class="radio">-->
    <!--                <label>-->
				<!--	<span><input type="radio" name="home_page_visible" value="Yes" <?php IF($respage->home_page_visible=="Yes") { ?> checked="checked" <?php } ?>/></span>-->
    <!--                   <span>Yes</span>  <span style="margin-left:30px;">-->
				<!--	  <span><input type="radio" name="home_page_visible" value="No" <?php IF($respage->home_page_visible=="No") { ?> checked="checked" <?php } ?>/></span>-->
    <!--                   <span>No</span></label>-->
    <!--              </div>-->
				  Visible on Home Page<span style="color:red;"></span>
				<div class="radio">
                    <label>
					  <span><input type="radio" name="home_page_visible_with_text" value="Yes" <?php IF($respage->home_page_visible_with_text=="Yes") { ?> checked="checked" <?php } ?>/></span>
               <span>Yes</span>  <span style="margin-left:30px;">
               <input type="radio" name="home_page_visible_with_text"  value="No" <?php IF($respage->home_page_visible_with_text=="No") { ?> checked="checked" <?php } ?> /></span><span>No</span>
                    </label>
                  </div>
				Status <span style="color:red;"></span>
				<div class="radio">
                    <label>
					  <span><input type="radio" name="pg_status" value="Active" <?php IF($respage->pg_status=="Active") { ?> checked="checked" <?php } ?>/></span>
                <span>Active</span>  <span style="margin-left:30px;">
                <input type="radio" name="pg_status"  value="Inactive" <?php IF($respage->pg_status=="Inactive") { ?> checked="checked" <?php } ?> /></span><span>Inactive</span>
                    </label>
                  </div>
                  
				<div class="form-group">
    				<label for="exampleInputFile">Category Image <span style="color:red;">*</span></label>
    				<?php if($respage->image){?>
    				<img src="../upload/category/<?php echo $respage->image;?>" title="<?php echo $respage->product_category_title;?>" style="height:100px; width:200px;margin-top:15px;">
                    <?php } ?>
                    <input type="file" name="image" id="exampleInputFile">
    			   <p class="help-block">Image width must be 500px and height must be 300px.</p>
				</div>
				
				<div class="form-group">
    				<label for="exampleInputFile">Banner Image <span style="color:red;">*</span></label>
    				<?php if($respage->banner){?>
    				<img src="../upload/banner/<?php echo $respage->banner;?>" title="<?php echo $respage->product_category_title;?>" style="height:100px; width:200px;margin-top:15px;">
                    <?php } ?>
                    <input type="file" name="banner" id="exampleInputFile">
    			   <p class="help-block">Image width must be 850px and height must be 355px.</p>
				</div>
				
				<div class="form-group">
  <?php 
  include 'include/connection.php';
   $conn     = db();
    $webselimg=mysqli_query($conn,"select * from tbl_product_image where product_id='".$_REQUEST['id']."'");
  ?>
  <label for="exampleInputFile">Category Multi Image <span style="color:red;">*</span></label>
  
  <?php 
    if (mysqli_num_rows($webselimg) > 0) {
      while ($webresimg = mysqli_fetch_assoc($webselimg)) { 
  ?>
        <img src="../upload/category/multi_images/<?php echo $webresimg['image']; ?>" 
             title="<?php echo htmlspecialchars($respage->product_category_title ?? '', ENT_QUOTES); ?>" 
             style="height:100px; width:200px; margin:10px 10px 0 0; border:1px solid #ddd; padding:3px;">
  <?php 
      } 
    } else { 
  ?>
      <p style="color:#999;">No images uploaded yet.</p>
  <?php } ?>
  
  <input type="file" name="images[]" id="exampleInputFile" multiple
    data-bind="fileInput: multiFileData, customFileInput: {
      buttonClass: 'btn btn-success',
      fileNameClass: 'disabled form-control',
      onClear: onClear,
      onInvalidFileDrop: onInvalidFileDrop
    }" accept="image/*">
  
  <p class="help-block">Image width must be 500px and height must be 300px.</p>
</div>



            </div>


            <div class="box-footer">


                <button type="submit" name="Update" class="btn btn-primary">Update</button>


				&nbsp;&nbsp;&nbsp;&nbsp;


				<button type="reset" name="Reset" class="btn btn-primary">Reset</button>


              </div>


		 </form>


       


        <!-- /.box -->


        </section>


		


<?php	


}


else 


{


?>  


		<section class="col-lg-12 connectedSortable">





          <!-- TO DO List -->


          


            <div class="box box-info">


            <?php


if($_SESSION["add-page-msg"]!=""){


	?>


	<div class="form-group has-success">


	<label class="control-label" for="inputSuccess"><i class="fa fa-check"></i> <?php echo $_SESSION["add-page-msg"];?></label>


   </div>


<?php


unset($_SESSION["add-page-msg"]);


}


?>


            <?php


if($_SESSION["add-page-errormsg"]!=""){


	?>


<div class="form-group has-error">


                  <label class="control-label" for="inputError"><i class="fa fa-times-circle-o"></i> <?php echo $_SESSION["add-page-errormsg"];?></label>


                </div>


<?php


unset($_SESSION["add-page-errormsg"]);


}


?>				


            <div class="box-body">

 
              <form method="post" action="process-add-category.php?id=<?php echo $_GET['id'];?>" enctype="multipart/form-data">


			  Category Title<span style="color:red;">*</span>


                <div class="form-group">


                  <input type="text" class="form-control" name="product_category_title" placeholder="Category Title" required>


                </div>


                


				Page Url <span style="color:red;">*</span>


                <div class="form-group">


                  <input type="text" class="form-control" name="pg_url"  placeholder="Page Url" required>


                </div>

				Meta/Page Title <span style="color:red;">*</span>


				<div class="form-group">


                  <input type="text" class="form-control" name="pg_meta_title"  placeholder="Meta/Page Title" required>


                </div>


				 <!--Price<span style="color:red;"></span>-->


     <!--           <div class="form-group">-->


     <!--             <input type="text" class="form-control" name="hindi_title" placeholder="Price" required>-->


     <!--           </div>-->


				<!--Page 2nd Url <span style="color:red;"></span>


                <div class="form-group">


                  <input type="text" class="form-control" name="hindi_url" placeholder="Page 2nd Url">


                </div>


				Meta/Page 2nd Title <span style="color:red;"></span>


				<div class="form-group">


                  <input type="text" class="form-control" name="pg_hindi_meta_title" placeholder="Meta/Page 2nd Title">


                </div>-->


				Meta Keywords <span style="color:red;"></span>


				<div class="form-group">


				  <textarea class="form-control" style="height:50px; width:100%;" name="pg_meta_keyword"></textarea>


                </div>


				Meta Description <span style="color:red;"></span>


				<div class="form-group">


                  <textarea class="form-control" style="height:50px; width:100%;" name="pg_meta_desc"></textarea>


                </div>


            	Image Alt tag <span style="color:red;"></span>


				<div class="form-group">


                  <input type="text" class="form-control" name="img_alttag"  placeholder="Image Alt tag" >


                </div>


				<!--Video Link (E.g: https://www.youtube.com/embed/mPqF4DTgEIQ) <span style="color:red;"></span>


				<div class="form-group">


                  <textarea class="form-control" style="height:50px; width:100%;" name="sort_description"></textarea>


                </div>


				Hindi Video Link (E.g: https://www.youtube.com/embed/mPqF4DTgEIQ) <span style="color:red;"></span>


				<div class="form-group">


                  <textarea class="form-control" style="height:50px; width:100%;" name="hindi_video"></textarea>


                </div>


				Short Description <span style="color:red;"></span>


				<div class="form-group">


                <textarea class="ckeditor" name="sort_description" cols="45" rows="7" style=" border:1px solid #A8D3FF;" ></textarea>


                </div>-->
<div class="container box-body">
           <div class="row">            
        <div class="col-12 col-md-6 col-lg-6 col-xl-6">
                  <br><div class="controls">
                      <label for="ProductColour">Product Colour :</label><br>
                     <span style="background-color:#E00;padding:1px 4px 0px 4px;"><input type="checkbox" name="ProductColour[]" value="Red"></span> Red
                     <span style="background-color:#0000FF;padding:1px 4px 0px 4px;"><input type="checkbox" name="ProductColour[]" value="Blue "></span> Blue 
                     <span style="background-color:#008000;padding:1px 4px 0px 4px;"><input type="checkbox" name="ProductColour[]" value="Green "></span> Green 
                     <span style="background-color:#FFFACD;padding:1px 4px 0px 4px;"><input type="checkbox" name="ProductColour[]" value="Cream"></span> Cream
                     <span style="background-color:#ffffff;padding:1px 4px 0px 4px;"><input type="checkbox" name="ProductColour[]" value="White "></span> White 
                  </div>
        </div>

        <div class="col-12 col-md-6 col-lg-6 col-xl-6">
           <br><div class="form-group">
                <label for="codstatus">Showing Status :</label>
                <br><input type="checkbox" name="home_pg_showing_status[]" value="1"> Top-Quality &nbsp; 
                <input type="checkbox" name="home_pg_showing_status[]" value="2"> High-Demand &nbsp; 
                <input type="checkbox" name="home_pg_showing_status[]" value="3"> Top Choices &nbsp; 
                <input type="checkbox" name="home_pg_showing_status[]" value="4"> Container Sale &nbsp;                                           
            </div>
        </div>
        


        <div class="col-12 col-md-4 col-lg-4 col-xl-4">
                                    <br><div class="form-group">
                                    <label for="emailAddress1">Product MRP :</label>
                                            <input type="text" class="form-control mrp" name="ProductMrp" id="ProductMrp">
                                            <div class="help-block validmsg" id="ProductMrpmsg"></div>
                                    </div>
        </div>

        <div class="col-12 col-md-4 col-lg-4 col-xl-4">               
                     <br><div class="form-group">
                                    <label for="emailAddress1">Product Selling Price :</label>
                                            <input type="text" class="form-control sellingp" name="ProductSellingPrice" id="SellingPrice">
                                            <div class="help-block validmsg" id="ProductSellingPricemsg"></div>
                                    </div>
        </div>
<div class="col-12 col-md-4 col-lg-4 col-xl-4"></div>
         </div>
        </div>

				Description <span style="color:red;">*</span>


				<div class="form-group">


                 <textarea class="ckeditor" name="description" cols="45" rows="7" style=" border:1px solid #A8D3FF;" ></textarea>


                </div>
                

				<!--


				Product Information <span style="color:red;">*</span>


				<div class="form-group">


                <textarea class="ckeditor" name="product_information" cols="45" rows="7" style=" border:1px solid #A8D3FF;" ></textarea>


                </div> -->								


				<!--Visible on Home Page in Rooms <span style="color:red;"></span>-->


				<!--<div class="radio">-->


    <!--                <label>-->


				<!--	<span><input type="radio" name="home_page_visible" value="Yes"/></span>-->


    <!--           <span>Yes</span>  <span style="margin-left:30px;">-->


				<!--	  <span><input type="radio" name="home_page_visible" value="No" checked /></span>-->


    <!--           <span>No</span></label>-->


    <!--              </div>-->


			        Meta/Page Title (Use ServiceLocation as Target Location)<span style="color:red;">*</span>
				<div class="form-group">
                  <input type="text" class="form-control" name="pg_meta_title" placeholder="Meta/Page Title" required>
                </div>
                
				Meta Keywords (Use ServiceLocation as Target Location)<span style="color:red;"></span>
				<div class="form-group">
				  <textarea class="form-control" style="height:50px; width:100%;" name="pg_meta_keyword"></textarea>
                </div>
                
				Meta Description (Use ServiceLocation as Target Location)<span style="color:red;"></span>
				<div class="form-group">
                  <textarea class="form-control" style="height:50px; width:100%;" name="pg_meta_desc"></textarea>
                </div>

            Description (Use ServiceLocation as Target Location) <span style="color:red;">*</span>
				<div class="form-group">
                <textarea class="ckeditor" name="product_information" cols="45" rows="7" style=" border:1px solid #A8D3FF;" ></textarea>
                </div>	 


				  Visible on Home Page <span style="color:red;"></span>


				<div class="radio">


                    <label>


					  <span><input type="radio" name="home_page_visible_with_text" value="Yes"/></span>


                 <span>Yes</span>  <span style="margin-left:30px;">


                <input type="radio" name="home_page_visible_with_text"  value="No" checked="checked"/></span><span>No</span>


                    </label>


                  </div>


				Status <span style="color:red;"></span>


				<div class="radio">


                    <label>


					  <span><input type="radio" name="pg_status" value="Active" checked="checked"/></span>


                 <span>Active</span>  <span style="margin-left:30px;">


                <input type="radio" name="pg_status"  value="Inactive" /></span><span>Inactive</span>


                    </label>


                  </div>


				<div class="form-group">


				<label for="exampleInputFile">Category Image <span style="color:red;">*</span></label>


                <input type="file" name="image" id="exampleInputFile">


				<p class="help-block">Image width must be 500px and height must be 300px.</p>


				</div>


				


				<div class="form-group">


				<label for="exampleInputFile">Category Banner Image <span style="color:red;">*</span></label>


                <input type="file" name="banner" id="exampleInputFile">

                <p class="help-block">Image width must be 850px and height must be 355px.</p>
				

				</div>


            </div>


            <div class="box-footer">


                <button type="submit" name="Submit" class="btn btn-primary">Submit</button>


				&nbsp;&nbsp;&nbsp;&nbsp;


				<button type="reset" name="Reset" class="btn btn-primary">Reset</button>


              </div>


		 </form>





          </div>





        <!-- /.box -->


        </section>


<?php } ?>


        <!-- /.Left col -->


      <!-- /.row (main row) -->





    </section>


    <!-- /.content -->


  </div>


  <!-- /.content-wrapper -->


<?php include("footer.php");?>





  <!-- Control Sidebar -->


  <aside class="control-sidebar control-sidebar-dark">


    <!-- Create the tabs -->


    <ul class="nav nav-tabs nav-justified control-sidebar-tabs">


      <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>


      <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>


    </ul>


    <!-- Tab panes -->


    <div class="tab-content">


      <!-- Home tab content -->


      <div class="tab-pane" id="control-sidebar-home-tab">


        <h3 class="control-sidebar-heading">Recent Activity</h3>


        <ul class="control-sidebar-menu">


          <li>


            <a href="javascript:void(0)">


              <i class="menu-icon fa fa-birthday-cake bg-red"></i>





              <div class="menu-info">


                <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>





                <p>Will be 23 on April 24th</p>


              </div>


            </a>


          </li>


          <li>


            <a href="javascript:void(0)">


              <i class="menu-icon fa fa-user bg-yellow"></i>





              <div class="menu-info">


                <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>





                <p>New phone +1(800)555-1234</p>


              </div>


            </a>


          </li>


          <li>


            <a href="javascript:void(0)">


              <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>





              <div class="menu-info">


                <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>





                <p>nora@example.com</p>


              </div>


            </a>


          </li>


          <li>


            <a href="javascript:void(0)">


              <i class="menu-icon fa fa-file-code-o bg-green"></i>





              <div class="menu-info">


                <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>





                <p>Execution time 5 seconds</p>


              </div>


            </a>


          </li>


        </ul>


        <!-- /.control-sidebar-menu -->





        <h3 class="control-sidebar-heading">Tasks Progress</h3>


        <ul class="control-sidebar-menu">


          <li>


            <a href="javascript:void(0)">


              <h4 class="control-sidebar-subheading">


                Custom Template Design


                <span class="label label-danger pull-right">70%</span>


              </h4>





              <div class="progress progress-xxs">


                <div class="progress-bar progress-bar-danger" style="width: 70%"></div>


              </div>


            </a>


          </li>


          <li>


            <a href="javascript:void(0)">


              <h4 class="control-sidebar-subheading">


                Update Resume


                <span class="label label-success pull-right">95%</span>


              </h4>





              <div class="progress progress-xxs">


                <div class="progress-bar progress-bar-success" style="width: 95%"></div>


              </div>


            </a>


          </li>


          <li>


            <a href="javascript:void(0)">


              <h4 class="control-sidebar-subheading">


                Laravel Integration


                <span class="label label-warning pull-right">50%</span>


              </h4>





              <div class="progress progress-xxs">


                <div class="progress-bar progress-bar-warning" style="width: 50%"></div>


              </div>


            </a>


          </li>


          <li>


            <a href="javascript:void(0)">


              <h4 class="control-sidebar-subheading">


                Back End Framework


                <span class="label label-primary pull-right">68%</span>


              </h4>





              <div class="progress progress-xxs">


                <div class="progress-bar progress-bar-primary" style="width: 68%"></div>


              </div>


            </a>


          </li>


        </ul>


        <!-- /.control-sidebar-menu -->





      </div>


      <!-- /.tab-pane -->


      <!-- Stats tab content -->


      <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>


      <!-- /.tab-pane -->


      <!-- Settings tab content -->


      <div class="tab-pane" id="control-sidebar-settings-tab">


        <form method="post">


          <h3 class="control-sidebar-heading">General Settings</h3>





          <div class="form-group">


            <label class="control-sidebar-subheading">


              Report panel usage


              <input type="checkbox" class="pull-right" checked>


            </label>





            <p>


              Some information about this general settings option


            </p>


          </div>


          <!-- /.form-group -->





          <div class="form-group">


            <label class="control-sidebar-subheading">


              Allow mail redirect


              <input type="checkbox" class="pull-right" checked>


            </label>





            <p>


              Other sets of options are available


            </p>


          </div>


          <!-- /.form-group -->





          <div class="form-group">


            <label class="control-sidebar-subheading">


              Expose author name in posts


              <input type="checkbox" class="pull-right" checked>


            </label>





            <p>


              Allow the user to show his name in blog posts


            </p>


          </div>


          <!-- /.form-group -->





          <h3 class="control-sidebar-heading">Chat Settings</h3>





          <div class="form-group">


            <label class="control-sidebar-subheading">


              Show me as online


              <input type="checkbox" class="pull-right" checked>


            </label>


          </div>


          <!-- /.form-group -->





          <div class="form-group">


            <label class="control-sidebar-subheading">


              Turn off notifications


              <input type="checkbox" class="pull-right">


            </label>


          </div>


          <!-- /.form-group -->





          <div class="form-group">


            <label class="control-sidebar-subheading">


              Delete chat history


              <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>


            </label>


          </div>


          <!-- /.form-group -->


        </form>


      </div>


      <!-- /.tab-pane -->


    </div>


  </aside>


  <!-- /.control-sidebar -->


  <!-- Add the sidebar's background. This div must be placed


       immediately after the control sidebar -->


  <div class="control-sidebar-bg"></div>


</div>


<!-- ./wrapper -->





</body>


</html>


