<?php
$this->load->view('includes/header.php');
?>
<script type="text/javascript">

$(function() {
$( "#adddate" ).datepicker({
changeMonth: true, // menampilkan dropdown untuk ganti bulan
changeYear: true // menampilkan dropdown untuk ganti Tahun
});
$( "#adddate" ).datepicker({ altFormat: 'yy-mm-dd' });
$( "#adddate" ).change(function() {
$( "#adddate" ).datepicker( "option", "dateFormat","dd.mm.yy" );
});
});

</script>

<?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>RECEIVED 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>Purchase Requisition No.</strong></td>
      <td width="1%">:</td>
      <td width="36%"><span class="primary">
      <input type="text" name="prnumb" id="prnumb" value="<?php ?>" size="20" readonly="readonly"/>
      </span>
      <input type="button" name="button3" id="button3" value="..." class="button" onclick="window.open('<?php echo base_url();?>index.php/popup/popup_pr/','popuppage','width=900,height=600,scrollbar=yes,scrollbars=yes,top=100,left=100');" /></td>
      <td><strong>Total PR</strong></td>
      <td>:</td>
      <td><input type="text" name="total" id="total" value="<?php echo set_value('total', isset($default['total']) ? $default['total'] : ''); ?>" size="10" readonly="readonly" />
        (Rp)</td>-->
    </tr>
    <tr>
      <td>Kode Sampel</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>Volume Stok</td>
      <td>:</td>
      <td><input name="vol" type="text" id="vol" size="10" maxlength="50" readonly="readonly" value="<?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><select name="qctbk">
        <option value="-" selected="selected">-</option>
        <option value="+">+</option>
      </select></td>
      <td>Drain / Adjustment</td>
      <td>:</td>
      <td><input name="adj" type="text" id="adj" size="10" maxlength="50" value="<?php echo set_value('adj', isset($default['adj']) ? $default['adj'] : ''); ?>"  />
        (L)</td>
    </tr>
   

<tr>
  <td>2. kadar Pencemaran</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
</tr>

    <tr>
      <td>- Air</td>
      <td>:</td>
      <td><input name="qcair" type="text" id="qcair" size="10" maxlength="50" value="<?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><input name="qcbakar" type="text" id="qcbakar" size="10" maxlength="50" value="<?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><input name="qcresidu" type="text" id="qcresidu" size="10" maxlength="50" value="<?php echo set_value('qcresidu', isset($default['qcresidu']) ? $default['qcresidu'] : ''); ?>"  /></td>
      <td >&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>3. Berat Jenis</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td >&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>- T</td>
      <td>:</td>
      <td><input name="qct" type="text" id="qct" size="10" maxlength="50" value="<?php echo set_value('qct', isset($default['qct']) ? $default['qct'] : ''); ?>"  /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  
    <tr>
      <td>Information Status</td>
      <td>:</td>
      <td><textarea name="inf" cols="30" rows="5"><?php echo set_value('inf', isset($default['inf']) ? $default['inf'] : ''); ?></textarea></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="Submit" 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');
	?>

