<?php
include_once('inc.function.php');

$PAX = $_SESSION['PAX'];

$MESSAGE_SESSION_PAX_FAILURE =   '<blockquote>
                      <h4>
                          <div class="alert alert-danger" role="alert"><span class="glyphicon glyphicon-remove-sign"></span> Sorry, your session maybe expired please reselect appropriate date</div>
                      </h4>
                      <br>
                      <br>
                    </blockquote>';

if(empty($_SESSION['PAX'])) {
    $_SESSION['MESSAGE'] = $MESSAGE_SESSION_PAX_FAILURE;
    header('Location: index.php');
    die();
}

include_once('confdb.php');
include_once('db.functions.php');
include_once('header.php');

if($PAX > 4000)
{
    $MESSAGE_FAILURE_PAX =   '<blockquote>
                      <h4>
                          <div class="alert alert-danger" role="alert"><span class="glyphicon glyphicon-remove-sign"></span> Sorry, there is no hall that can occupy this capacity, please select several halls from the list below to facilitate the amount of pax you require. Please contact our sales team at +603-88876000 or email sales@picc.com.my</div>
                      </h4>
                      <br>
                      <br>
                    </blockquote>';
    $_SESSION['MESSAGE'] = $MESSAGE_FAILURE_PAX;
}

$START_DATE = $_SESSION['START_DATE'];
$END_DATE = $_SESSION['END_DATE'];

?>

   <!-- 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="#step-2" type="button" class="btn btn-warning btn-circle">2</a>
                  <p>Venue Booking</p>
              </div>
              <div class="stepwizard-step">
                  <a href="#step-3" type="button" class="btn btn-danger btn-circle" disabled="disabled">3</a>
                  <p>Event Detail</p>
              </div>
              <div class="stepwizard-step">
                  <a href="#step-4" type="button" class="btn btn-danger btn-circle" disabled="disabled">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="40" aria-valuemin="0" aria-valuemax="100" style="width:30%">
          40%
        </div>
      </div>

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

        <div class="row setup-content" id="step-2">
            <div class="col-xs-12">
                <div class="col-md-12">
                    <h3> Step 2: Venue Booking</h3>
                    <br>
                    <?php include_once('item_clicked.php'); ?>
                    <br>
                    <?php include_once('item.php'); ?>
                </div>
            </div>
        </div>


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

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