コード例 #1
0
ファイル: slt_clip.php プロジェクト: awt95/resource-booker
    }
    // finally
}
// deleteBooking
// Set up inital date
$_SESSION["todaydate"] = date('Ymd');
// Checks if currentweek button has been pressed
// to call setToCurrentWeek function
if (isset($_POST["currentweek"])) {
    setToCurrentWeek();
} elseif (isset($_POST["nextweek"])) {
    setToNextWeek($_POST["nextweek"]);
} elseif (isset($_POST["prevweek"])) {
    setToPreviousWeek($_POST["prevweek"]);
} elseif (isset($_POST["book"])) {
    createBooking($_POST["book"], $conn);
} elseif (isset($_POST["undo"])) {
    deleteBooking($_POST["undo"], $conn);
} else {
    setToCurrentWeek();
}
// else
// Establish the date of each day, store in individual variables
$mondate = $_SESSION["mondate"];
// calculate whole week
$tuedate = findNextDate($mondate);
$weddate = findNextDate($tuedate);
$thudate = findNextDate($weddate);
$fridate = findNextDate($thudate);
?>
  <!-- Form used to change to previous or next week
コード例 #2
0
    //If the user is not registered, send him to the registration page and display a message.
    if (!isset($_SESSION['CustomerId'])) {
        $_SESSION['registerMessage'] = "set";
        header("Location: register.php");
    } else {
        $CustomerId = $_SESSION['CustomerId'];
        $TravelerCount = $_POST['TravelerCount'];
        $TripType = $_POST['TripType'];
        $MyClass = $_POST['MyClass'];
        $Region = $_POST['Region'];
        //store certain information in session variables so they can be displayed on the summary
        $_SESSION['Class'] = $MyClass;
        $_SESSION['TripType'] = $TripType;
        $_SESSION['TravelerCount'] = $TravelerCount;
        //create tables in the database
        createBooking($TripType, $TravelerCount, $PackageName, $CustomerId, $bookingId);
        header("Location: summary.php");
    }
}
?>
<div class="container">
  <div class="row">
  <!--TRAVELPACKAGE SLIDES -->
  	<div class="col-md-4">
  	 <?php 
echo "<h4>" . $PackageName . "</h4>";
?>
      	<div id="myCarousel" class="carousel slide">
          <!-- Indicators -->
          <ol class="carousel-indicators">
      	  <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
コード例 #3
0
ファイル: minibusyhj.php プロジェクト: awt95/resource-booker
    }
    // finally
}
// deleteBooking
// Set up inital date
$_SESSION["todaydate"] = date('Ymd');
// Checks if currentweek button has been pressed
// to call setToCurrentWeek function
if (isset($_POST["currentweek"])) {
    setToCurrentWeek();
} elseif (isset($_POST["nextweek"])) {
    setToNextWeek($_POST["nextweek"]);
} elseif (isset($_POST["prevweek"])) {
    setToPreviousWeek($_POST["prevweek"]);
} elseif (isset($_POST["book"])) {
    createBooking($_POST["book"], $_POST["hiddenbookingdesc"], $conn);
} elseif (isset($_POST["undo"])) {
    deleteBooking($_POST["undo"], $conn);
} else {
    setToCurrentWeek();
}
// else
// Establish the date of each day, store in individual variables
$mondate = $_SESSION["mondate"];
// calculate whole week
$tuedate = findNextDate($mondate);
$weddate = findNextDate($tuedate);
$thudate = findNextDate($weddate);
$fridate = findNextDate($thudate);
?>
  <!-- Form used to change to previous or next week
コード例 #4
0
    }
    // finally
}
// deleteBooking
// Set up inital date
$_SESSION["todaydate"] = date('Ymd');
// Checks if currentweek button has been pressed
// to call setToCurrentWeek function
if (isset($_POST["currentweek"])) {
    setToCurrentWeek();
} elseif (isset($_POST["nextweek"])) {
    setToNextWeek($_POST["nextweek"]);
} elseif (isset($_POST["prevweek"])) {
    setToPreviousWeek($_POST["prevweek"]);
} elseif (isset($_POST["book"])) {
    createBooking($_POST["book"], $_POST["hiddenbookingdesc"], $conn, $_POST["table"]);
} elseif (isset($_POST["undo"])) {
    deleteBooking($_POST["undo"], $conn);
} else {
    setToCurrentWeek();
}
// else
// Establish the date of each day, store in individual variables
$mondate = $_SESSION["mondate"];
// calculate whole week
$tuedate = findNextDate($mondate);
$weddate = findNextDate($tuedate);
$thudate = findNextDate($weddate);
$fridate = findNextDate($thudate);
?>
  <!-- Form used to change to previous or next week