-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccept_history.php
36 lines (31 loc) · 1.01 KB
/
accept_history.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
include 'access.php';
// Start the session
session_start();
// Check if the user is logged in and has citizen privileges
if (!isset($_SESSION['user_id']) || $_SESSION['user_role'] !== 'citizen') {
// Redirect to login page or display an error message
header("Location: demo.php?block=1");
exit();
}
$user_id = $_SESSION['user_id'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="cit_ann.css">
<title>Accepted Announcements</title>
</head>
<body>
<div class="announcement">
<h1>Accepted Announcements</h1>
<div id="announcementsContainer">
<!-- The accepted announcements will be populated dynamically using JavaScript -->
</div>
</div>
<button onclick="window.location.href = 'citizen.php';" class="action-button">GO BACK</button>
<script src="accept_history.js"></script>
</body>
</html>