<style type="text/css">
.table > thead > tr > th {
	vertical-align: middle;
	text-align: center;
}
</style>
<?php $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 Krusibel</th>
			<th rowspan="2" class="text-center">Berat Krusibel (gram) W<sub>2</sub></th>
			<th rowspan="2" class="text-center">Berat Sampel (gram) W</th>
			<th rowspan="2" class="text-center">
				Berat&nbsp;Sampel + Sampel setelah&nbsp;Furnace (gram) W<sub>1</sub>
			</th>
			<th rowspan="2" class="text-center">Kadar Abu (%)</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 colspan="2" class="text-center">Lanjut Uji</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>
			<th class="text-center">Ca</th>
			<th class="text-center">P</th>
		</tr>
		</thead>
		<tbody id="tabel_uji">
		<?php $z=1; foreach ($data as $r) { ?>
		<tr class="">
			<td class="text-center"><?= $this->uri->segment(5) + $z++ ?></td>
			<td class="text-center">
				<input type="checkbox" name="id[]" id="id_check<?= $r['id']; ?>" onchange="onCheck(<?= $r['id']; ?>);" value="<?= $r['id']; ?>">
			</td>
			<td><?= get_str_date2($r["mulai_uji"]); ?></td>
			<td><?= get_str_time($r["mulai_uji"]); ?></td>
			<td><?= ($r["id_sampel"] && $r["id_sampel"] != 0 ? $r['nomor_sampel'] : val_ks($r['kontrol_sampel'])); ?></td>
			<td><?= $r["kode_krusebel"]; ?></td>
			<td><?= $r["berat_krusebel"]; ?></td>
			<td><?= $r["berat_sampel"]; ?></td>
            <td><?= $r["bksf"]; ?></td>
			<td class="text-center"><?= $r["kadar_abu"]. ($r["id_sampel"] && $r["id_sampel"] != 0 ? '' : '<br>KS:&nbsp;'.$r['c_range']); ?></td>
			<td><?= get_str_date2($r["selesai_uji"]); ?></td>
			<td><?= get_str_time($r["selesai_uji"]); ?></td>
			<td><?= $r["nama_analis"]; ?></td>
			<td><?= $r["paraf_analis"]; ?></td>
			<td><?= $r["paraf_penyelia"]; ?></td>
			<td><?= get_str_date2($r["persetujuan"]); ?></td>
			<td><?= get_str_time($r["persetujuan"]); ?></td>
			<td><?= ($r["lanjut_uji_ca"] == 1) ? '√':'-'; ?></td>
			<td><?= ($r["lanjut_uji_p"] == 1) ? '√':'-'; ?></td>
			<td><?= $r["keterangan"]; ?></td>
		</tr>
		<?php } ?>
		</tbody>
		<tfoot>

		</tfoot>
	</table>

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