<?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>OTHER WASTE 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>Date</td>
      <td>:</td>
      <td><input type="text" name="adddate" 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>Buyer</td>
      <td>:</td>
      <td><input type="text" name="supp" id="supp" size="20" value="<?php echo set_value('supp', isset($default['supp']) ? $default['supp'] : ''); ?>" /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>Waste</td>
      <td>:</td>
      <td><span class="primary">
        <input type="text" name="idlimbah" id="idlimbah" size="3" value="<?php ?>"  readonly="readonly" />
        <input type="text" name="namelimb" size="15" value="<?php ?>" id="namelimb" readonly="readonly" />
        </span>
          <input type="button" name="button4" id="button4" value="..." class="button" onclick="window.open('<?php echo base_url();?>index.php/popup/popup_waste/','popuppage','width=900,height=600,scrollbar=yes,scrollbars=yes,top=100,left=100');" /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
   

<tr>
  <td>Invoice No.</td>
  <td>:</td>
  <td><input name="invoice" type="text" id="invoice" size="20" maxlength="50" value="<?php echo set_value('invoice', isset($default['invoice']) ? $default['invoice'] : ''); ?>"  />
      <font class="required">*</font></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'] : ''); ?>"  />
        (Rp)<font class="required">*</font></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
   
    <tr>
      <td>Quantity</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'] : ''); ?>"  onblur="this.value=addCommas(this.value)" /><font class="required">*</font></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>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>&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');
	?>

