forked from ankita-and-rohit/StudentPortal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.html
186 lines (160 loc) · 5.88 KB
/
dashboard.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="en">
<head>
<title>Student Dashboard</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Load an icon library -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" >
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>
<style>
body {
background-image: url("{{ url_for('static', filename='missioncollege.jpg') }}");
background-repeat: no-repeat;
background-size: 100%;
background-attachment: fixed;
background-position: center;
}
body {
font-family: Arial, Helvetica, sans-serif;
font-size: medium;
}
* {
box-sizing: border-box
}
/* Style the tab */
.tab {
float: left;
border: 1px solid #ccc;
background-color: #f1f1f1;
width: 30%;
height: 600px;
}
/* Style the buttons inside the tab */
.tab button {
display: block;
background-color: inherit;
color: black;
padding: 22px 16px;
width: 100%;
border: none;
outline: none;
text-align: left;
cursor: pointer;
transition: 0.3s;
font-size: 17px;
}
/* Change background color of buttons on hover */
.tab button:hover {
background-color: #ddd;
}
/* Create an active/current "tab button" class */
.tab button.active {
background-color: #ccc;
}
/* Style the tab content */
.tabcontent {
float: left;
padding: 20px 12px;
border: inherit;
width: 70%;
border-left: none;
height: 600px;
}
/* Center the avatar image inside this container */
.imgcontainer {
text-align: center;
margin: 24px 0 12px 0;
}
/* Avatar image */
img.avatar {
width: 40%;
border-radius: 50%;
}
/* Custom style */
.navbar {
margin-bottom: 1rem;
font-size: medium;
}
.panel>.panel-heading {
background-image: none;
background-color: #038503;
color: white;
;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-success">
<div class="container-fluid">
<h7 class="navbar-brand">Student Dashboard</h7>
<button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#navbarCollapse4">
<span class="navbar-toggler-icon"></span>
</button>
<form class="d-flex ms-auto">
<a href="/">
<button type="button" class="btn btn-outline-light">Logout</button>
</a>
</form>
</div>
</div>
</nav>
<div class="container">
<div class="tab">
<div class="imgcontainer">
<img src="https://www.w3schools.com/howto/img_avatar2.png" alt="Avatar" class="avatar">
</div>
<button class="tablinks" onclick="openCity(event, 'Profile')">Profile</button>
<button class="tablinks" onclick="openCity(event, 'Courses')">Courses</button>
</div>
<div id="Profile" class="tabcontent">
<div class="panel-group">
<div class="panel panel-success">
<div class="panel-heading">Profile Information</div>
<div class="panel-body">
<div class="container-fluid">
<ul class="list-group list-group-flush">
<li class="list-group-item">First Name: {{info[2]}}</li>
<li class="list-group-item">Middle Name: {{info[3]}}</li>
<li class="list-group-item">Last Name: {{info[4]}}</li>
<li class="list-group-item">Date Of Birth: {{info[5]}}</li>
<li class="list-group-item">Home Address: {{info[6]}}</li>
<li class="list-group-item">Email Address: {{info[7]}}</li>
<li class="list-group-item">Phone: {{info[9]}}</li>
<li class="list-group-item">Gender: {{info[10]}}</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<script>
function openCity(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " active";
}
// Get the element with id="defaultOpen" and click on it
document.getElementById("defaultOpen").click();
</script>
</div>
</div>
</body>
</html>