-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtviewtachievements2.jsp
158 lines (140 loc) · 7.67 KB
/
tviewtachievements2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Development of Online College Year Book</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
</head>
<body>
<!-- Main Header -->
<header class="main-header">
<center><h1>Development of Online College Year Book</h1></center>
</header>
<!-- Dropdown Navbar -->
<nav>
<ul>
<li><a href="teacherhome.jsp">Home</a></li>
<li><a href="tupdateprofile.jsp">Update Profile</a></li>
<li><a href="tviewachievements.jsp" class="active">View Achievements</a></li>
<li><a href="logout.jsp">Logout</a></li>
</ul>
</nav>
<!-- Login Form -->
<%@page import="java.sql.*"%>
<%@ include file="connect.jsp" %>
<%@ page session="true" %>
<%
String year = request.getParameter("year");
String branch = request.getParameter("branch");
String username = request.getParameter("username");
String sql="select * from teacherevents where yr = '"+year+"' and username = '"+username+"' and branch = '"+branch+"'";
Statement st=connection.createStatement();
ResultSet rs=st.executeQuery(sql);
String designation = null;
String image = null;
String qualificaion = null;
String dob = null;
String email = null;
String mobile = null;
String exp1 = null;
String specialization = null;
String subjects = null;
while(rs.next()){
designation = rs.getString("designation");
image = rs.getString("image");
dob = rs.getString("dob");
qualificaion = rs.getString("qualificaion");
email = rs.getString("email");
mobile = rs.getString("mobile");
exp1 = rs.getString("exp1");
specialization = rs.getString("specialization");
subjects = rs.getString("subjects");
}
%>
<br/><br/>
<center>
<br/>
<h2><font color="black" >Teacher Achievement </font></h2>
<table width="201" border="1.5" cellpadding="0" cellspacing="0" >
<tr>
<td width="126" rowspan="14"><div class="style7" style="margin:10px 13px 10px 13px;" >
<img height="200" width="120" src="Gallery\<%=image%>"></img></div></td>
</tr>
<tr>
<td width="131" valign="middle" height="48" style="color: #00CC99;"><div align="left" class="style8 style7 style14" style="margin-left:20px;">
<strong><font color="black"> Name : </font></strong></div></td>
<td width="166" valign="middle" height="48" ><div align="left" class="style11" style="margin-left:20px;">
<input type="text" name="username" size="25" readonly="" value="<%=username%>"> </div></td>
</tr>
<tr>
<td width="131" valign="middle" height="48" style="color: #00CC99;"><div align="left" class="style8 style7 style14" style="margin-left:20px;">
<strong><font color="black">Branch : </font></strong></div></td>
<td width="166" valign="middle" height="48" ><div align="left" class="style11" style="margin-left:20px;">
<input type="text" name="branch" size="25" readonly="" value="<%=branch%>"></div></td>
</tr>
<tr>
<td width="131" valign="middle" height="48" style="color: #00CC99;"><div align="left" class="style8 style7 style14" style="margin-left:20px;">
<strong><font color="black">Year : </font></strong></div></td>
<td width="166" valign="middle" height="48" ><div align="left" class="style11" style="margin-left:20px;">
<input type="text" name="year" size="25" readonly="" value="<%=year%>"></div></td>
</tr>
<tr>
<td width="131" valign="middle" height="48" style="color: #00CC99;"><div align="left" class="style8 style7 style14" style="margin-left:20px;">
<strong><font color="black"> Designation : </font></strong></div></td>
<td width="166" valign="middle" height="48" ><div align="left" class="style11" style="margin-left:20px;">
<input type="text" name="designation" size="25" readonly="" value="<%=designation%>"> </div></td>
</tr>
<tr>
<td width="131" valign="middle" height="48" style="color: #00CC99;"><div align="left" class="style8 style7 style14" style="margin-left:20px;">
<strong><font color="black">Date of Birth : </font></strong></div></td>
<td width="166" valign="middle" height="48" ><div align="left" class="style11" style="margin-left:20px;">
<input type="text" name="dob" size="25" readonly="" value="<%=dob%>"></div></td>
</tr>
<tr>
<td width="131" valign="middle" height="48" style="color: #00CC99;"><div align="left" class="style8 style7 style14" style="margin-left:20px;">
<strong><font color="black">Qualification : </font></strong></div></td>
<td width="166" valign="middle" height="48" ><div align="left" class="style11" style="margin-left:20px;">
<input type="text" name="qualificaion" size="25" readonly="" value="<%=qualificaion%>"></div></td>
</tr>
<tr>
<td width="131" valign="middle" height="48" style="color: #00CC99;"><div align="left" class="style8 style7 style14" style="margin-left:20px;">
<strong><font color="black"> Email : </font></strong></div></td>
<td width="166" valign="middle" height="48" ><div align="left" class="style11" style="margin-left:20px;">
<input type="text" name="email" size="25" readonly="" value="<%=email%>"> </div></td>
</tr>
<tr>
<td width="131" valign="middle" height="48" style="color: #00CC99;"><div align="left" class="style8 style7 style14" style="margin-left:20px;">
<strong><font color="black">Mobile : </font></strong></div></td>
<td width="166" valign="middle" height="48" ><div align="left" class="style11" style="margin-left:20px;">
<input type="text" name="mobile" size="25" readonly="" value="<%=mobile%>"></div></td>
</tr>
<tr>
<td width="131" valign="middle" height="48" style="color: #00CC99;"><div align="left" class="style8 style7 style14" style="margin-left:20px;">
<strong><font color="black">Experience : </font></strong></div></td>
<td width="166" valign="middle" height="48" ><div align="left" class="style11" style="margin-left:20px;">
<input type="text" name="exp" size="25" readonly="" value="<%=exp1%>"></div></td>
</tr>
<tr>
<td width="131" valign="middle" height="48" style="color: #00CC99;"><div align="left" class="style8 style7 style14" style="margin-left:20px;">
<strong><font color="black"> Specialization : </font></strong></div></td>
<td width="166" valign="middle" height="48" ><div align="left" class="style11" style="margin-left:20px;">
<input type="text" name="specialization" size="25" readonly="" value="<%=specialization%>"> </div></td>
</tr>
<tr>
<td width="131" valign="middle" height="48" style="color: #00CC99;"><div align="left" class="style8 style7 style14" style="margin-left:20px;">
<strong><font color="black">Subjects : </font></strong></div></td>
<td width="166" valign="middle" height="48" ><div align="left" class="style11" style="margin-left:20px;">
<input type="text" name="subjects" size="25" readonly="" value="<%=subjects%>"></div></td>
</tr>
</table>
<br/><br/><a href="tviewtachievements.jsp"><button type="button">Back</button></a></div></td>
</center>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
<br>
<!-- Main Footer -->
<footer class="main-footer">
<p>Developed by <a href="https://www.1000projects.org" target="_blank"> 1000Projects </a></p>
</footer>
</body>
</html>