1<?php
include ('include/header.php');
?>
        <!-- BEGIN PAGE LEVEL PLUGINS -->
        <link href="assets/global/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.css" rel="stylesheet" type="text/css" />
        <link href="assets/global/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css" rel="stylesheet" type="text/css" />
        <link href="assets/global/plugins/bootstrap-summernote/summernote.css" rel="stylesheet" type="text/css" />
        <!-- END PAGE LEVEL PLUGINS -->


</head>
<body class="page-header-fixed page-sidebar-closed-hide-logo">


<?php
include ('include/sidebar.php');
?>

 

		
            <!-- BEGIN CONTENT -->
            <div class="page-content-wrapper">
                <!-- BEGIN CONTENT BODY -->
                <div class="page-content">
                    <!-- BEGIN PAGE HEADER-->
                   
                    <!-- BEGIN PAGE TITLE-->
                    <h3 class="page-title"> Activate / Deactivate 4 digit pin Entry International Transfer
                        <small></small>
                    </h3>
                    <!-- END PAGE TITLE-->

					<hr>

					
					
					
					
					
			<div class="row">
			<div class="col-md-12">
                            <!-- BEGIN SAMPLE FORM PORTLET-->
                            <div class="portlet light bordered">
                                
                                <div class="portlet-body form">
                                    <form class="form-horizontal" action="" method="post" role="form">
                                        <div class="form-body">

		   
<?php
$sitedetails =  mysqli_fetch_array(mysqli_query($db,"SELECT notification, code_lock, code_lock1 FROM site_settings WHERE id=1"));
$notification  =    $sitedetails[0];
$code  = $sitedetails[1];
$code1  = $sitedetails[2];


if(isset($_POST['submit'])){

     $code =$_POST['code_lock'];
      $update=mysqli_query($db, "UPDATE site_settings SET code_lock='".$code."' WHERE id='1'");
        if ($update){

    
       echo "<div class=\"alert alert-success alert-dismissable\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">&times;</button>	

Settings Has Been Successfully Updated 

</div>";



}else{
	echo "<div class=\"alert alert-danger alert-dismissable\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">&times;</button>	

Some Problem Occured, Please Try Again. 

</div>";    }
}


?>										
										
										
										
										
										
            <small>This function is Currently <span style="color:blue;"><?php 
           echo $code?></span></small>
                    <div class="form-group">
                    <label class="col-md-3 control-label"><strong>Four Digit code  Entry</strong></label>
                    <br>
                    
                    <div class="col-md-6">
                     <select class="form-control input-lg" name="code_lock">
                                                   <option disabled selected>Select</option>

                          <option value="ON">ON</option>
                        <option value="OFF">OFF</option>

                         </select>
                    </div>
                    </div>

                    



					 
                                            <div class="row">
                                                <div class="col-md-offset-3 col-md-6">
                                                    <button type="submit" name="submit" class="btn blue btn-block">Submit</button>
                                                </div>
                                            </div>
											
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>		
                        </div><!---ROW-->		
					
					<!--===================================-->
		            
		            <!-- BEGIN PAGE TITLE-->
                    <h3 class="page-title"> Activate / Deactivate 4 digit pin Entry Local Transfer
                        <small></small>
                    </h3>
                    <!-- END PAGE TITLE-->

					<hr>

					
					
					
					
					
			<div class="row">
			<div class="col-md-12">
                            <!-- BEGIN SAMPLE FORM PORTLET-->
                            <div class="portlet light bordered">
                                
                                <div class="portlet-body form">
                                    <form class="form-horizontal" action="" method="post" role="form">
                                        <div class="form-body">

		   
<?php

if(isset($_POST['submit1'])){

     $code1 =$_POST['code_lock1'];
      $update=mysqli_query($db, "UPDATE site_settings SET code_lock1='".$code1."' WHERE id='1'");
        if ($update){

    
       echo "<div class=\"alert alert-success alert-dismissable\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">&times;</button>	

Settings Has Been Successfully Updated 

</div>";



}else{
	echo "<div class=\"alert alert-danger alert-dismissable\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">&times;</button>	

Some Problem Occured, Please Try Again. 

</div>";    }
}


?>										
										
										
										
										
										
            <small>This function is Currently <span style="color:blue;"><?php 
           echo $code1?></span></small>
                    <div class="form-group">
                    <label class="col-md-3 control-label"><strong>Four Digit code  Entry</strong></label>
                    <br>
                    
                    <div class="col-md-6">
                     <select class="form-control input-lg" name="code_lock1">
                                                   <option disabled selected>Select</option>

                          <option value="ON">ON</option>
                        <option value="OFF">OFF</option>

                         </select>
                    </div>
                    </div>

                    



					 
                                            <div class="row">
                                                <div class="col-md-offset-3 col-md-6">
                                                    <button type="submit" name="submit1" class="btn blue btn-block">Submit</button>
                                                </div>
                                            </div>
											
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>		
                        </div><!---ROW-->		
					
					
					
					
					
					
			
					
					
					
					
					
					
                </div>
                <!-- END CONTENT BODY -->
            </div>
            <!-- END CONTENT -->
            
            
            
            
			


<?php
 include ('include/footer.php');
 ?>

        <!-- BEGIN PAGE LEVEL PLUGINS -->
        <script src="assets/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js" type="text/javascript"></script>
        <script src="assets/global/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.js" type="text/javascript"></script>
        <script src="assets/global/plugins/bootstrap-markdown/lib/markdown.js" type="text/javascript"></script>
        <script src="./assets/global/plugins/bootstrap-markdown/js/bootstrap-markdown.js" type="text/javascript"></script>
        <script src="assets/global/plugins/bootstrap-summernote/summernote.min.js" type="text/javascript"></script>
        <!-- END PAGE LEVEL PLUGINS -->
        <script>
        
    
        
        </script>
        
        <!-- BEGIN PAGE LEVEL SCRIPTS -->
        <script src="assets/pages/scripts/components-editors.min.js" type="text/javascript"></script>
        <!-- END PAGE LEVEL SCRIPTS -->

</body>
</html>