<?php $this->load->view('uji_analis/header_panel', true);?>
<div class="col-sm-5">
	<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 rowspan="2" class="text-center">No Sampel</th>
				<th rowspan="2" class="text-center">Abs</th>
				<th rowspan="2" class="text-center">Af</th>
			</tr>
		</thead>
		<tbody id="tabel_uji">
	    <?php $z=1; foreach ($data as $r) { ?>
	      <tr class="">
	        <td style="width: 50px;" 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 class="text-center"><?php echo ($r["id_sampel"] && $r["id_sampel"] != 0 ? nomor_id($r["id_sampel"]) : $r['kontrol_sampel']); ?></td>
			<td><?php echo $r["abs"]; ?></td>
			<td class="text-center"><?php echo $r["kadar_af"]. ($r["id_sampel"] && $r["id_sampel"] != 0 ? '' : '<br>KS: '.$r['c_range']); ?></td>
			 
	      </tr>
	    <?php } ?>
		</tbody>
		<tfoot>

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