<?php include('../config/setup.php');?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<title><?php 
            
            $leename=mysqli_query($config,"select Name,Name_status from lee_master");
            while($lee=mysqli_fetch_array($leename))
            {
                 $namestatus=$lee[1];
if($namestatus == 1)
{
    echo  $lee[0];
}else{
    echo "Need Name";

}

            }
            
            ?>  </title>
	<meta content='width=device-width, initial-scale=1.0, shrink-to-fit=no' name='viewport' />
	<link rel="icon" href="<?php 
            
            $inro_logo=mysqli_query($config,"select Logo_Path,logo_status from lee_master");
            while($logo=mysqli_fetch_array($inro_logo))
            {
                 $logstatus=$logo[1];
if($logstatus == 1)
{
	
	 $ms=substr($logo[0],3);
	 echo "../../photos/logo/favicon.ico";
	
     
}else{
    echo "../../photos/logo/no_logo.png";

}

            }
            
            ?>" type="image/x-icon"/>
	
	 	 
	<!-- Fonts and icons -->
	<script src="../assets/js/plugin/webfont/webfont.min.js"></script>
	<script>
		WebFont.load({
			google: {"families":["Lato:300,400,700,900"]},
			custom: {"families":["Flaticon", "Font Awesome 5 Solid", "Font Awesome 5 Regular", "Font Awesome 5 Brands", "simple-line-icons"], urls: ['../assets/css/fonts.min.css']},
			active: function() {
				sessionStorage.fonts = true;
			}
		});
	</script>
 
	<!-- CSS Files -->
	<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
	<link rel="stylesheet" href="../assets/css/atlantis.min.css">
	<!-- CSS Just for demo purpose, don't include it in your project -->
	<link rel="stylesheet" href="../assets/css/demo.css">
	
</head>
<body>
	<div class="wrapper">
		<div class="main-header">
			<!-- Logo Header -->
			<?php include('logo.php');?>
			<!-- End Logo Header -->

			<!-- Navbar Header -->
			<?php include('topbar.php');?>
			 <!-- End Navbar -->
		</div>
		<!-- Sidebar -->
		<?php include('sidebar.php');?>
        <?php 
			$pro=1;
           echo  $id=$_GET['id'];
		$pro_photo=mysqli_query($config,"select * from game_banner where slider_id='$id'");
			$propt=mysqli_fetch_object($pro_photo);
				?>
		
		<div class="main-panel">
			<div class="content">
				<div class="page-inner">
					<div class="page-header">
						<h4 class="page-title">Edit Banner </h4>
						 
					</div>
                    <div class="container" >
	  
                    <div class="">
	  <form action="Function/banner_edit.php" method="post">
            
			 <div class="form-group">
			<label for="email2">banner Display Order</label>
						<input type="number" class="form-control" id="email2" name="slider_display_order"  value="<?php echo $propt->Slider_order;?>">
						<input type="hidden" class="form-control" id="email2" name="id"  value="<?php echo $id;?>">

 			</div>
			 <div class="form-group" style="display: none;">
			<label for="email2">banner Title</label>
						<input type="text" class="form-control" id="email2" name="Slider_title"  value="<?php echo $propt->Slider_title;?>">

 			</div>
			 <div class="form-group" style="display: none;">
			<label for="email2">banner Contecnt</label>
                        <input type="text" class="form-control" name="Slider_contecnt"  value="<?php echo $propt->Slider_contecnt;?>">

 			</div>
			 <div class="form-group">
			<label for="email2">banner Link</label>
						<input type="text" class="form-control" id="email2" name="Slider_link"  value="<?php echo $propt->Slider_link;?>">

 			</div>

		
			 
			   <div class="form-group">
												<label for="exampleFormControlSelect1">Slider Active Status</label>
												<select class="form-control" id="exampleFormControlSelect1" name="pro_gall_status">
												<?php 

													$cate_enablestatus=$propt->Slider_Status;
													
													if($cate_enablestatus == 1)
													{ ?>
												
													<option value="1" selected>Active</option>
													<option value="0">In-Active</option>
													<?php }else if($cate_enablestatus == 0){?>

														<option value="1" >Active</option>
													<option value="0" selected>In-Active</option>
													<?php }else{ ?>
													<option value="1" >Active</option>
													<option value="0" >In-Active</option>
													
													
													<?php } ?>
												
												</select>
											</div>			
		
		
		
		
		
		
		
		
		
		
		     <div class="form-group">
									<button class="btn btn-success" type="submit" name="slider_image__pro">Submit</button>
 								</div>
			
			
			</form>
			<div class="modal-body">
	  <form action="Function/banner_edit.php" method="post" enctype="multipart/form-data" >
	 <center>  <h4 class="modal-title" id="exampleModalLabel">Change Banner Image</h4></center> 
       
<div class="form-group">
<label for="email2">Current Image </label>
<img src="../../photos/banner/<?php echo $propt->Slider_Image;?>" style="
    width:310px;
    height: 129px;
">
</div>




	   <div class="form-group">
			<label for="email2">Change  Image here (Image size <?php echo $propt->size;?> )</label>
						<input type="hidden" class="form-control" id="email2" name="slider_image_id"  value="<?php echo $id?>">

			<input type="file" class="form-control" id="email2" name="slider__image" placeholder="Main CategoryName" >
			</div>
          		
		
		
		
		
		
		
		
		
		     <div class="form-group">
									<button class="btn btn-warning" type="submit" name="Edit_Slider_image">Submit</button>
 								</div>
			
			
			
		</form>	
			
      </div>
		</div>
 	
			
			
			
			
			
			
			
		<?php include('footer.php');?>	
		 
		</div>
		
		 
		<!-- End Custom template -->
	</div>
<script type="text/javascript" src="richtext.js"></script> 
  <script type="text/javascript">
 
        bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
  </script>
	<!--   Core JS Files   -->
 	<script src="../assets/js/core/jquery.3.2.1.min.js"></script>
	<script src="../assets/js/core/popper.min.js"></script>
	<script src="../assets/js/core/bootstrap.min.js"></script>
	<!-- jQuery UI -->
	<script src="../assets/js/plugin/jquery-ui-1.12.1.custom/jquery-ui.min.js"></script>
	<script src="../assets/js/plugin/jquery-ui-touch-punch/jquery.ui.touch-punch.min.js"></script>
	
	<!-- jQuery Scrollbar -->
	<script src="../assets/js/plugin/jquery-scrollbar/jquery.scrollbar.min.js"></script>
	<!-- Datatables -->
	<script src="../assets/js/plugin/datatables/datatables.min.js"></script>
	<!-- Atlantis JS -->
	<script src="../assets/js/atlantis.min.js"></script>
	<!-- Atlantis DEMO methods, don't include it in your project! -->
	<script src="../assets/js/setting-demo2.js"></script>
	<script >
		$(document).ready(function() {
			$('#basic-datatables').DataTable({
			});

		 
 
			 
		});
	</script>
</body>
</html>