<style type="text/css">
    .table > thead > tr > th {
        vertical-align: middle;
        text-align: center;
    }
</style>
<?php $header = $this->load->view('uji_analis/header_panel', true);?>
  <table class="table table-bordered table-hover table-striped table-td-valign-middle">
      <thead>
          <tr>
              <th rowspan="2" class="text-center">No Urut</th>
              <th rowspan="2" class="text-center">
                Aksi
              </th>
              <th colspan="2" class="text-center">Mulai Pengujian</th>
              <th rowspan="2" class="text-center">No Sampel</th>
              <th rowspan="2" class="text-center">Kode Vochdoos</th>
              <th rowspan="2" class="text-center">Berat Vochdoos Kosong<br/>(gram)<br/>W<sub>1</sub></th>
              <th rowspan="2" class="text-center">Berat Sampel (gram)<br/>W</th>
              <th rowspan="2" class="text-center">Berat&nbsp;Vochdoos dan sampel setelah dioven (gram)<br/>W<sub>2</sub><br></th>
              <th rowspan="2" class="text-center">% Kadar Air</th>
              <th colspan="2" class="text-center">Selesai Pengujian</th>
              <th colspan="2" class="text-center">Analis</th>
              <th rowspan="2" class="text-center">Paraf Penyelia</th>
              <th colspan="2" class="text-center">Persetujuan</th>
              <th rowspan="2" class="text-center">Keterangan</th>
          </tr>
          <tr>
              <th class="text-center">Tanggal</th>
              <th class="text-center">Pukul</th>
              <th class="text-center">Tanggal</th>
              <th class="text-center">Pukul</th>
              <th class="text-center">Nama</th>
              <th class="text-center">Paraf</th>
              <th class="text-center">Tanggal</th>
              <th class="text-center">Pukul</th>
          </tr>
      </thead>
      <tbody>
          <?php
          $z = 1;
          foreach ($data as $r) {
              ?>
              <tr class="">
                  <td class="text-center"><?php echo $this->uri->segment(5) + $z++ ?></td>
                  <td class="text-center">
                      <input type="checkbox" name="id[]" id="id_check<?php echo $r['id']; ?>" onchange="onCheck(<?php echo $r['id']; ?>);" value="<?php echo $r['id']; ?>">
                  </td>
                  <td><?php echo get_str_date2($r["mulai_uji"]); ?></td>
                  <td><?php echo get_str_time($r["mulai_uji"]); ?></td>
                  <td><?php echo ($r["id_sampel"] && $r["id_sampel"] != 0 ? $r["nomor_sampel"] : val_ks($r['kontrol_sampel'])); ?></td>
                  <td><?php echo $r["kode_vochdost"]; ?></td>
                  <td><?php echo $r["berat_vochdost_kosong"]; ?></td>
                  <td><?php echo $r["berat_sampel"]; ?></td>
                  <td><?php echo $r["bfsd"]; ?></td>
                  <td class="text-center"><?php echo $r["kadar_air"]. ($r["id_sampel"] && $r["id_sampel"] != 0 ? '' : '<br>KS:&nbsp;'.str_replace('-', '&nbsp;-&nbsp;', $r['c_range'])); ?></td>
                  <td><?php echo get_str_date2($r["selesai_uji"]); ?></td>
                  <td><?php echo get_str_time($r["selesai_uji"]); ?></td>
                  <td><?php echo $r["nama_analis"]; ?></td>
                  <td><?php echo $r["paraf_analis"]; ?></td>
                  <td><?php echo $r["paraf_penyelia"]; ?></td>
                  <td><?php echo get_str_date2($r["persetujuan"]); ?></td>
                  <td><?php echo get_str_time($r["persetujuan"]); ?></td>
                  <td><?php echo $r["keterangan"]; ?></td>
              </tr>
          <?php } ?>
      </tbody>
      <tfoot>

      </tfoot>
  </table>
<?php $this->load->view('uji_analis/footer_panel', true);?>
