-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanage2.html
78 lines (73 loc) · 3.11 KB
/
manage2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PSSCMUSM Management System - Register Student</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!--Header with title and PSSCMUSM logo-->
<header>
<div class="logo">
<img src="images/logo.png" alt="Logo">
</div>
<h1>PSSCMUSM Management System</h1>
</header>
<div class="container">
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="anr.html">Attendance & Records</a></li>
<li><a href="sdm.html"class="active">Student Data Management</a></li>
<li><a href="visual.html">Data Visualization</a></li>
</ul>
<button class="logout-btn">Logout</button>
</nav>
</div>
<!-- Navigation text -->
<div class="navigation-text">
Student Data Management > Student List > Register Student
</div>
<div class="student-details-container">
<form id="studentForm" action="process_registration.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<label for="fullName">Full Name as in IC</label>
<input type="text" id="fullName" name="fullName" oninput="this.value = this.value.toUpperCase()" required>
</div>
<div class="form-group inline">
<label for="matricID">Matric ID</label>
<input type="text" id="matricID" name="matricID" maxlength="10" required>
<label for="gender">Gender</label>
<select id="gender" name="gender" required>
<option value="">Select Gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
</select>
</div>
<div class="form-group">
<label for="icNumber">IC Number:</label>
<input type="text" id="icNumber" name="icNumber" placeholder="Enter IC Number" maxlength="12">
</div>
<div class="form-group">
<label for="school">School</label>
<input type="text" id="school" name="school" oninput="this.value = this.value.toUpperCase()" required>
</div>
<div class="form-group">
<label for="image">Image (.png format)</label>
<input type="file" id="image" name="image" accept=".png" required>
</div>
<button type="submit" class="submit-btn">Submit</button>
</form>
</div>
<!--Referring to external JavaScript file-->
<script src="script.js" defer></script>
<script>
// Add event listener to the logout button
document.querySelector('.logout-btn').addEventListener('click', function() {
// Redirect to login.html
window.location.href = 'login.html';
});
</script>
</body>
</html>