<!DOCTYPE html>
<html lang="en">
<head>
	<!-- header -->
		<?php $this->load->view('admin/common_header'); ?>
	<!-- /header -->

	<!-- Bootsrap form validation JS files -->
	<script type="text/javascript" src="<?php echo base_url();?>assets/js/formValidation.js"></script>
	<script type="text/javascript" src="<?php echo base_url();?>assets/js/bootstrap.js"></script>

	<!-- Theme JS files -->
	<script type="text/javascript" src="<?php echo base_url();?>assets/js/core/app.js"></script>
	<!-- /theme JS files -->


</head>

<body class="login-cover">

	<!-- Page container -->
	<div class="page-container login-container">

		<!-- Page content -->
		<div class="page-content">

			<!-- Main content -->
			<div class="content-wrapper">

				<!-- Unlock form -->
				<div id="" class="panel panel-body login-form">
					
					<!-- Form -->
					<form class="activate-password" method="post" action="<?php echo $action;?>">
						<div class="thumb thumb-rounded no-margin-top content-group">
							<img src="<?php echo base_url();?>assets/images/placeholder.jpg" alt="">
							<!-- <div class="caption-overflow">
								<span>
									<a href="#" class="btn border-white text-white btn-flat btn-icon btn-rounded btn-xs"><i class="icon-collaboration"></i></a>
									<a href="#" class="btn border-white text-white btn-flat btn-icon btn-rounded btn-xs ml-5"><i class="icon-question7"></i></a>
								</span>
							</div> -->
						</div>

						<h6 class="content-group text-center text-semibold no-margin-top"><?php echo (isset($fullname)) ? $fullname : '';?> <small class="display-block">Unlock your account</small></h6>

						<div class="form-group has-feedback">
							<input type="password" name="password" class="form-control" placeholder="New password">
							<div class="form-control-feedback">
								<i class="icon-user-lock text-muted"></i>
							</div>
						</div>

						<div class="form-group has-feedback">
							<input type="password" name="cpassword" class="form-control" placeholder="Retype new password">
							<div class="form-control-feedback">
								<i class="icon-user-lock text-muted"></i>
							</div>
						</div>

						<input type="hidden" name="reset_id" value="<?php echo (isset($reset_id)) ? $reset_id : '';?>">
						<!-- <div class="form-group login-options">
							<div class="row">
								<div class="col-sm-6">
									<label class="checkbox-inline">
										<input type="checkbox" class="styled" checked="checked">
										Remember
									</label>
								</div>

								<div class="col-sm-6 text-right">
									<a href="login_password_recover.html">Forgot password?</a>
								</div>
							</div>
						</div> -->

						<button type="submit" class="btn bg-slate btn-block">Unlock <i class="icon-circle-right2 position-right"></i></button>
						<button type="button" class="btn btn-default btn-block" data-dismiss="modal">Cancel</button>
					</form>
					<!-- /form -->
					
				</div>
				<!-- /unlock form -->

			</div>
			<!-- /main content -->

		</div>
		<!-- /page content -->


		<!-- Footer -->
		<div class="footer text-white">
			<?php echo site_footer();?>
		</div>
		<!-- /footer -->

	</div>
	<!-- /page container -->

	<script type="text/javascript">
	jQuery.noConflict();
	(function( $ ) {
	$(function() {

		$(document).ready(function() {
			

			$('.activate-password').formValidation({
		    	framework: 'bootstrap',
		    	excluded: [':disabled'],
		        // icon: {
		        //     valid: 'glyphicon glyphicon-ok',
		        //     invalid: 'glyphicon glyphicon-remove',
		        //     validating: 'glyphicon glyphicon-refresh'
		        // },
		        fields: {
		        	password: {
			            validators: {
			            	notEmpty: {
		                        message: '<?php echo $this->lang->line("required_reset_password");?>'
		                    }
			            }
			        },
			        cpassword: {
			            validators: {
			            	notEmpty: {
		                        message: '<?php echo $this->lang->line("required_reset_password");?>'
		                    },
			                identical: {
			                    field: 'password',
			                    message: 'The password and its confirm are not the same'
			                }
			            }
			        }
		            
		        }
		    })
			
		});
	    
	   

	});
	})(jQuery);

	
	</script>

</body>
</html>
