Example #1
0
        $result = selectCustomer();
        $_SESSION["User"] = $result;
        $_SESSION["Email"] = $_POST['SignInEmail'];
        if ($result) {
            printNavbar($result);
            printAlert("success", "Sign In Successfully!", "index.php");
        } else {
            printNavbar($result);
            printAlert("danger", "Invalid email or password!", "index.php");
        }
    } else {
        $result = $_SESSION["User"];
        printNavbar($result);
    }
} else {
    printNavbar(false);
}
print '</div>';
if (!empty($_GET['StartDate']) and !empty($_GET['EndDate'])) {
    $d1 = DateTime::createFromFormat('m/d/Y', $_GET['StartDate']);
    $d2 = DateTime::createFromFormat('m/d/Y', $_GET['EndDate']);
    if (!$d1 || !$d2) {
        printAlert("danger", "Not Valid Date!", "");
        exit;
    }
    if (strtotime($_GET['StartDate']) > strtotime($_GET['EndDate'])) {
        printAlert("danger", "Check In Date shouldn't be more than Check Out Date", "");
        exit;
    }
    $today = date("m/d/Y");
    $limit = date("m/d/Y", strtotime("+30 day", strtotime($today)));
Example #2
0
<?php

/*
 * Vivo Applications
 *
 * PHP for the playground page.
 */
include "global.php";
ensure_logged_in();
$description = "Hone your cryptography skills to become the very best!";
$keywords = "crypto, vivo, applications, training";
$cssfiles = ["styles/global.css", "styles/playground.css"];
$jsfiles = ["scripts/global.js", "scripts/playground.js"];
printHeader("Playground | Crypto", $description, $keywords, $cssfiles, $jsfiles);
printNavbar();
?>

<div id="main_content">
    <h1>Playground</h1>
    <div class="cryptoGame">
			<div id="leftColumn">
				<div class="tabs">
					<div class="tab-list">
						<ol>
							
							<button type="button" id="challenge_one" class="tab_active">
							<li id="tab_challenge_one">
							Challenge One
							</li>
							</button>
							
Example #3
0
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>
    <!-- Main jumbotron for a primary marketing message or call to action -->
        <?php 
include "../common/process_DB.php";
if (!isset($_SESSION["User"])) {
    printAlert("danger", "You haven't sign in yet!", "index.php");
    exit;
}
$result = $_SESSION["User"];
printNavbar($result);
print '</div>';
if (isset($_POST['Delete'])) {
    $suc = deleteBooking($_SESSION["Email"], $_POST['HotelName'], $_POST['HotelAddr'], $_POST['RoomType'], $_POST['RoomQuant'], $_POST['StartDate'], $_POST['EndDate']);
    if ($suc) {
        printAlert("success", "Deleted", "index.php");
    } else {
        printAlert("failure", "Failed", "index.php");
    }
}
$userEmail = $_SESSION["Email"];
$userName = $_SESSION["User"];
?>
        <div class="container theme-showcase" role="main">
          <div class="jumbotron">
            <div class="container"><div class="panel-group" role="tablist">