-
Notifications
You must be signed in to change notification settings - Fork 0
/
getProfile.jsp
307 lines (266 loc) · 13.7 KB
/
getProfile.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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<%--
Document : profile
Created on : Jun 25, 2017, 8:33:43 PM
Author : sreekanth kasani ')
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>::profile::</title>
<link type="text/css" rel="stylesheet" href="profile.css">
<link href='http://fonts.googleapis.com/css?family=Rokkitt:400,700|Lato:400,300' rel='stylesheet' type='text/css'>
<style>
b{
font-family: cursive;
font-size: 23px;
}
</style>
</head>
<body>
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.sql.DriverManager.*" %>
<%
String refno = null;
if ((request.getParameter("refno")).equals(null)) {
response.sendRedirect("error.jsp");
return;
} else {
refno = request.getParameter("refno").toString();
}
String query;
Statement st;
PreparedStatement ps;
Connection conn;
ResultSet rs = null;
Class.forName("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/scms", "root", "root");
st = conn.createStatement();
%>
<%
query = "select * from personalDetails where admission_no = '" + refno + "'";
rs = st.executeQuery(query);
rs.next();
%>
<div id="cv" class="instaFade">
<div class="mainDetails">
<div id="headshot" class="quickFade">
<img src="headshot.jpg" alt="<% String n = rs.getString("Name");%><%= n %>" />
</div>
<div id="name">
<h1 class="quickFade delayTwo"><%= n%></h1>
<h4 class="quickFade delayThree">refno:<%String h = rs.getString("admission_no");%><%= h%></h4>
<h4 class="quickFade delayThree">a <%String b = rs.getString("Branch");%><%= b%> Undergraduate </h4>
</div>
<div id="contactDetails" class="quickFade delayFour">
<ul>
<%String e = rs.getString("email");%>
<li>e : <a href="mailto:<%= e%>" target="_blank"><%= e%></a></li>
<li>m : <%String m = rs.getString("Contact");%> <%= m%> </li>
<li>dob : <%String dob = rs.getString("D_O_B");%> <%= dob%> </li>
</ul>
</div>
<div class="clear"></div>
</div>
<div id="mainArea" class="quickFade delayFive">
<section>
<article>
<div class="sectionTitle">
<h1>Personal Details</h1>
</div>
<div class="sectionContent">
<p><b>Name</b> : <%= n%></p>
<p><b>Father name</b> : <%String fn = rs.getString("Father_Name");%> <%= fn%></p>
<p><b>Mother name</b> : <%String mn = rs.getString("Mother_Name");%> <%= mn%></p>
<p><b>Address</b> : <%String addr = rs.getString("Address");%> <%= addr%></p>
<p><b>contact no.</b> : <%= m%></p>
<p><b>email</b> : <%= e%></p>
</div>
</article>
<div class="clear"></div>
</section>
<%
query = "select * from academicPerformance where admission_no = '" + refno + "'";
rs = st.executeQuery(query);
rs.next();
%>
<section>
<div class="sectionTitle">
<h1>Academic performance</h1>
</div>
<div class="sectionContent">
<article>
<h2>First Year</h2>
<%String Isem = rs.getString("Iy_Isem"); %>
<%String IIsem = rs.getString("Iy_IIsem");%>
<p> I semester : <%= Isem%> II semester : <%= IIsem%></p>
</article>
<article>
<h2>Second Year</h2>
<% Isem = rs.getString("IIy_Isem"); %>
<% IIsem = rs.getString("IIy_IIsem");%>
<p> I semester : <%= Isem%> II semester : <%= IIsem%> </p>
</article>
<article>
<h2>Third Year</h2>
<% Isem = rs.getString("IIIy_Isem"); %>
<% IIsem = rs.getString("IIIy_IIsem");%>
<p> I semester : <%= Isem%> II semester : <%= IIsem%> </p>
</article>
<article>
<h2>Fourth Year</h2>
<% Isem = rs.getString("IVy_Isem"); %>
<% IIsem = rs.getString("IVy_IIsem");%>
<p> I semester : <%= Isem%> II semester : <%= IIsem%> </p>
</article>
</div>
<div class="clear"></div>
</section>
<%
query = "select * from attendance where admission_no = '" + refno + "'";
rs = st.executeQuery(query);
rs.next();
%>
<section>
<div class="sectionTitle">
<h1>Attendance</h1>
</div>
<div class="sectionContent">
<article>
<h2>First Year</h2>
<%Isem = rs.getString("Iy_Isem"); %>
<%IIsem = rs.getString("Iy_IIsem");%>
<p> I semester : <%= Isem%> II semester : <%= IIsem%></p>
</article>
<article>
<h2>Second Year</h2>
<% Isem = rs.getString("IIy_Isem"); %>
<% IIsem = rs.getString("IIy_IIsem");%>
<p> I semester : <%= Isem%> II semester : <%= IIsem%> </p>
</article>
<article>
<h2>Third Year</h2>
<% Isem = rs.getString("IIIy_Isem"); %>
<% IIsem = rs.getString("IIIy_IIsem");%>
<p> I semester : <%= Isem%> II semester : <%= IIsem%> </p>
</article>
<article>
<h2>Fourth Year</h2>
<% Isem = rs.getString("IVy_Isem"); %>
<% IIsem = rs.getString("IVy_IIsem");%>
<p> I semester : <%= Isem%> II semester : <%= IIsem%> </p>
</article>
</div>
<div class="clear"></div>
</section>
<%
query = "select * from achievements where admission_no = '" + refno + "'";
rs = st.executeQuery(query);
rs.next();
%>
<section>
<div class="sectionTitle">
<h1>Achievements</h1>
</div>
<div class="sectionContent">
<h3> Previous Year Education </h3>
<p><b>SSC / Equivalent</b> : <%String ssc = rs.getString("ssc_equivalent");%> <%= ssc%></p>
<p><b>10+2 / Equivalent</b> : <%String inter = rs.getString("inter_equivalent");%> <%= inter%></p>
<p><b>Eamcet Rank</b> : <%String er = rs.getString("Eamcet_Rank");%> <%= er%></p>
<h3> Intrests </h3>
<p><b>Sports</b> : <%String sp = rs.getString("sports");%> <%= sp%></p>
<p><b>Cultural</b> : <%String cul = rs.getString("cultural");%> <%= cul%></p>
<p><b>other</b> : <%String ot = rs.getString("other");%> <%= ot%></p>
</div>
<div class="clear"></div>
</section>
<%
query = "select * from counsellerdetails where admission_no = '" + refno + "'";
rs = st.executeQuery(query);
rs.next();
%>
<section>
<div class="sectionTitle">
<h1>Counseller Details</h1>
</div>
<div class="sectionContent">
<p><b>Counseller name</b> : <%String cn = rs.getString("counseller_name");%> <%= cn%></p>
<p><b>Counseller mail</b> : <%String ce = rs.getString("counseller_email");%> <%= ce%></p>
<p><b>Cunseller mobile</b> : <%String cm = rs.getString("counseller_mobile");%> <%= cm%></p>
</div>
<div class="clear"></div>
</section>
<%
query = "select * from feedetails where admission_no = '" + refno + "'";
rs = st.executeQuery(query);
rs.next();
%>
<section>
<div class="sectionTitle">
<h1>Fee Details</h1>
</div>
<div class="sectionContent">
<article>
<h2>First Year</h2>
<%String fp = rs.getString("Iy_feepaid"); %>
<%String jntu = rs.getString("Iy_jntu");%>
<%String lib = rs.getString("Iy_library"); %>
<%String fd = rs.getString("Iy_feeDue");%>
<p> Fee Paid : <%= fp%> JNTU fee : <%= jntu%> Library : <%= lib%> Fee Due : <%= fd%></p>
</article>
<article>
<h2>Second Year</h2>
<% fp = rs.getString("IIy_feepaid"); %>
<% jntu = rs.getString("IIy_jntu");%>
<% lib = rs.getString("IIy_library"); %>
<% fd = rs.getString("IIy_feeDue");%>
<p> Fee Paid : <%= fp%> JNTU fee : <%= jntu%> Library : <%= lib%> Fee Due : <%= fd%></p>
</article>
<article>
<h2>Third Year</h2>
<% fp = rs.getString("IIIy_feepaid"); %>
<% jntu = rs.getString("IIIy_jntu");%>
<% lib = rs.getString("IIIy_library"); %>
<% fd = rs.getString("IIIy_feeDue");%>
<p> Fee Paid : <%= fp%> JNTU fee : <%= jntu%> Library : <%= lib%> Fee Due : <%= fd%></p>
</article>
<article>
<h2>Fourth Year</h2>
<% fp = rs.getString("IVy_feepaid"); %>
<% jntu = rs.getString("IVy_jntu");%>
<% lib = rs.getString("IVy_library"); %>
<% fd = rs.getString("IVy_feeDue");%>
<p> Fee Paid : <%= fp%> JNTU fee : <%= jntu%> Library : <%= lib%> Fee Due : <%= fd%></p>
</article>
</div>
<div class="clear"></div>
</section>
<%
query = "select * from remarks where admission_no = '" + refno + "'";
rs = st.executeQuery(query);
rs.next();
%>
<section>
<div class="sectionTitle">
<h1> Remarks</h1>
</div>
<div class="sectionContent">
<article>
<h2>Academic remarks</h2>
<% String aremarks = rs.getString("Educational");%>
<p> <%= aremarks%></p>
</article>
<article>
<h2>Behavioural remarks</h2>
<% String bremarks = rs.getString("Behavioural");%>
<p> <%= bremarks%></p>
</article>
</div>
<div class="clear"></div>
</section>
</div>
</div>
</body>
</html>