-
Notifications
You must be signed in to change notification settings - Fork 1
/
Editprofile.jsp
234 lines (208 loc) · 12.5 KB
/
Editprofile.jsp
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Dashboard</title>
<link rel="icon" type="image/png" href="img/icons/favicon.ico"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css"/>
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
<link href="css/edit.css" rel="stylesheet">
</head>
<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
String login=(String)session.getAttribute("Status");
if(login==null){
response.sendRedirect("login.jsp");
}
%>
<body>
<div class="jumbotron jumbotron-fluid jumbo">
<div class="container title">
<h1 class="animate__animated animate__fadeInUp">Edit Profile</h1>
</div>
</div>
<!-- Begin Page Content -->
<div class="container-fluid">
<div class="row justify-content-center" style="margin-top: -200px; z-index: 1px; ">
<div class="col-md-8">
<div class="card shadow animate__animated animate__fadeInUp" style="border: none;">
<div class="card-header">
<h4 class="card-title">Edit Profile</h4>
</div>
<div class="card-body">
<form method="POST">
<center><b><u>Student Details</u></b></center>
</br>
<div class="row">
<div class="col-md-6 pr-1">
<div class="form-group">
<label for="firstname"><b>Student Name</b></label>
<input type="text" class="form-control" value="${sessionScope.Name}" disabled>
</div>
</div>
<div class="col-md-6 px-1">
<div class="form-group">
<label for="RollNumber"><b>Roll Number</b></label>
<input type="text" class="form-control" value="${sessionScope.Rollnumber}" disabled>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 pr-1">
<div class="form-group">
<label for="fathername"><b>Fathers Name</b></label>
<input type="text" class="form-control" value="<%=request.getParameter("father")%>">
</div>
</div>
<div class="col-md-6 px-1">
<div class="form-group">
<label for="MothersName"><b>Mothers Name</b></label>
<input type="text" class="form-control" value="<%=request.getParameter("mother")%>">
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 pr-1">
<div class="form-group">
<label for="Clasname"><b>Class</b></label>
<input type="text" class="form-control" value="<%=request.getParameter("division")%>" disabled>
</div>
</div>
<div class="col-md-3 px-1">
<div class="form-group">
<label for="Stream"><b>Stream</b></label>
<input type="text" class="form-control" value="<%=request.getParameter("stream")%>" disabled>
</div>
</div>
<div class="col-md-5 pl-1">
<div class="form-group">
<label for="Lastname"><b>Email ID</b></label>
<input type="email" class="form-control" placeholder="EmailID">
</div>
</div>
</div>
<div class="row">
<div class="col-md-3 pr-1">
<div class="form-group">
<label for="Gender"><b>Gender</b></label>
<input type="text" class="form-control" value="<%=request.getParameter("gender")%>" >
</div>
</div>
<div class="col-md-4 px-1">
<div class="form-group">
<label for="Mobileno"><b>Mob. Number</b></label>
<input type="text" class="form-control" value="<%=request.getParameter("phone")%>" maxlength="10">
</div>
</div>
<div class="col-md-5 px-1">
<div class="form-group">
<label for="DOB"><b>Date Of Birth</b></label>
<input type="date" class="form-control" value="<%=request.getParameter("dob")%>" maxlength="10">
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="Password"><b>Password</b></label>
<input type="text" class="form-control" value="${sessionScope.Password}">
</div>
</div>
<div class="col-md-5 px-1">
<div class="form-group">
<label for="Key"><b>Key ID</b></label>
<input type="text" class="form-control" value="${sessionScope.Special}">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="Address"><b>Address</b></label>
<input type="text" class="form-control" value="<%=request.getParameter("address")%>">
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 pr-1">
<div class="form-group">
<label><b>City</b></label>
<input type="text" class="form-control" value="<%=request.getParameter("city")%>">
</div>
</div>
<div class="col-md-4 px-1">
<div class="form-group">
<label><b>State</b></label>
<input type="text" class="form-control" value="<%=request.getParameter("state")%>">
</div>
</div>
<div class="col-md-4 pl-1">
<div class="form-group">
<label><b>Country</b></label>
<input type="text" class="form-control" value="<%=request.getParameter("country")%>">
</div>
</div>
</div>
<div class="text-right">
<button type="button" class="btn btn-outline-danger" style="outline: none;" data-toggle="modal" data-target="#requestModal">
Send Update Profile Request</button>
</div>
<div class="clearfix"></div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- The Modal -->
<div class="modal fade" id="requestModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Confirm Update Request</h5>
<button class="close" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">Send "Update Request" for the following details to System Admin.</div>
<div class="modal-footer">
<button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
<a class="btn" style="color: white; background-color: red;" data-toggle="modal" data-target="#updateModal" data-dismiss="modal">Send Request</a>
</div>
</div>
</div>
</div>
<!---Send Succesfully Modal-->
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Request Send Sucessfully</h5>
<button class="close" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">Profile will be "Updated" within few days .</div>
<div class="modal-footer">
<a class="btn" style="color: white; background-color: red;" href='/staysafe_new/userDetail'>OK</a>
</div>
</div>
</div>
</div>
</body>
</html>