<style type="text/css">
			  .width-td{width: 100px;}

			  .table > thead > tr > th {
			     vertical-align: middle;
			     text-align: center;
			  }
			  .table > tbody > tr > td {
			     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 rowspan="2" class="text-center">No Sampel</th>
				<th rowspan="2" class="text-center">Abs Standar</th>
				<th rowspan="2" class="text-center">Abs Sampel</th>
				<th rowspan="2" class="text-center">sampel yang ditimbang (mg)</th>
				<th rowspan="2" class="text-center">Volume Larutan Induk (mL)</th>
				<th rowspan="2" class="text-center">Volume aliquot sampel (mL)</th>
				<th rowspan="2" class="text-center">mg sampel dalam aliquot</th>
				<th width="150px" rowspan="2" class="text-center">% Urea</th>
	  	</tr>
		</thead>
		<tbody id="tabel_uji">
	    <?php $z=1; foreach ($data as $r) { ?>
	      <tr class="text-center">
	        <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 ($r["id_sampel"] && $r["id_sampel"] != 0 ? nomor_id($r["id_sampel"]) : $r['kontrol_sampel']); ?></td>
					<td><?php echo $r["abs_standart"]; ?></td>
					<td><?php echo $r["abs_sampel"]; ?></td>
					<td><?php echo $r["sampel_yang_ditimbang"]; ?></td>
					<td><?php echo $r["volume_larutan_induk"]; ?></td>
					<td><?php echo $r["volume_alikuot_sampel"]; ?></td>
					<td><?php echo $r["mg_sampel_dalam_alikuot"]; ?></td>
					<td class="text-center"><?php echo $r["kadar_ur"]. ($r["id_sampel"] && $r["id_sampel"] != 0 ? '' : '<br>KS: '.$r['c_range']); ?></td>
	      </tr>
	    <?php } ?>
		</tbody>
		<tfoot>

		</tfoot>
	</table>

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