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

$(function() {
$( "#tanggal_kunjungan" ).datepicker({
changeMonth: true, // menampilkan dropdown untuk ganti bulan
changeYear: true // menampilkan dropdown untuk ganti Tahun
});
$( "#tanggal_kunjungan" ).datepicker({ altFormat: 'yy-mm-dd' });
$( "#tanggal_kunjungan" ).change(function() {
$( "#tanggal_kunjungan" ).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>



<?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>Nama Pengunjung</td>
        <td>:</td>
        <td><input type="text" name="nama_pengunjung" size="20" value="<?php ?>" id="nama_pengunjung" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Alamat</td>
        <td>:</td>
        <td><textarea name="alamat" cols="30" rows="5"><?php echo set_value('alamat', isset($default['alamat']) ? $default['alamat'] : ''); ?></textarea></td>
        <td >&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Nama Perusahaan</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>Nama Orang Yang Dikunjungi</td>
        <td>:</td>
        <td><input type="text" name="nama_yang_dikunjung" size="20" value="<?php ?>" id="nama_yang_dikunjung" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Tujuan Kunjungan</td>
        <td>:</td>
        <td><input type="text" name="tujuan_kunjungan" size="40" value="<?php ?>" id="tujuan_kunjungan" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Sudah Janji</td>
        <td>:</td>
        <td><select name="janji">
          <option value="1" selected="selected">Ya</option>
          <option value="0">Tidak</option>
          </select>
        </td>
        <td width="19%">&nbsp;</td>
        <td width="1%">&nbsp;</td>
        <td width="27%">&nbsp;</td>
      </tr>
      <tr>
        <td>Tanggal</td>
        <td>:</td>
        <td><input type="text" name="tanggal_kunjungan" id="tanggal_kunjungan" size="10" value="<?php echo date('d.m.Y'); ?>" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Jumlah Pengunjung</td>
        <td>:</td>
        <td><input type="text" name="jumlah_pengunjung" size="20" value="<?php ?>" id="jumlah_pengunjung" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>No.Polisi Kendaraan</td>
        <td>:</td>
        <td><input type="text" name="no_polis" size="20" value="<?php ?>" id="no_polis" /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>No.Kartu Pengunjung</td>
        <td>:</td>
        <td><input type="text" name="no_kartu_pengunjung" size="20" value="<?php ?>" id="no_kartu_pengunjung" /></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>Jam Keluar</td>
        <td>:</td>
        <td><input type="time" name="jam_keluar" size="15" value="<?php ?>" id="jam_keluar" /></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');
	?>

