<?php
	
	session_start();
	include_once('fungsi.php');
	
	if(!isset($_SESSION['user'])){
		header("location: login.php");
	}
	
	$nama= $_SESSION['nama'];
	$alamat= $_SESSION['alamat'];
	$email= $_SESSION['email'];


?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>BUKIT GIBEON</title>
	<link rel="shortcut icon" href="images/inst.png">
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<link href="css/animate.css" rel="stylesheet">
	<link href="css/myStyle.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
	<link rel="stylesheet" href="css/default.css">
	<script src="js/jquery-3.1.1.min.js"></script>
	<script src="js/bootstrap.min.js"></script>
	 <link rel="stylesheet" type="text/css" href="css/stylee.css" />
	 <script src="js/jquery.min.js"></script>
    <script src="js/zebra_datepicker.js"></script>
    <script src="js/bootstrap.min.js"></script> 

    <script>
    $(document).ready(function(){
        $('#datepicker-example7-start').Zebra_DatePicker({
            direction: true,
            pair: $('#datepicker-example7-end')
        });
 
        $('#datepicker-example7-end').Zebra_DatePicker({
            direction: 1
        });
    });
    </script>
</head>

<body background="images/eirene.jpg">
	<?php
		include_once('header.php');
	?>



				
					<div id="wrapper"><br><br><br><br><br>

					<div class="hero">

				<?php
			require_once(dirname(__FILE__	).'/fungsi.php');
			$id_kamar = $_GET['id'];
			$profil  = getProfil();
			?>
			
			
			<form method="POST" action="pemesanan.php?id_kamar=<?= $id_kamar?>" enctype="multipart/form-data">
			
				
				<table>
				<tr>
				<td width="200px">Nama Pengunjung</td>
				<td width="10px">:</td>
				<td><input type="text" name="nama" id="nama" value='<?php echo $nama ?>' readonly </td>
				</tr>
				
				<tr>
				<td>Alamat Pengunjung</td>
				<td>:</td>
				<td><input type="text" name="alamat" id="nama" value='<?php echo $alamat ?>' readonly></td>
				</tr>
				
				<tr>
				<td>Email Pengunjung</td>
				<td>:</td>
				<td><input type="text" name="email" id="nama" value='<?php echo $email ?>' readonly></td>
				</tr>
				
				<tr>
				<td>Jumlah Peserta</td>
				<td>:</td>
				<td><input type="int" name="jumlahpeserta" id="nama" placeholder="maskimal peserta 45 orang" required></td>
				</tr>
				
				
				<tr>
				<td>Tanggal Mulai</td>
				<td>:</td>
				<td width="300px"><input type="date" name="waktumulai" id="datepicker-example7-start" required></td>
				</tr> 
				<tr>
				<td>Tanggal Selesai</td>
				<td>:</td>
				<td><input type="date" name="waktuselesai" id="datepicker-example7-end" required></td>
				</tr>
				</table>
			</p>	
				
			
				
							
                   <input type="submit" name="submit" class="btn btn-info" value="Pesan Sekarang" >
					</form>
			</div>		
		</div>		
		
	
	
	
	<footer class="footer">
			<div class="icon">
				<a href="#" target="_blank"><i class="fa fa-facebook" style="font-size: 20px;"></i></a>
				<a href="#" target="_blank"><i class="fa fa-instagram" style="font-size: 20px;"></i></a>
				<a href="#" target="_blank"><i class="fa fa-twitter" style="font-size: 20px;"></i></a>
				<a href="#" target="_blank"><i class="fa fa-google-plus" style="font-size: 20px;"></i></a>
			</div>
			<p>BUKIT GIBEON</p>
			<p>Sekolah Misi Interdenominasi Gereja</p>
			<hr>
			<p>Copyright &copy All Right Reserved - Kelompok PA1-1617-D3TI08 - 2016</p>
	</footer>
	
</html>