
<?php
if (isset($_POST['submit'])){
  $arival   = $_SESSION['from']; 
  $departure = $_SESSION['to'];
  /*$adults = $_SESSION['adults'];
  $child = $_SESSION['child'];*/
  $adults = 1;
  $child = 1;
  $roomid = $_SESSION['roomid'];

 $_SESSION['name']   = $_POST['name'];
 $_SESSION['last']   = $_POST['last'];
 $_SESSION['country']   = $_POST['country'];
 $_SESSION['city']    = $_POST['city'];
 $_SESSION['address'] = $_POST['address'];
 $_SESSION['zip']   = $_POST['zip'];
 $_SESSION['phone']   = $_POST['phone'];
 $_SESSION['email']= $_POST['email'];
 $_SESSION['pass']  = $_POST['pass'];
 $_SESSION['pending']  = 'pending';

  $name   = $_SESSION['name']; 
  $last   = $_SESSION['last'];
  $country= $_SESSION['country'];
  $city   = $_SESSION['city'] ;
  $address =$_SESSION['address'];
  $zip    =  $_SESSION['zip'] ;
  $phone  = $_SESSION['phone'];
  $email  = $_SESSION['email'];
  $password =$_SESSION['pass'];


  $days = dateDiff($arival,$departure);

  
redirect('index.php?view=payment');
}
?>

<div class="container">
  <?php include'../sidebar.php';?>

    <div class="col-xs-12 col-sm-9">
      <!--<div class="jumbotron">-->
        <div class="">
          <div class="panel panel-default">
            <div class="panel-body">  
             
                 <?php //include'navigator.php';?>


					<td valign="top" class="body" style="padding-bottom:10px;">
					<?php
					if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
							echo '<ul class="err">';
							foreach($_SESSION['ERRMSG_ARR'] as $msg) {
								echo '<li>',$msg,'</li>'; 
							}
							echo '</ul>';
							unset($_SESSION['ERRMSG_ARR']);
						}
					?>

					 <form class="form-horizontal well span6" action="index.php?view=info" method="post"  name="personal" style="margin-left:20px">
					 <fieldset >
					 <legend><h2>Personal Details</h2></legend>

					  <div class="form-group">
			            <div class="col-md-8">
			              <label class="col-md-4 control-label" for=
			              "name">FIRST NAME:</label>

			              <div class="col-md-8">
			              	<input name="" type="hidden" value="">
			                <input name="name" type="text" class="form-control input-sm" id="name" />
			              </div>
			            </div>
			          </div>
			            <div class="form-group">
			            <div class="col-md-8">
			              <label class="col-md-4 control-label" for=
			              "last">LAST NAME:</label>

			              <div class="col-md-8">
			                <input name="last" type="text" class="form-control input-sm" id="last" />
			              </div>
			            </div>
			          </div>
			           <div class="form-group">
			            <div class="col-md-8">
			              <label class="col-md-4 control-label" for=
			              "country">COUNTRY:</label>

			              <div class="col-md-8">
			                <input name="country" type="text" class="form-control input-sm" id="country" />
			              </div>
			            </div>
			          </div>
			           <div class="form-group">
			            <div class="col-md-8">
			              <label class="col-md-4 control-label" for=
			              "city">CITY:</label>

			              <div class="col-md-8">
			                <input name="city" type="text" class="form-control input-sm" id="city" />
			              </div>
			            </div>
			          </div>
			           <div class="form-group">
			            <div class="col-md-8">
			              <label class="col-md-4 control-label" for=
			              "address">ADDRESS:</label>

			              <div class="col-md-8">
			                <input name="address" type="text" class="form-control input-sm" id="address" />
			              </div>
			            </div>
			          </div>
			           <div class="form-group">
			            <div class="col-md-8">
			              <label class="col-md-4 control-label" for=
			              "zip">ZIP CODE:</label>

			              <div class="col-md-8">
			                <input name="zip" type="text" class="form-control input-sm" id="zip" />
			              </div>
			            </div>
			          </div>
			           <div class="form-group">
			            <div class="col-md-8">
			              <label class="col-md-4 control-label" for=
			              "phone">PHONE:</label>

			              <div class="col-md-8">
			                <input name="phone" type="text" class="form-control input-sm" id="phone" />
			              </div>
			            </div>
			          </div>
			    
			         
			            <div class="form-group">
			            <div class="col-md-8">
			              <label class="col-md-4 control-label" for=
			              "email">E-MAIL:</label>

			              <div class="col-md-8">
			                <input name="email" type="text" class="form-control input-sm" id="email" />
			              </div>
			            </div>
			       		 </div>
			      
			          <div class="form-group">
			            <div class="col-md-8">
			              <label class="col-md-4 control-label" for=
			              "cemail">CONFRIM E-MAIL:</label>

			              <div class="col-md-8">
			                <input name="cemail" type="text" class="form-control input-sm" id="cemail" />
			              </div>
			            </div>
			          </div>
			          <div class="form-group">
			            <div class="col-md-8">
			              <label class="col-md-4 control-label" for=
			              "password">PASSWORD:</label>

			              <div class="col-md-8">
			                <input name="pass" type="password" class="form-control input-sm" id="password" />
			              </div>
			            </div>
			          </div>

					 </fieldset>
					 &nbsp; &nbsp;
				 <div class="form-group">
			        <div class="col-md-6">
					<p><input type="checkbox" name="condition" value="checkbox" />
					 <small>I Agree the <a class="toggle-modal" href="#logout"><b>TERMS AND CONDITION</b></a> of this Hotel</small>
				<?php require_once 'terms_condition.php';?>
					 <br />
						<img src="captcha_code_file.php?rand=<?php echo rand(); ?>" id='captchaimg' ><a href='javascript: refreshCaptcha();'><img src="<?php echo WEB_ROOT;?>images/refresh.png" alt="refresh" border="0" style="margin-top:5px; margin-left:5px;" /></a>
						<br /><small>If you are a Human Enter the code above here :</small><input id="6_letters_code" name="6_letters_code" type="text" class="form-control input-sm" width="20"></p><br/>
						<div class="col-md-4">
					    	<input name="submit" type="submit" value="Confirm"  class="btn btn-primary" onclick="return personalInfo();"/>
					    </div>
					</div>
					NOTE: 
					We recommend that your password should be at least 6 characters long and should be different from your username.
					Your e-mail address must be valid. We use e-mail for communication purposes (order notifications, etc). Therefore, it is essential to provide a valid e-mail address to be able to use our services correctly.
					All your private data is confidential. We will never sell, exchange or market it in any way. For further information on the responsibilities of both parties, you may refer to us.
			    </div>

					</form>

            </div>
          </div>  
          
        </div>
    <!--  </div>-->
    </div>
    <!--/span--> 
    <!--Sidebar-->

  </div>
  <!--/row-->



