-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
90 lines (82 loc) · 2.09 KB
/
main.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
90
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Info-Link Home Page</title>
<link rel="stylesheet" href="assets/css/styes.css">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
header {
background-color: #0e791e;
color: white;
padding: 15px;
text-align: center;
}
.options {
display: flex;
justify-content: center;
margin-top: 20px;
}
select {
padding: 10px;
font-size: 16px;
}
option {
background-color: #3ca26a;
color: #333;
}
.container {
text-align: center;
margin-top: 50px;
}
nav{
margin-top: 20px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<nav>
<img src="assets/images/logo.png" alt="college logo" width="80px">
<ul>
<li><a href="insert.html">INSERT</a></li>
<li><a href="view.php">VIEW</a></li>
<li><a href="delete.html">DELETE</a></li>
<li><a href="update.html">UPDATE</a></li>
<li><a href="fetch_info_view.html">INFO</a></li>
</ul>
</nav>
<header>
<h1>Student Information System</h1>
</header>
<div class="options">
<select onchange="navigate()">
<option value="#" selected disabled>Select Operation here</option>
<option value="insert.html">Insert Student Information</option>
<option value="view.php">View Student Information</option>
<option value="delete.html">Delete Student Information</option>
<option value="update.html">Update Student Information</option>
<option value="info.php">Particular Student Information</option>
</select>
</div>
<div class="container">
<p>Choose an option from the dropdown menu to navigate:</p>
</div>
<script>
function navigate() {
var selectedOption = document.querySelector('select').value;
if (selectedOption !== '#') {
window.location.href = selectedOption;
}
}
</script>
<footer>
</footer>
</body>
</html>