<style type="text/css">
    .table > thead > tr > th {
        vertical-align: middle;
        text-align: center;
    }
</style>
<?php $this->load->view('uji_analis/header_panel');?>
  <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">Nomor Sampel</th>
              <th rowspan="2" class="text-center">Kode Tabung & Erlenmeyer</th>
              <th rowspan="2" class="text-center">Berat Sampel<br/>(gram)<br/>(W)</th>
              <th rowspan="2" class="text-center">Volume Titrasi<br/>(Vs)</th>
              <th rowspan="2" class="text-center">Volume Blanko<br/>(Vb)</th>
              <th rowspan="2" class="text-center">N HCl</th>
              <th rowspan="2" class="text-center">Faktor<br>14.01 / 10</th>
              <th rowspan="2" class="text-center">Faktor Konversi N ke Protein</th>
              <th rowspan="2" class="text-center">%<br/>PK</th>
              <th rowspan="2" class="text-center">Katalis</th>
              <th rowspan="2" class="text-center">Digestor</th>
              <th rowspan="2" class="text-center">Kjeltec</th>
              <th rowspan="2" class="text-center">Buret</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">Neraca</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 colspan="2"><?php echo indo_datetime($r['mulai_uji'], 'time'); ?></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_tabung_erlenmeyer']; ?></td>
                  <td><?php echo $r['berat_sampel']; ?></td>
                  <td><?php echo $r['volume_titrasi']; ?></td>
                  <td><?php echo $r['volume_blanko']; ?></td>
                  <td><?php echo $r['n_hci']; ?></td>
                  <td><?php echo $r['faktor_14_01']; ?></td>
                  <td><?php echo $r['faktor_konversi_n_kprotein']; ?></td>
                  <td><?php echo $r["kadar_pk"]. ($r["id_sampel"] && $r["id_sampel"] != 0 ? '' : '<br>KS:&nbsp;'.$r['c_range']); ?></td>
                  <td><?php echo $r['katalis']; ?></td>
                  <td><?php echo $r['digestor']; ?></td>
                  <td><?php echo $r['kjeltec']; ?></td>
                  <td><?php echo $r['buret']; ?></td>
                  <td colspan='2'><?php echo indo_datetime($r['selesai_uji'], 'time'); ?></td>
                  <td><?php echo $r['nama_analis']; ?></td>
                  <td><?php echo $r['paraf_analis']; ?></td>
                  <td><?php echo $r['paraf_penyelia']; ?></td>
                  <td colspan='2'><?php echo indo_datetime($r['persetujuan'], 'time'); ?></td>
                  <td><?php echo $r['neraca']; ?></td>
              </tr>
            <?php } ?>
      </tbody>
      <tfoot>

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