Initial Commit
This commit is contained in:
116
indexes/user/modify.php
Normal file
116
indexes/user/modify.php
Normal file
@@ -0,0 +1,116 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>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="./user/home.css?version=1" type="text/css" />
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<SCRIPT src="js/jquery.js" type=text/javascript></SCRIPT>
|
||||
<SCRIPT src="js/jquery.cross-slide.js" type=text/javascript></SCRIPT>
|
||||
<style type=text/css>
|
||||
#rotator {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
|
||||
.body{
|
||||
background: url("modify.jpg");
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
|
||||
</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="home.php"><img src="../icon/favicon/logo_white.svg" alt="RoamEase"></a>
|
||||
</div>
|
||||
|
||||
<div class="nav-links">
|
||||
<a href="#">CNY</a>
|
||||
<a href="#">Search</a>
|
||||
<?php
|
||||
if (isset($_SESSION['loggedin'])) {
|
||||
echo '<a href="#">Cart</a><a href="#">Account</a>';
|
||||
}
|
||||
else {
|
||||
echo '<a href="#">Sign up</a><a href="../login/username.php">Log in</a>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<header>
|
||||
<nav>
|
||||
<a href="#">
|
||||
<img src="../icon/header/stays.svg" alt="Stays">
|
||||
</a>
|
||||
<a href="#">
|
||||
<img src="../icon/header/transportations.svg" alt="Transportations">
|
||||
</a>
|
||||
<a href="#">
|
||||
<img src="../icon/header/foods.svg" alt="Foods">
|
||||
</a>
|
||||
<a href="#">
|
||||
<img src="../icon/header/attractions.svg" alt="Attractions">
|
||||
</a>
|
||||
<a href="#">
|
||||
<img src="../icon/header/guiding.svg" alt="Guiding">
|
||||
</a>
|
||||
</nav>
|
||||
</header>
|
||||
<div style="font-size: 40px; color:black;text-align: center;" >modify the business</div>
|
||||
<table border="1px" align="center">
|
||||
<tr bgcolor="#f0f0f0">
|
||||
<th></th>
|
||||
<th>name</th>
|
||||
<th>delete</th>
|
||||
|
||||
</tr>
|
||||
<tr bgcolor="#f0f0f0">
|
||||
<td>Day 1</td>
|
||||
<td>Hotel AB</td>
|
||||
<th><button>delete</button></th>
|
||||
</tr>
|
||||
<tr bgcolor="#f0f0f0">
|
||||
<td>Day 2</td>
|
||||
<td>Hotel BS</td>
|
||||
<th><button>delete</button></th>
|
||||
</tr>
|
||||
<tr bgcolor="#f0f0f0">
|
||||
<td>Day 3</td>
|
||||
<td>Hotel IS</td>
|
||||
<th><button>delete</button></th>
|
||||
</tr>
|
||||
</table><br>
|
||||
</body>
|
||||
Reference in New Issue
Block a user