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

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

</script>

<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/css/select2.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/js/select2.min.js"></script>
<script>
  $(document).ready(function() {
      $('#pengirim-security').select2();
  });
</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>IZIN MASUK POS I</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%" height="361" border="0" cellpadding="1" cellspacing="1">
      <tr>
        <td>Jumlah Tamu</td>
        <td>:</td>
        <td><input type="text" name="jumlah_tamu" size="20" value="<?php ?>" id="jumlah_tamu" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Jumlah Barang</td>
        <td>:</td>
        <td><input type="text" name="jumlah_barang" size="20" value="<?php ?>" id="jumlah_barang" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Tamu Dari</td>
        <td>:</td>
        <td><input type="text" name="nama_perusahaan" size="20" value="<?php ?>" id="nama_perusahaan" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Tipe Kendaraan</td>
        <td>:</td>
        <td><select name="type">
          <option value="Container" >Container</option>
          <option value="ISO Tank">ISO Tank</option>
          <option value="Truck" selected="selected">Truck</option>
          </select>
        </td>
        <td width="19%">&nbsp;</td>
        <td width="1%">&nbsp;</td>
        <td width="27%">&nbsp;</td>
      </tr>
      <tr>
        <td>No.Polisi Kendaraan</td>
        <td>:</td>
        <td><input type="text" name="vnumb" size="20" value="<?php ?>" id="vnumb" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Nama Tamu</td>
        <td>:</td>
        <td><input type="text" name="nama_tamu" size="20" value="<?php ?>" id="nama_tamu" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Pendamping Tamu</td>
        <td>:</td>
        <td><input type="text" name="pendamping_tamu" size="20" value="<?php ?>" id="pendamping_tamu" />*PT.WGI</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Tanggal Masuk</td>
        <td>:</td>
        <td><input type="text" name="tanggal_masuk" id="tanggal_masuk" size="10" value="<?php echo date('d.m.Y'); ?>" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Jam Masuk</td>
        <td>:</td>
        <td><input type="time" name="jam_masuk" size="15" value="<?php ?>" id="jam_masuk" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Lama Berkunjung</td>
        <td>:</td>
        <td><input type="text" name="lama_kunjungan" size="10" value="<?php ?>" id="lama_kunjungan" />*jam</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Keperluan</td>
        <td>:</td>
        <td><textarea name="Keperluan" cols="30" rows="5"><?php echo set_value('Keperluan', isset($default['Keperluan']) ? $default['Keperluan'] : ''); ?></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');
	?>

