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

	<table class="table table-bordered table-hover table-striped table-td-valign-middle">
		<?php if(!empty($method) && empty($kontrol_sampel)) {?>
			<thead>
				<tr>
					<th colspan="2">Kontrol Sampel:</th>
					<th colspan="2"><?php echo empty($data[0]) ? '' : $data[0]['kontrol_sampel'];?></th>
				</tr>
			</thead>
		<?php } ?>
		<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 Crucible Filter</th>
	      <th rowspan="2" class="text-center">Berat Crucible Filter Kosong (W<sub>1</sub>)</th>
	      <th rowspan="2" class="text-center">Berat Sampel (W)</th>
	      <th rowspan="2" class="text-center">
					Berat Crucible Filter dan Sampel setelah Oven (W<sub>2</sub>)
				</th>
	      <th rowspan="2" class="text-center">% aNDF</th>
				<th rowspan="2" class="text-center">Kode Fibertec</th>
				<th rowspan="2" class="text-center">Jenis Oven</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 id="tabel_uji">
	    <?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_kadar[]" id="id_check<?php echo $r['id_kadar']; ?>" onchange="onCheck(<?php echo $r['id_kadar']; ?>);" value="<?php echo $r['id_kadar']; ?>">
	        </td>
	        <td><?php echo set_indo_date_from_timestemp($r["mulai_uji"]); ?></td>
	        <td><?php echo get_time_from_timestamp($r["mulai_uji"]); ?></td>
	        <td><?php echo ($r["id_sampel"] && $r["id_sampel"] != 0 ? nomor_id($r["id_sampel"]) : $r['kontrol_sampel']); ?></td>
	        <td><?php echo $r["kode_crucible_filter"]; ?></td>
	        <td><?php echo $r["berat_crucible_filter_kosong"]; ?></td>
	        <td><?php echo $r["berat_sampel"]; ?></td>
	        <td><?php echo $r["bcfs"]; ?></td>
			<td><?php echo $r["kadar_andf"]. ($r["id_sampel"] && $r["id_sampel"] != 0 ? '' : '<br>'.$r['c_range']); ?></td>
	        <td><?php echo set_indo_date_from_timestemp($r["selesai_uji"]); ?></td>
	        <td><?php echo get_time_from_timestamp($r["selesai_uji"]); ?></td>
					<td><?php echo $r["kode_fibertic"]; ?></td>
					<td><?php echo $r["jenis_oven"]; ?></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 set_indo_date_from_timestemp($r["persetujuan"]); ?></td>
	        <td><?php echo get_time_from_timestamp($r["persetujuan"]); ?></td>
	        <td><?php echo $r["keterangan"]; ?></td>
	      </tr>
	    <?php } ?>
		</tbody>
		<tfoot>

		</tfoot>
	</table>

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