<script>
function clearcontent() {
    document.getElementById("formumkm").reset();
}
</script>
<script>
  function validateFormPassword() {
    
 
    var p1 = document.forms["formpassword"]["p1"].value;
    var p2 = document.forms["formpassword"]["p2"].value;
    var p3 = document.forms["formpassword"]["p3"].value;

    if (p1 == "") {
      alert("Password Lama Harus Diisi");
      return false;
    }
    else if (p2 == "") {
      alert("Password Baru Diisi");
     
      return false;
    }
    else if (p3 == "") {
      alert("Ulangi Password Harus Diisi");
      return false;
    }
    
  };
  
  
  </script>
</head>
<body>
<section class="content">
      <div class="container-fluid">
        <div class="row">
          <!-- left column -->
          <div class="col-md-12">
            <!-- jquery validation -->
            <div class="card card-primary">
            <h3 class="card-title"><?php echo $this->session->flashdata("k_passwod");?></h3>
              <div class="card-header">
              
                <h3 class="card-title">Form <small>Ubah Password</small></h3>
              </div>
              
              <!-- /.card-header -->
              <!-- form start -->
              <form name="formpassword" onsubmit="return validateFormPassword()" action="<?=base_URL()?>sistem/ubah_passwod/simpan" onsubmit="dstry()"  method="post" accept-charset="utf-8" enctype="multipart/form-data" id="quickForm" class="form-horizontal">
                                                           
              <div class="card-body">
                                     
                                       
                                         
    <section class="content">
      
   

 <div class="container-fluid">
        <!-- SELECT2 EXAMPLE -->
        <div class="card card-default">
          <div class="card-header">
         
            <h3 class="card-title">Ubah Password</h3>

            <div class="card-tools">
              <button type="button" class="btn btn-tool" data-card-widget="collapse">
                <i class="fas fa-minus"></i>
              </button>
             
            </div>
          </div>
          <!-- /.card-header -->
          <div class="card-body">
            <div class="row">
              <div class="col-md-6">
             
                <div class="form-group">
                  <label>Username:</label>
                  <input type="text" name="username" class="form-control" id="username"    readonly value="<?=$this->session->userdata('admin_username')?>" >  
                  
                </div>
               
                <div class="form-group">
                  <label>Password Lama:</label>
                  <input autocomplete ='off' type="text" name="p1" class="form-control" id="p1" >  
                  
                </div>
                
              
               
               
              </div>

              <!-- /.col KANAN -->
              <div class="col-md-6">
              
              <div class="form-group">
                  <label>Password Baru:</label>
                  <input autocomplete ='off' type="text" name="p2" class="form-control" id="p2" >  
                  
                </div>
                <div class="form-group">
                  <label>Ulangi Password:</label>
                  <input autocomplete ='off' type="text" name="p3" class="form-control" id="p3" >  
                  
                </div>
               
               
              
                
                
                
              </div>
            
              <!-- /.col -->
            </div>
            <!-- /.row -->
            
          
            <!-- /.row -->
          </div>
          <!-- /.card-body -->
          
        </div>
        <!-- /.card -->

        <!-- SELECT2 EXAMPLE -->
       
        <!-- /.card -->

        
        <!-- /.card -->

       
        <!-- /.row -->
        
        <!-- /.row -->
        
        <!-- /.row -->
      </div>

      
      <!-- /.container-fluid -->
    </section>
                                           
                                            
                                          </div>
                                          <!-- /.card-body -->
                                          <div class="card-footer">
                                              <button type="submit"  class="btn btn-primary" >Simpan</button>
                                             
                                          </div>
                                          
                                        </form>
                                        
            </div>
         
            <!-- /.card -->
            </div>
          <!--/.col (left) -->
          <!-- right column -->
          
          
          <!--/.col (right) -->
        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </section>

   
    














  
    	
