<?php 
error_reporting(0);
$this->load->view('header_front');
$this->load->view('security_front');
$can_id = $this->session->userdata('user_id');
 ?>
<div class="container main-content">
  <div class="row">
    <div class="col-xs-12 col-sm-12 col-md-8 profile">
	
     <form name="change_password_from" id="change_password_from" method="post" onsubmit="return change_password()" action="<?php echo base_url();?>front_end/change_passwordcode" class="form-horizontal">
        
        <div class="panel panel-default" id="profileBasicinfo">
          <h3>Change Password</h3>
		  <p style="color:#FF0000;"> <?php echo $this->session->flashdata('error_msg');?></p>
<p style="color:#4F8A10;"> <?php echo $this->session->flashdata('success_msg');?></p>
          <div class="row">
            <div class="col-sm-10 col-sm-push-1">
              <div class="form-group">
                <label class="col-sm-4 control-label">&nbsp;</label>
                <div class="col-sm-8">
                  <div class="checklist-holder">
                    <h5>To protect your account, your password must be:</h5>
                    <ul class="list-unstyled checklist-password" id="checklistPassword" data-passchecker="false">
                      <li id="ruleOneUppercase">at least <strong>1 UPPERCASE</strong> letter</li>
                      <li id="ruleOneLowercase">at least <strong>1 lowercase</strong> letter</li>
                      <li id="ruleOneNumber">at least <strong>1 number</strong></li>
                      <li id="ruleEightChars">at least <strong>8</strong> characters long</li>
                      <li id="ruleNoSymbol"><strong>NO</strong> symbols</li>
                    </ul>
                    <p class="alert alert-warning"><strong>Example : My5ecret</strong></p>
                  </div>
                </div>
              </div>
              
              <div class="form-group">
                <label class="col-sm-4 control-label" for="new-password">New Password</label>
                <div class="col-sm-8">
                 <input type="password" class="form-control" name="password" id="password" placeholder="Password">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Confirm New Password</label>
                <div class="col-sm-8">
                  <input type="password" class="form-control" name="cpassword" id="cpassword" placeholder="Confirm Password">
                  <span id="confirmPasswordHelpblock" class="help-block"></span></div>
              </div>
              <br>
              <div class="form-group">
                <label class="col-sm-4 control-label">&nbsp;</label>
                <div class="col-sm-8">
                  <button type="submit" class="btn btn-primary btn-block" name="update">Change Password</button>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </form>
    </div>
    <!-- sidebar -->
    
	<?php $this->load->view('frontleftbar'); ?>
    <!-- /.sidebar -->
  </div>
</div>
</div>
</div>

<?php $this->load->view('footer_front'); ?>
