<?php defined('BASEPATH')or exit("NO DIRECT ACCESS iS ALLOWED");?>

</div>
</div>
</div>
<div id="footer">
  <div class="row"style="margin-right:0px;margin-left:0px;">
    <div class="col-md-6 left">
      <!-- <ul>
        <li><a href="#">Courses</a><span>&#8226;</span></li>
        <li><a href="#">Account</a><span>&#8226;</span></li>
        <li><a href="#">Today Schedule</a></li>
      </ul> -->
    </div>
    <div class="col-md-6 right">
      <span class="pull-right"><!-- Copyright 2017 <strong>theOnlineGurukul</strong> &amp;-->
        <a href="#">&#169; 2017 theOnlineGurukul Inc. All rights reserved.</a></span>
    </div>
  </div>
</div>

  <script src="<?=base_url('assets/easy-admin/code.jquery.com/jquery-1.11.1.min.js');?>"></script>
    <script src="<?=base_url('assets/easy-admin/code.jquery.com/ui/1.11.0/jquery-ui.min.js');?>"></script>
  <script  src="<?=base_url('assets/adminlte/dist/js/jQuery.fixTableHeader.min.js');?>"></script>
      <script type="text/javascript" src="<?=base_url('assets/web/js/jquery.sumoselect.js');?>"></script>


    <script type="text/javascript" src="<?=base_url('assets/easy-admin/bootstrap/js/bootstrap.min.js');?>"></script>
  <script type="text/javascript" src="<?=base_url('assets/easy-admin/scripts/jquery.dropzone/dropzone.js');?>"></script>
  <script src="<?=base_url('assets/web/js/calendar.js');?>"></script>
<script src="<?=base_url('assets/web/plugins/timer/jquery.syotimer.js');?>"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
   <script type='text/javascript' src='<?=base_url("assets/easy-admin/dropify.js");?>'></script>
   <script src="<?=base_url('assets/timezone_detect.js');?>"></script>
   <script src='<?=base_url("assets/jquery.cookie.min.js");?>'></script>
      <script src='<?=base_url("assets/web/js/jquery.sumoselect.js");?>'></script>

   <script type="text/javascript">
           $(document).ready(function () {
               window.asd = $('.SlectBox').SumoSelect({ csvDispCount: 3, selectAll:true, captionFormatAllSelected: "Yeah, OK, so everything." });

   			  window.asd = $('.SlectBox1a').SumoSelect({ csvDispCount: 3, selectAll:true, captionFormatAllSelected: "Yeah, OK, so everything." });
   			   });
   	</script>

        <script>
            $(document).ready(function(){
                // Basic
                $('.dropify').dropify();


                // Used events
                var drEvent = $('.dropify-event').dropify();

                drEvent.on('dropify.beforeClear', function(event, element){
                    return confirm("Do you really want to delete \"" + element.filename + "\" ?");
                });

                drEvent.on('dropify.afterClear', function(event, element){
                    alert('File deleted');
                });
            });
        </script>
  <script>
  $( function() {
    $( "#datepicker" ).datepicker({
      changeMonth: true,
      changeYear: true,
      yearRange: "1960:2018"
    });
  } );
  </script>
  <script>
    $('.button_collapse').on('click', function(){
  $('.wrap_search, .button_collapse').toggleClass('active');

  return false;
});
</script>
    <script>
        $(document).ready(function() {
           $('#tableContainer2').fixTableHeader({
              fixHeader: true,
            });


          });
        </script>


  </body>
<!-- Mirrored from nicolaegabriel.info/live/admin-easy-bootstrap/ by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 31 Jan 2018 05:26:10 GMT -->
</html>



<style>
 .popbox {
    display: none;
    /*position:absolute;*/
	position:fixed;
	top: 23%;
    right: 19%;
    z-index: 99999;
    width: 1000px;
    padding: 0px;
    background: #fff;
    color: #000000;
    margin-top: -160px;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(164, 164, 164, 1);
    box-shadow: 0px 0px 5px 0px rgba(164, 164, 164, 1);
}
.popbox h2 {
   color: #fff;
    font-size: 14px;
    display: block;
    width: 100%;
    margin: -3px 0px 0px 0px;
    padding: 5px 7px;
    background: linear-gradient(45deg,#FFa500,#ff869a);
}

 .text_change{
   text-transform: uppercase;
     color: #fff;
     font-size: 20px;
     margin-top: 6px;
     margin-bottom: 5px;
 }
 .modal_headers{
 	background-color:#FF6275;
     padding: 6px 9px;
 }
 .close-change{
 	    margin-top: -19px!important;
 			 opacity: 1;
 }
 .close-change:hover, .close-change:focus{
 	opacity: 1;

 }
 .save_change{
 	background-color: #ffa500!important;
 	 border-color: #ffa500!important;
 }
  </style>
<div id="pop1" class="popbox">

</div>


<div id="pwdModal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
  <div class="modal-dialog">
  <div class="modal-content">
      <div class="modal-header modal_headers">
          <button type="button" class="close-change close" data-dismiss="modal" aria-hidden="true">
						<img src="<?=base_url('assets/web/images/close-pop.png');?>" alt="close-pop.png"></button>
          <h1 class="text-center text_change">Change Password</h1>
      </div>
      <div class="modal-body">
				<div class="content py-5 bg-light  ">
					<div class="container">
					  <div class="row">

    					<div class="col-md-12">
                    <span class="anchor" id="formChangePassword"></span>
                   <!-- form card change password -->
									 <div id='response' style="color:red;text-align:center;"></div>
                    <div class="card card-outline-secondary">
                        <div class="card-body">
														<form class="form" role="form" id='userForm' method="post"  autocomplete="off">
															<div class="form-group">
																	<label for="inputPasswordOld">Current Password</label>
																	<input type="password" class="form-control" name="current_password" id="current_password" required>
															</div>
															<div class="form-group">
																	<label for="inputPasswordNew">New Password</label>
																	<input type="password" class="form-control" name="password" id="password" required>
																	<span class="form-text small text-muted">
																					The password must be 8-20 characters, and must <em>not</em> contain spaces.
																			</span>
															</div>
															<div class="form-group">
																	<label for="inputPasswordNewVerify">Verify</label>
																	<input type="password" class="form-control"  name="confirm_password" id="confirm_password" required>
																	<span class="form-text small text-muted">
																					To confirm, type the new password again.
																			</span>
															</div>
															<div class="form-group">
																	<button type="submit" class="btn btn-success btn-lg float-right btn-block save_change">Save</button>
															</div>
													</form>
                        </div>
                    </div>
                </div>
						</div>
					</div>
				</div>
			</div>
  </div>
  </div>
</div>

<script>
	$(document).ready(function(){
  	$('#userForm').on('submit',function(e){
			e.preventDefault();
		var current_password	= $('#current_password').val();
		var password					= $('#password').val();
		var confirm_password	= $('#confirm_password').val();

  	   // show that something is loading
    	$('#response').html("<b>Loading response...</b>");
    	// Call ajax for pass data to other place
    	$.ajax({
      	type: 'POST',
      	url: '<?=site_url('Teacher/change_password')?>',
      //	data: $(this).serialize() // getting filed value in serialize form
			 data : {current_password:current_password,password:password,confirm_password:confirm_password},
			 success :function(response){
				 //alert(response);
 					$('#response').html(response);
 			  }
	  	});
		});
	});
</script>
<script>
	 $(document).ready(function(){
		 $.ajax({
			 url: "<?=site_url('Timezone/timezone_detect');?>",
			 data: getTimeZoneData(),
			 method: "POST",
			 dataType: "JSON"
		 }).done(function(data) {
			/// $("#timezone").html(data);
			var cdata =decodeURIComponent(data);
				///  alert(cdata);
				 // alert(cdata);
		 var expire = new Date();
		// expire.setTime(expire.getTime() + (15 * 60 * 1000)); //time()+86400
		expire.setTime(expire.getTime() + (86400));
			$.cookie('timezone_get', cdata,{expires: expire});
			//alert( $.cookie('timezone_get', cdata));
		 });
	 });
 </script>
