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

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

</script>

<script type="text/javascript">

$(function() {
$( "#posting" ).datepicker({
changeMonth: true, // menampilkan dropdown untuk ganti bulan
changeYear: true // menampilkan dropdown untuk ganti Tahun
});
$( "#posting" ).datepicker({ altFormat: 'yy-mm-dd' });
$( "#posting" ).change(function() {
$( "#posting" ).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>MANIFEST WGI</legend><form name="form1" method="post" action="<?php echo $form_action ?>" id="form1">
  <table width="100%" border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
      <tr>
        <td width="26%">&nbsp;</td>
        <td width="1%">&nbsp;</td>
        <td width="40%">&nbsp;</td>
        <td width="7%">&nbsp;</td>
        <td width="1%">&nbsp;</td>
        <td width="25%">&nbsp;</td>
      </tr>
      <tr>
        <td>No. Manifest</td>
        <td>:</td>
        <td><input type="text" name="nomnfst" id="nomnfst" size="20" value="<?php echo set_value('nomnfst', isset($default['nomnfst']) ? $default['nomnfst'] : ''); ?>" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td> No. Surat Jalan</td>
        <td>:</td>
        <td><input type="text" name="nosj" id="nosj" size="20" value="<?php echo set_value('nosj', isset($default['nosj']) ? $default['nosj'] : ''); ?>" /></td>
        <td colspan="3" align="center">&nbsp;</td>
      </tr>
      <tr>
        <td> Lokasi</td>
        <td>:</td>
        <td><input type="text" name="lokasi" id="lokasi" size="20" value="<?php echo set_value('lokasi', isset($default['lokasi']) ? $default['lokasi'] : ''); ?>" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <?php /*?><?php
			if($_GET['tipe']=='ISO Tank')
			{
			echo
			'<tr> 
      <td> Seal Number 1 </td>
	  <td>:</td>
      <td><input name="seal1" type="text" id="seal1" size="10" maxlength="50" value="<?php echo set_value('seal1', isset($default['seal1']) ? $default['seal1'] : ''); ?>"  /></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>
			<tr> 
      <td> Seal Number 2 </td>
	  <td>:</td>
      <td><input name="seal2" type="text" id="seal2" size="10" maxlength="50" value="<?php echo set_value('seal2', isset($default['seal2']) ? $default['seal2'] : ''); ?>"  /></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>';
			?>
                         
            <?php
			}
			
			else if($_GET['tipe']=='Truck')
			{
			echo
			'<tr> 
      <td> Seal Number 1 </td>
	  <td>:</td>
      <td><input name="seal1" type="text" id="seal1" size="10" maxlength="50" value="<?php echo set_value('seal1', isset($default['seal1']) ? $default['seal1'] : ''); ?>"  /></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>
			<tr> 
      <td> Seal Number 2 </td>
	  <td>:</td>
      <td><input name="seal2" type="text" id="seal2" size="10" maxlength="50" value="<?php echo set_value('seal2', isset($default['seal2']) ? $default['seal2'] : ''); ?>"  /></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>';
			echo
			'<tr> 
      <td> Seal Number 3 </td>
	  <td>:</td>
      <td><input name="seal3" type="text" id="seal3" size="10" maxlength="50" value="<?php echo set_value('seal3', isset($default['seal3']) ? $default['seal3'] : ''); ?>"  /></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>
	  <tr> 
      <td> Seal Number 4 </td>
	  <td>:</td>
      <td><input name="seal4" type="text" id="seal4" size="10" maxlength="50" value="<?php echo set_value('seal4', isset($default['seal4']) ? $default['seal4'] : ''); ?>"  /></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>';
			}
			else
			{
				echo
			'<tr> 
      <td> Seal Number 1 </td>
	  <td>:</td>
      <td><input name="seal1" type="text" id="seal1" size="10" maxlength="50" value="<?php echo set_value('seal1', isset($default['seal1']) ? $default['seal1'] : ''); ?>"  /></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr><tr> 
      <td> Seal Number 2 </td>
	  <td>:</td>
      <td><input name="seal2" type="text" id="seal2" size="10" maxlength="50" value="<?php echo set_value('seal2', isset($default['seal2']) ? $default['seal2'] : ''); ?>"  /></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>';
			echo
			'<tr> 
      <td> Seal Number 3 </td>
	  <td>:</td>
      <td><input name="seal3" type="text" id="seal3" size="10" maxlength="50" value="<?php echo set_value('seal3', isset($default['seal3']) ? $default['seal3'] : ''); ?>"  /></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>
	  <tr> 
      <td> Seal Number 4 </td>
	  <td>:</td>
      <td><input name="seal4" type="text" id="seal4" size="10" maxlength="50" value="<?php echo set_value('seal4', isset($default['seal4']) ? $default['seal4'] : ''); ?>"  /></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>';
			echo
			'<tr> 
      <td> Seal Number 5 </td>
	  <td>:</td>
      <td><input name="seal5" type="text" id="seal5" size="10" maxlength="50" value="<?php echo set_value('seal5', isset($default['seal5']) ? $default['seal5'] : ''); ?>"  /></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>
			<tr> 
      <td> Seal Number 6 </td>
	  <td>:</td>
      <td><input name="seal6" type="text" id="seal6" size="10" maxlength="50" value="<?php echo set_value('seal6', isset($default['seal6']) ? $default['seal6'] : ''); ?>"  /></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>'
			; }?><?php */?>
      <tr>
        <td>Nama Supir</td>
        <td>:</td>
        <td><input type="text" name="noiso3" id="noiso3" size="20" value="<?php echo set_value('noiso', isset($default['noiso']) ? $default['noiso'] : ''); ?>" /></td>
        <td >&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Informasi</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>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&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>
    </table></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');
	?>

