<?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>OIL PURCHASE</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%"><input name="prnumb" type="text" id="prnumb" size="20" maxlength="20" value="<?php echo set_value('prnumb', isset($default['prnumb']) ? $default['prnumb'] : ''); ?>" readonly="readonly" /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><strong>STB No.</strong></td>
      <td>:</td>
      <td><input name="idstb" type="text" id="idstb" size="20" maxlength="20" value="<?php echo set_value('idstb', isset($default['idstb']) ? $default['idstb'] : ''); ?>" readonly="readonly" /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>Type</td>
      <td>:</td>
      <td><input name="type" readonly='readonly'type="type" id="type" size="20" maxlength="20" value="<?php echo set_value('type', isset($default['type']) ? $default['type'] : ''); ?>"  />
      <input name="txt_idtop" type="hidden" id="txt_idtop" value="<?php echo $idtop; ?>" /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>DO No.</td>
      <td>:</td>
      <td><input name="donumb"readonly='readonly' type="text" id="donumb" size="20" maxlength="50" value="<?php echo set_value('donumb', isset($default['donumb']) ? $default['donumb'] : ''); ?>"  /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
   

<tr>
<td>Date</td>
<td>:</td>
<td><input type="text" name="adddate" readonly='readonly' id="adddate" size="20" value="<?php echo set_value('adddate', isset($default['adddate']) ? $default['adddate'] : ''); ?>" /></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>

    <tr>
      <td>Manifest No.</td>
      <td>:</td>
      <td><label for="mnfst">
        <input name="mnfst" type="text"readonly='readonly' id="mnfst" size="20" maxlength="20" value="<?php echo set_value('mnfst', isset($default['mnfst']) ? $default['mnfst'] : ''); ?>"  />
      </label></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>Purchase Price</td>
      <td>:</td>
      <td><input name="pur" type="text" id="pur" size="10" maxlength="50" value="<?php echo set_value('pur', isset($default['pur']) ? $default['pur'] : ''); ?>"  /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>Fee</td>
      <td>:</td>
      <td><input name="fee" type="text" id="fee" size="10" maxlength="50" value="<?php echo set_value('fee', isset($default['fee']) ? $default['fee'] : ''); ?>"  /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>Volume</td>
      <td>:</td>
      <td><input name="vol" type="text" id="vol" size="10" maxlength="50" value="<?php echo set_value('vol', isset($default['vol']) ? $default['vol'] : ''); ?>"  /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>Invoice No.</td>
      <td>:</td>
      <td><input name="invoice" type="text"readonly='readonly' id="invoice" size="20" maxlength="50" value="<?php echo set_value('invoice', isset($default['invoice']) ? $default['invoice'] : ''); ?>"  /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>Information</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>Reason Cancel</td>
      <td>:</td>
      <td><textarea name="reason" cols="30" rows="5"><?php echo set_value('inf', isset($default['reason']) ? $default['reason'] : ''); ?></textarea></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 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="Cancel OP" 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>
 <br>


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

