<?php
include_once('inc.function.php');
include_once('confdb.php');
include_once('header.php');
include_once('db.functions.php');
//$result3 = mysqli_query($con,"SELECT * FROM config_countries ORDER BY COUNTRY_NAME");
//$result4 = mysqli_query($con,"SELECT * FROM config_countries ORDER BY COUNTRY_NAME");
?>

   <!-- Begin page content -->
    <div class="container">
      <div class="page-header">
        <h1><img src='img/logo.jpg'/>&nbsp ONLINE BOOKING</h1>
      </div>
      <!-- CONTENT STARTS HERE -->
      <div class="stepwizard">
          <div class="stepwizard-row setup-panel">
              <div class="stepwizard-step">
                  <a href="index.php" type="button" class="btn btn-success btn-circle">1</a>
                  <p>Venue Search</p>
              </div>
              <div class="stepwizard-step">
                  <a href="booking.php" type="button" class="btn btn-success btn-circle">2</a>
                  <p>Venue Booking</p>
              </div>
              <div class="stepwizard-step">
                  <a href="booking_event.php" type="button" class="btn btn-success btn-circle">3</a>
                  <p>Event Detail</p>
              </div>
              <div class="stepwizard-step">
                  <a href="#step-4" type="button" class="btn btn-warning btn-circle">4</a>
                  <p>Contact Info</p>
              </div>
              <div class="stepwizard-step">
                  <a href="#step-5" type="button" class="btn btn-danger btn-circle" disabled="disabled">5</a>
                  <p>Mailing Address</p>
              </div>
              <div class="stepwizard-step">
                  <a href="#step-6" type="button" class="btn btn-danger btn-circle" disabled="disabled">6</a>
                  <p>Booking Submission</p>
              </div>
          </div>
      </div>

      <div class="progress">
        <div class="progress-bar progress-bar-striped progress-bar-success active" role="progressbar"
        aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width:60%">
          80%
        </div>
      </div>

       <?php if(!empty($_SESSION['MESSAGE'])) { echo $_SESSION['MESSAGE'].'<br>';  unset($_SESSION['MESSAGE']); } ?>

        <div class="row setup-content" id="step-4">
            <div class="col-xs-12">
                <div class="col-md-12">
                    <h3> Step 4: Contact Information</h3>
                      <form role="form" method="POST" action="booking_contact_process.php"> 

                      <div class="well">
                        <div class="form-group">
                          <label for="TYPE_CUSTOMER">You are representing: </label>
                              <label class="radio-inline">
                                  <input type="radio" name="TYPE_CUSTOMER" value="1" <?php if($_SESSION['TYPE_CUSTOMER'] == '1' || empty($_SESSION['TYPE_CUSTOMER'])) { echo 'checked'; } ?>> Individual
                              </label>
                              <label class="radio-inline">
                                  <input type="radio" name="TYPE_CUSTOMER" value="2" <?php if($_SESSION['TYPE_CUSTOMER'] == '2') { echo 'checked'; }  ?>> Company
                              </label>
                          <p class="text-danger"><small>* required.</small></p>
                        </div>
                       </div>

                      <div class="well">
                        <div id="registration-form">
                        <div class="form-group">
                          <label for="EMAIL">Email:</label>
                          <input type="email" class="form-control" name="CLIENT_EMAIL" id="CLIENT_EMAIL" value = "<?php echo $_SESSION['CLIENT_EMAIL']; ?>" required>
                          <p class="text-danger"><small>* required.</small></p>
                          
                        </div>
                        </div>
                      </div>

                      <button type="submit" class="btn btn-primary btn-lg pull-right">Next</button>
                      
                      <!--<span id="user-result"></span>-->

                    </form>
 
                </div>
            </div>
        </div>

      <!-- CONTENT ENDS HERE -->
    </div>

<?php include_once('footer.php'); ?>