</ul> <ul class="nav navbar-nav navbar-right"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse" name = "future">History</button> <p class="navbar-text"> <a href="future.php" class="navbar-link">Upcoming</a> </p> </ul> </div> </div> </nav> <div class="container"> <?php mb_internal_encoding('UTF-8'); mb_http_output('UTF-8'); include 'sunapeedb.php'; $db = new SunapeeDB(); $db->connect(); if (!empty($_POST['cancel'])) { $flightID = $_POST['cancel']; $userID = $_SESSION["user_id"]; $db->cancel($userID, $flightID); // echo "<script>location.reload(true);</script>"; } $db->getHistory($_SESSION["user_id"]); ?> </div> <!-- /container --> </body> </html>
<?php session_start(); mb_internal_encoding('UTF-8'); mb_http_output('UTF-8'); include 'sunapeedb.php'; $db = new SunapeeDB(); $db->connect(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content=""> <meta name="author" content=""> <!-- <link rel="icon" href="../../favicon.ico"> --> <link rel="icon" href="ATA.jpg"> <title>ATA Reservation System</title> <!-- Bootstrap core CSS --> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <!-- Custom styles for this template --> <link rel="stylesheet" href="./CSS/login.css"> <link rel="stylesheet" href="./CSS/navbar-fixed-top.css"> </head>
<?php session_start(); mb_internal_encoding('UTF-8'); mb_http_output('UTF-8'); include 'sunapeedb.php'; $db = new SunapeeDB(); $db->connect(); //echo $_SESSION["user_type"]; if ($_SESSION["user_type"] == 1) { $flag = 1; } else { if ($_SESSION["user_type"] == 2) { $flag = 2; } else { $flag = $db->isCust($_POST["userName"], $_POST["userPassword"]); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content=""> <meta name="author" content=""> <!-- <link rel="icon" href="../../favicon.ico"> --> <link rel="icon" href="ATA.jpg">
<ul class="nav navbar-nav navbar-right"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse" name = "history">History</button> <p class="navbar-text"> <a href="history.php" class="navbar-link">History</a> </p> </ul> </div> </div> </nav> <div class="container"> <?php mb_internal_encoding('UTF-8'); mb_http_output('UTF-8'); include 'sunapeedb.php'; $db = new SunapeeDB(); $db->connect(); if (!empty($_POST['cancel'])) { $flightID = $_POST['cancel']; $userID = $_SESSION["user_id"]; $db->cancel($userID, $flightID); } $db->getFuture($_SESSION["user_id"]); //$db->disconnect(); ?> </div> <!-- /container --> </body> </html>
<ul class="nav navbar-nav navbar-right"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">Go Back Search</button> <p class="navbar-text"> <a href="function.php" class="navbar-link">Go Back Search</a> </p> </ul> </div> </div> </nav> <div class="container"> <?php mb_internal_encoding('UTF-8'); mb_http_output('UTF-8'); include 'sunapeedb.php'; $db = new SunapeeDB(); $db->connect(); if ($_SESSION["user_type"] == 2) { $db->getList($_POST["retreive"]); // print("<form action='function.php'>"); // print("<button class='btn btn-lg' type='submit'>GO BACK TO SEARCH</button>"); // print("</form>"); } else { // print("<form action='function.php'>"); // print("<button class='btn btn-lg' type='submit'>GO BACK TO SEARCH</button>"); // print("</form>"); } //$db->disconnect(); ?> </div> <!-- /container -->
<ul class="nav navbar-nav navbar-right"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">Go Back</button> <p class="navbar-text"> <a href="function.php" class="navbar-link">Go Back Search</a> </p> </ul> </div> </div> </nav> <div class="container"> <?php mb_internal_encoding('UTF-8'); mb_http_output('UTF-8'); include 'sunapeedb.php'; $db = new SunapeeDB(); $db->connect(); if ($_SESSION["user_type"] == 2) { $db->getPopular($_GET["StartDate"], $_GET["EndDate"]); // print("<form action='function.php'>"); // print("<button class='btn btn-lg' type='submit'>GO BACK TO SEARCH</button>"); // print("</form>"); } else { // print("<form action='function.php'>"); // print("<button class='btn btn-lg' type='submit'>GO BACK TO SEARCH</button>"); // print("</form>"); } // if($db->isCust($_GET["userName"],$_GET["userPassword"])) // {a // $db->get_table("FLIGHT"); // $db->disconnect();
<a href="popular.php" class="navbar-link">Popular Flights</a> </p> </ul> <?php } ?> </div> </div> </nav> <div class="container"> <?php mb_internal_encoding('UTF-8'); mb_http_output('UTF-8'); include 'sunapeedb.php'; $db = new SunapeeDB(); $db->connect(); if ($_SESSION["user_type"] == 1) { $db->getFlight($_GET['leaveCity'], $_GET['arriveCity'], $_GET['startDate'], $_GET['endDate']); // print("<form action='function.php'>"); // print("<button class='btn btn-lg' type='submit'>GO BACK TO SEARCH</button>"); // print("</form>"); } else { if ($_SESSION["user_type"] == 2) { $db->getEmpFlight($_GET['leaveCity'], $_GET['arriveCity'], $_GET['startDate'], $_GET['endDate']); // print("<form action='function.php'>"); // print("<button class='btn btn-lg' type='submit'>GO BACK TO SEARCH</button>"); // print("</form>"); } else { // print("<form action='function.php'>"); // print("<button class='btn btn-lg' type='submit'>GO BACK TO SEARCH</button>");