-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5-project_list.html
89 lines (82 loc) · 3.73 KB
/
5-project_list.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!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="5-project_list.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<title>Student Project Management System</title>
</head>
<body>
<div class="container">
<nav>
<ul>
<li><a href="#" class="logo">
<img id="im" src="profile.png" alt="">
<span class="nav-head">Student Project Management System</span>
</a></li>
<li><a href="2-dashboard.html">
<!-- <i class="fas fa-home"></i> -->
<img class="nav-icon" src="Home-button.png" alt="Home">
<span class="nav-item">Home</span>
</a></li>
<li><a href="#" id="return-link">
<img class="nav-icon" src="Return-button.png" alt="Return">
<!-- <i class="fas fa-arrow-left" ></i> -->
<span class="nav-item">Return</span></a></li>
<li><a href="#">
<img class="nav-icon" src="Help-button.png" alt="help">
<!-- <i class="fas fa-question-circle"></i> -->
<span class="nav-item">Help</span></a></li>
<li><a href="1-index.html" class="logout">
<img class="nav-icon" src="Log-out-button.png" alt="Logout">
<!-- <i class="fas fa-sign-out-alt"></i> -->
<span class="nav-item">Logout</span></a></li>
</ul>
</nav>
<section class="main">
<div class="search-container">
<form action="fetch_projects.php" id="bhu" method="GET">
<div class="search">
<!-- <span class="search-icon material-symbols-outlined">search</span> -->
<span><img src="Search_Icon.png" class="nav-icon2" alt="error"></span>
<input type="search" name="query" class="search-input" placeholder="Search">
</div>
</form>
</div>
<div class="project-container">
<table>
<thead>
<tr>
<th>Team Number</th>
<th>Project ID</th>
<th>Project Title</th>
<th>Academic Year</th>
<th>Project Mentor</th>
<th>Action</th>
</tr>
</thead>
<tbody id="project-list">
<!-- Project rows will be injected here by JavaScript -->
</tbody>
</table>
</div>
</section>
</div>
<script>
document.getElementById('return-link').addEventListener('click', function(event) {
event.preventDefault();
window.history.back();
});
// Fetch projects using an AJAX call
fetch('5-project_list.php')
.then(response => response.text())
.then(data => {
document.getElementById('project-list').innerHTML = data;
})
.catch(error => console.error('Error fetching projects:', error));
</script>
</body>
</html>