    <script src="assets/js/jquery.min.js"></script>
    <script type="text/javascript">
      
      $('document').ready(function () {
        $("#imgload").change(function () {
            if (this.files && this.files[0]) {
                var reader = new FileReader();
                reader.onload = function (e) {
                    $('#imgshow').attr('src', e.target.result);
                }
                reader.readAsDataURL(this.files[0]);
            }
        });
      });
    </script>
    <style>
    .image-upload>input {
        display: none;
    }
    #imgshow:hover{
      opacity: 0.3;
      cursor:pointer;
    }
    </style>

    <br>


    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-md-3">

            <!-- Profile Image -->
            <div class="card card-info">
              <div class="card-header" style="background:#eb5d99;color:white;">
                <h3 class="card-title">Foto Profil</h3>
              </div>
              <div class="card-body box-profile">
                <div class="text-center">
                  

                  
                <form action="setfotoprofiladmin" method="POST" enctype="multipart/form-data">
                  <div class="image-upload">
                    
                    <label for="imgload">


                      <img id="imgshow" onerror="this.src='<?php echo $base_url_admin;?>/assets/img/ava.png'" alt="Foto" class="profile-user-img img-fluid img-circle" src="<?php echo $base_url_admin;?>/assets/foto/<?php echo $filefoto;?>.jpg?p=<?php echo date('h:i:s:d-m-Y');?>">
                        
                        
                    </label>
                    <input name="file_foto" type="file" accept=".jpg" id="imgload" required="required"><br>
                    <button class="btn btn-primary btn-block">Upload</button>
                  </div>
                </form>

                </div>
                <h3 class="profile-username text-center"><?php echo $radmin_login['nama_lengkap'];?></h3>
                <p class="text-muted text-center">(<?php echo ucwords(strtolower($radmin_login['status']));?>)</p>

                

                <!--
                <a href="#" class="btn btn-primary btn-block"><b>Follow</b></a>
                -->
              </div>
              <!-- /.card-body -->
            </div>
            <!-- /.card -->

            <!-- About Me Box -->
            
            <!-- /.card -->
          </div>
















          <!-- /.col -->
          <div class="col-md-9">
            <div class="card card-info">
              <div class="card-header" style="background:#eb5d99;color:white;">
                <h3 class="card-title">Detail Informasi</h3>
              </div>
              <div class="card-body">
                <div class="tab-content">
                  

                  <div class="active tab-pane" id="settings">
                    <form class="form-horizontal" action="setprofiladmin" method="POST">


                      <div class="form-group row">
                        <label for="inputEmail" class="col-sm-2 col-form-label">Username</label>
                        <div class="col-sm-10">
                          <input value="<?php echo $radmin_login['username'];?>" type="text" class="form-control" placeholder="Username" disabled>
                        </div>
                      </div>
                      <div class="form-group row">
                        <label for="inputName" class="col-sm-2 col-form-label">Nama Lengkap</label>
                        <div class="col-sm-10">
                          <input name="nama_lengkap" value="<?php echo $radmin_login['nama_lengkap'];?>" type="text" class="form-control" required="required">
                        </div>
                      </div>
                      

                      

                      <div class="form-group row">
                        <div class="offset-sm-2 col-sm-10">
                          <button type="submit" class="btn btn-danger">Update</button>
                        </div>
                      </div>
                    </form>
                  </div>
                  <!-- /.tab-pane -->
                </div>
                <!-- /.tab-content -->
              </div><!-- /.card-body -->
            </div>
            <!-- /.nav-tabs-custom -->
          </div>
          <!-- /.col -->
        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </section>