<?php
$this->load->view('includes/header.php');
?>


<?php
if ( ! empty($prev))
	{
?>


<?php
	}
else
{
echo '<font class="title">'.$menu_path.'</font>';
echo '<br>';
			/* Display system message */
			$this->fungsi->disp_sys_msg();
			echo validation_errors('<p class="field_error">', '</p>');
?>
<fieldset>
<legend>APPROVED ANALYSIS PURCHASE USED OIL</legend>
<form name="form1" method="post" action="<?php echo $form_action ?>" id="form1">
  <table width="100%" border="0" cellspacing="1" cellpadding="1">
    <tr>
      <td width="16%"><strong>BA Number</strong></td>
      <td width="1%">:</td>
      <td width="36%"><?php echo set_value('idba', isset($default['idba']) ? $default['idba'] : ''); ?>
      <input name="idqa" type="hidden" id="idqa" size="30" maxlength="50" value="<?php echo set_value('idqa', isset($default['idqa']) ? $default['idqa'] : ''); ?>"  />
       <input name="idba" type="hidden" id="idba" size="30" maxlength="50" value="<?php echo set_value('idba', isset($default['idba']) ? $default['idba'] : ''); ?>"  />
      <input name="year" type="hidden" id="year" size="30" maxlength="50" value="<?php echo set_value('year', isset($default['year']) ? $default['year'] : ''); ?>"  /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>Kode Sampel</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>Volume Stok</td>
      <td>:</td>
      <td><?php echo number_format($this->fungsi->get_stock_bal($this->session->userdata('idcab'))); ?>
        (L)</td>
    </tr>
    <tr>
      <td>1. Test Bahan Kimia</td>
      <td>:</td>
      <td><?php echo set_value('qctbk', isset($default['qctbk']) ? $default['qctbk'] : ''); ?></td>
      <td>Drain / Adjustment</td>
      <td>:</td>
      <td><?php echo set_value('adj', isset($default['adj']) ? $default['adj'] : ''); ?>
        (L)
        <input name="adj" type="hidden" id="adj" size="30" maxlength="50" value="<?php echo set_value('adj', isset($default['adj']) ? $default['adj'] : ''); ?>"  /></td>
    </tr>
   

<tr>
  <td>2. kadar Pencemaran</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>Volume Total</td>
  <td>:</td>
  <td><?php echo set_value('scrap', isset($default['scrap']) ? $default['scrap'] : ''); ?>
    (L)</td>
</tr>

    <tr>
      <td>- Air</td>
      <td>:</td>
      <td><?php echo set_value('qcair', isset($default['qcair']) ? $default['qcair'] : ''); ?></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td >- B. Bakar </td>
      <td>:</td>
      <td><?php echo set_value('qcbakar', isset($default['qcbakar']) ? $default['qcbakar'] : ''); ?></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td >- Residu</td>
      <td>:</td>
      <td><?php echo set_value('qcresidu', isset($default['qcresidu']) ? $default['qcresidu'] : ''); ?></td>
      <td >Analisis By</td>
      <td>:</td>
      <td><?php echo set_value('addby', isset($default['addby']) ? $default['addby'] : ''); ?></td>
    </tr>
    <tr>
      <td>3. Berat Jenis</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td >Date</td>
      <td>:</td>
      <td><?php echo set_value('adddate', isset($default['adddate']) ? $default['adddate'] : ''); ?></td>
    </tr>
    <tr>
      <td>- T</td>
      <td>:</td>
      <td><?php echo set_value('qct', isset($default['qct']) ? $default['qct'] : ''); ?></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>Information Status</td>
      <td>:</td>
      <td><?php echo set_value('inf', isset($default['inf']) ? $default['inf'] : ''); ?></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td width="19%">&nbsp;</td>
      <td width="1%">&nbsp;</td>
      <td width="27%">&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="APPROVE" class="button" /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
   
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
</form>



 <?php
}
if ( ! empty($link))
	{
		echo '<p id="bottom_link">';
		foreach($link as $links)
		{
			echo $links . ' ';
		}
		echo '</p>';
	}
$this->load->view('includes/footer.php');
	?>

