Skip to content
Snippets Groups Projects
Commit 380e35da authored by Bitha17's avatar Bitha17
Browse files

add templates

parent 2abcb3d0
Branches
Tags
No related merge requests found
<?php
session_start();
ob_start();
if (!isset($_SESSION["user_id"])) {
echo "here";
// User is not authenticated; redirect to login page
header("Location: /app/Views/login/login.php");
ob_end_flush();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRUD Test</title>
<link rel="stylesheet" type="text/css" href="/../../styles/global.css">
<link rel="stylesheet" type="text/css" href="/../../styles/form.css">
<link rel="stylesheet" type="text/css" href="/../../styles/footer.css">
<link rel="stylesheet" type="text/css" href="/../../styles/navbar.css">
</head>
<body>
<!-- Navbar -->
<?php include '../template/navbar.php';?>
<?php include '../template/footer.php';?>
<script defer>
function toggleMenu() {
const navbar = document.querySelector('.navbar ul');
navbar.classList.toggle('show');
}
</script>
<script src="js/script.js"></script>
</body>
</html>
......@@ -3,12 +3,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Purchase Ticket</title>
<link rel="stylesheet" type="text/css" href="/../../styles/global.css">
<link rel="stylesheet" type="text/css" href="/../../styles/form.css">
<link rel="stylesheet" type="text/css" href="/../../styles/footer.css">
<link rel="stylesheet" type="text/css" href="/../../styles/navbar.css">
<!-- Include any CSS styles or external libraries here -->
</head>
<body>
<?php include '../template/navbar.php';?>
<h1>Purchase Ticket</h1>
<!-- Display the ticket details -->
......@@ -26,7 +34,7 @@
<button type="button" id="confirmPurchaseBtn">Confirm Purchase</button>
</form>
<!-- JavaScript code for the confirmation dialog -->
<script>
// Function to show the confirmation dialog
......@@ -42,5 +50,7 @@
</script>
<!-- Include any additional content or messages here -->
<?php include '../template/footer.php';?>
</body>
</html>
<div class="footer">
&copy; <?php echo date("Y"); ?> Ticket Ku. All rights reserved.
</div>
\ No newline at end of file
<div class="navbar">
<div class="navbar-toggle" onclick="toggleMenu()"></div>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Events</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">History</a></li>
<!-- Logout Button -->
<li>
<form method="post" action="/app/router.php">
<button type="submit" name="userAction" value="logout">Logout</button>
</form>
</li>
</ul>
</div>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment