<div class="row">
  <!-- begin col-8 -->
  <div class="col-lg-12">
      <!-- begin panel -->
      <form class="form-horizontal" method="post" name="" action="">
      <div class="panel panel-grey">
          <div class="panel-heading">
              <div class="panel-heading-btn">
                  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-grey" data-click="panel-expand"><i class="fa fa-expand"></i></a>
                  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-grey" data-click="panel-remove"><i class="fa fa-times"></i></a>
              </div>
              <a onclick="goBack()" class="btn btn-primary m-b-5"><span class="fa fa-arrow-left"></span> Kembali</a>
              <hr>
          </div>
          <style>
            html,body{font:14px arial,verdana,san-serif;}
            .container{
                display:table;
                width:400px;
                border-collapse:collapse;
                margin:0 auto;
                line-height:25px;
            }
            .table-row:hover{background-color:#99ccff;}
            .heading{
                font-weight:bold;
                display:table-row;
                background-color:#C91622;
                text-align:center;
                line-height:35px;
                color:#ffffff;
            }
            .table-row{  
                display:table-row;
                text-align:center;
            }
            .strip{  
                display:table-row;
                text-align:center;
                background-color:#f0f0f0;
            }
            .col{ 
                display:table-cell;
                border:1px solid #CCC;
            }
          </style>
          <div class="panel-body">
              <div class="col-sm-10">
                <div class="form-group m-b-11">
                    <input type="hidden" name="id_uji" value="<?php echo $vget['id_uji']; ?>">
                    <label class="col-md-4 col-form-label control-label">Waktu dan Tanggal Persetujuan<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? date('d/m/Y H:i:s', strtotime($edit['waktu_tanggal_persetujuan'])) : '' ?>" name="waktu_tanggal_persetujuan" type="text" class="form-control datetimepicker1" placeholder="Waktu dan Tanggal Persetujuan" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Nama Instansi<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['nama_instansi'] : '' ?>" name="nama_instansi" type="text" class="form-control" placeholder="Nama Instansi" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Nama Pelanggan<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['nama_pelanggan'] : '' ?>" name="nama_pelanggan" type="text" class="form-control" placeholder="Nama Pelanggan" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Jenis Parameter Pengujian<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['jenis_parameter_pengujian'] : '' ?>" name="jenis_parameter_pengujian" type="text" class="form-control" placeholder="Jenis Parameter Pengujian" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Cara Pengujian<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['cara_pengujian'] : '' ?>" name="cara_pengujian" type="text" class="form-control" placeholder="Cara Pengujian" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Sampel yang Diuji<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['sampel_yang_diuji'] : '' ?>" name="sampel_yang_diuji" type="text" class="form-control" placeholder="Sampel yang Diuji" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Laboratorium Subkontraktor<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['laboratorium_subkontraktor'] : '' ?>" name="laboratorium_subkontraktor" type="text" class="form-control" placeholder="Laboratorium Subkontraktor" required>
                    </div>
                </div>


            </div>
        </div>
        <div class="panel panel-footer">
          <div class="col-sm-10">
            <div class="form-group m-b-11">
                <label class="col-md-4 col-form-label control-label"></label>
                <div class="col-md-7">
                    <button type="submit" class="btn btn-md btn-success">Simpan</button>
                    <button type="reset" class="btn btn-md btn-warning">Reset</button>
                    <a onclick="goBack();" class="btn btn-md btn-danger">Batal</a>
                </div>
            </div>
          </div>
        </div>
      </div>
      </form>
  </div>
</div>

<script type="text/javascript">
    <?php if(isset($edit) && '5' == $edit['id_penanganan_kerja']) { ?>
      $('.ket_penanganan_kerja').show();
    <?php }else { ?>
      $('.ket_penanganan_kerja').hide();
    <?php } ?>

    <?php if(isset($edit) && strpos('2|3|4|', $edit['id_bentuk_sampel']) !== false) { ?>
        $('#jenis_padat').show();
    <?php }else { ?>
        $('#jenis_padat').hide();
    <?php } ?>
    function pilihJenis(x){
        if(x === 'Padat'){
            $('#jenis_padat').show();
        }else{
            $('#jenis_padat').hide();
        }

        $.post( "<?php echo site_url('sampel/pengajuan/get_penanganan_sampel_arsip') ?>", { type: x}, function( data ) {
            $(".id_penanganan_arsip").html(data);
        });
    }

    function onPenangananKerja(x){
      if(x == '5'){
        $('.ket_penanganan_kerja').show();
      } else{
        $('.ket_penanganan_kerja').hide();
      }
    }

</script>
