<?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">Kode Krusibel Porselen</th>
				<th rowspan="2" class="text-center">Berat Sampel (gram)</th>
				<th rowspan="2" class="text-center">V Indukan (mL)</th>
				<th rowspan="2" class="text-center">V Labu (mL)</th>
				<th rowspan="2" class="text-center">V Pipet (mL)</th>
				<th rowspan="2" class="text-center">Abs (Y)</th>
				<th rowspan="2" class="text-center">Intercept (a)</th>
				<th rowspan="2" class="text-center">Slope (b)</th>
				<th rowspan="2" class="text-center">Konsentrasi Sampel (ppm)</th>
				<th style="width: 120px;" rowspan="2" class="text-center">% Ca</th>
	  	</tr>
		</thead>
		<tbody id="tabel_uji" class="text-center">
	    <?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'] ? $r['id_kadar'] : 0); ?>" onchange="onCheck(<?php echo ($r['id_kadar'] ? $r['id_kadar'] : 0); ?>);" value="<?php echo $r['id_kadar']; ?>">
						<!-- <input type="hidden" name="kontrol_sampel[]" value="<?php echo $r['kontrol_sampel']; ?>"> -->
	        </td>
			<td><?php 
				if(is_null($r['id_sampel']) && $r['id_sampel'] == 0){
					echo $r["kontrol_sampel"];
				}else{
					echo nomor_id($r["id_sampel"]);
				}
			 ?>
			</td>
					<td><?php echo $r["kode_krusibel_porselen"]; ?></td>
					<td><?php echo $r["berat_sampel"]; ?></td>
					<td><?php echo $r["v_indukan"]; ?></td>
					<td><?php echo $r["v_labu"]; ?></td>
					<td><?php echo $r["v_pipet"]; ?></td>
					<td><?php echo $r["abs"]; ?></td>
					<td><?php echo $r["intercept"]; ?></td>
					<td><?php echo $r["slope"]; ?></td>
					<td><?php echo $r["konsentrasi_sampel"]; ?></td>
					<td><?php echo $r["kadar_ca"]. ($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);?>
