159 lines
4.6 KiB
PHP
159 lines
4.6 KiB
PHP
<html>
|
|
<head>
|
|
<title>Transport@RoamEase</title>
|
|
<link rel="shortcut icon" href="../../icon/favicon/favicon.ico" type="image/x-icon" />
|
|
<link rel="icon" href="../../icon/favicon/favicon.ico" type="image/x-icon" />
|
|
<link rel="stylesheet" href="./home.css?version=1" type="text/css" />
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<style>
|
|
.hotel{
|
|
background-color:rgba(355,355,355,0.7);
|
|
width:750px;
|
|
margin:0 auto;
|
|
cursor:pointer;
|
|
transition: all 0.5s ease;
|
|
}
|
|
.hotel:hover{
|
|
transform: scale(1.03);
|
|
}
|
|
.hotel2{
|
|
background-color:rgba(355,355,355,0.7);
|
|
width:750px;
|
|
margin:0 auto;
|
|
cursor:pointer;
|
|
transition: all 0.5s ease;
|
|
}
|
|
.hotel2:hover{
|
|
transform: scale(1.03);
|
|
}
|
|
.searchBox{
|
|
padding: 5%;
|
|
font-size: 16px;
|
|
border: none;
|
|
border-radius: 20px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
width: auto;
|
|
|
|
}
|
|
.searchB{
|
|
padding: 2% 5%;
|
|
font-size: 120%;
|
|
background-color: #003b94;;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
}
|
|
.searchB:hover {
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
|
|
}
|
|
.buttonDiv{
|
|
text-align:center;
|
|
}
|
|
.back{
|
|
margin-top:10%;
|
|
height:90%;
|
|
width:100%;
|
|
}
|
|
table tr td:first-child {
|
|
width: 120px;
|
|
}
|
|
</STYLE>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<?php
|
|
include "../ConnectDB.php";
|
|
// Start the session
|
|
session_start();
|
|
// Check if the user is already logged in
|
|
if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] === true) {
|
|
if(isset($_SESSION['user_type']) && $_SESSION['user_type'] === 'staff'){
|
|
echo "<script type='text/javascript'>
|
|
window.top.location.href = './staff/home.php';
|
|
</script>";
|
|
}
|
|
if(isset($_SESSION['user_type']) && $_SESSION['user_type'] === 'admin'){
|
|
echo "<script type='text/javascript'>
|
|
window.top.location.href = './admin/home.php';
|
|
</script>";
|
|
}
|
|
}
|
|
?>
|
|
|
|
<header>
|
|
<div class="logo">
|
|
<a href="../../index.php"><img src="../../icon/favicon/logo_white.svg" alt="RoamEase"></a>
|
|
</div>
|
|
|
|
<div class="nav-links">
|
|
<?php
|
|
if (isset($_SESSION['loggedin'])) {
|
|
echo '<a href="./process/cart.php">Cart</a>
|
|
<a href="../../login/login.php">Account</a>';
|
|
}
|
|
else {
|
|
echo '<a href="../../login/register.php">Sign up</a>
|
|
<a href="../../login/username.php">Log in</a>';
|
|
}
|
|
?>
|
|
</div>
|
|
</header>
|
|
|
|
<header>
|
|
<nav>
|
|
<a href="stays.php">
|
|
<img src="../../icon/header/stays.svg" alt="Stays">
|
|
</a>
|
|
<a href="#" style="border-color: white;">
|
|
<img src="../../icon/header/transportations.svg" alt="Transportations">
|
|
</a>
|
|
<a href="foods.php">
|
|
<img src="../../icon/header/foods.svg" alt="Foods">
|
|
</a>
|
|
<a href="attractions.php">
|
|
<img src="../../icon/header/attractions.svg" alt="Attractions">
|
|
</a>
|
|
<a href="guiding.php">
|
|
<img src="../../icon/header/guiding.svg" alt="Guiding">
|
|
</a>
|
|
<a href="plans.php">
|
|
<img src="../../icon/header/plans.svg" alt="Plans">
|
|
</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<div id="pageContainer" style="display: block;">
|
|
<br>
|
|
<a href="flight.php" style="text-decoration:none;"><div class="hotel" style="color:white; text-align:center; background-image:url(../../img/transport/6.png);">
|
|
<p style="text-align:center;"><i>Travel by Plane</i>
|
|
</div></a><br>
|
|
<a href="railway.php" style="text-decoration:none;"><div class="hotel" style=" color:white; text-align:center; background-image:url(../../img/transport/8.png);">
|
|
<p style="text-align:center;"><i>Travel by Railway</i>
|
|
</div></a>
|
|
<br><br>
|
|
</button>
|
|
</div>
|
|
<div id="pageButtons" class="buttonDiv"></div>
|
|
|
|
<br><br><br>
|
|
|
|
<footer>
|
|
<div class="logo">
|
|
<a href="../../index.php"><img src="../../icon/favicon/textlogo.svg" alt="RoamEase" height="50px"></a>
|
|
<p style="font-size:10%;">©2023 COMP3013 Group10</p>
|
|
</div>
|
|
|
|
<div class="nav-links" style="font-size: 80%;">
|
|
<a href="../aboutus.php" style="color: white; margin: 0 10px;">About us</a>
|
|
<a href="../aboutus.php" style="color: white; margin: 0 10px;">Privacy Policy</a>
|
|
<a href="../aboutus.php" style="color: white; margin: 0 10px;">Terms For Usage</a>
|
|
</div>
|
|
|
|
</footer>
|
|
</html>
|