1
+ <%@page import =" org.pk.resume.builder.beans.Education" %>
2
+ <%@page import =" java.util.ArrayList" %>
3
+ <%@page import =" org.pk.resume.builder.dao.UserService" %>
4
+ <%@page import =" org.pk.resume.builder.session.EducationSession" %>
5
+ <%@page import =" org.pk.resume.builder.constants.GlobalConstants" %>
6
+ <%@page import =" org.apache.tomcat.jni.Global" %>
7
+ <%@page import =" org.pk.resume.builder.session.PersonSession" %>
8
+ <%@page import =" org.pk.resume.builder.beans.Personal" %>
9
+ <%@ page language =" java" contentType =" text/html; charset=ISO-8859-1"
10
+ pageEncoding =" ISO-8859-1" %>
11
+
12
+
13
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
14
+ <html >
15
+ <head >
16
+ <script type =" text/javascript" >
17
+ $ (document ).ready (function () {
18
+ $ (" #addEdu" ).click (function () {
19
+ var element = document .getElementById (" tblData" );
20
+ element .appendChild (" <tr></tr>" );
21
+ });
22
+ });
23
+ </script >
24
+ <title >Home Page Resume Builder</title >
25
+ </head >
26
+ <body >
27
+ <%
28
+ UserService us = new UserService ();
29
+ ArrayList<Education > educations = GlobalConstants . educations;
30
+ % >
31
+
32
+ <jsp:include page =" Menu.jsp" />
33
+ <fieldset >
34
+ <legend > Educational Details </legend >
35
+ <table style =" text-align : center ; width : 100% ;" align =" center" border =" 1"
36
+ cellspacing =" 0" >
37
+ <tr >
38
+ <th >Sr No</th >
39
+ <th >School/College Name</th >
40
+ <th >Degree</th >
41
+ <th >Subject</th >
42
+ <th >Year</th >
43
+ <th >Board/ University</th >
44
+ <th >Obtained Marks</th >
45
+ <th >Total Marks</th >
46
+ <th >%</th >
47
+ </tr >
48
+
49
+ <%
50
+ if (educations != null && ! educations. isEmpty())
51
+ {
52
+ for (int i= 0 ; i< educations. size();i++ )
53
+ {
54
+ Education ed = educations. get(i);
55
+ % >
56
+ <tr >
57
+ <td ><%= i+ 1 % > </td >
58
+ <td ><%= ed. getCollegeName() % > </td >
59
+ <td ><%= ed. getDegree() % > </td >
60
+ <td ><%= ed. getSubject() % > </td >
61
+ <td ><%= ed. getYear() % > </td >
62
+ <td ><%= ed. getBoard() % > </td >
63
+ <td ><%= ed. getObtainedMarks() % > </td >
64
+ <td ><%= ed. getTotalMarks() % > </td >
65
+ <td ><%= ed. getPercentage() % > </td >
66
+ </tr >
67
+ <%
68
+ }}
69
+ % >
70
+ </table >
71
+ <br >
72
+ <form action =" AddNewEducation.jsp" method =" post" >
73
+ <table >
74
+
75
+ <tr >
76
+ <td >School/College Name</td >
77
+ <td ><input type =" text"
78
+ name =" <%= EducationSession . SCHOOL_NAME% >"
79
+ id =" <%= EducationSession . SCHOOL_NAME% >" /></td >
80
+ </tr >
81
+ <tr >
82
+ <td >Degree</td >
83
+ <td ><input type =" text" name =" <%= EducationSession . DEGREE% >"
84
+ id =" <%= EducationSession . DEGREE% >" /></td >
85
+ </tr >
86
+ <tr >
87
+ <td >Subject</td >
88
+ <td ><input type =" text" name =" <%= EducationSession . SUBJECT% >"
89
+ id =" <%= EducationSession . SUBJECT% >" /></td >
90
+ </tr >
91
+ <tr >
92
+ <td >Year</td >
93
+ <td ><input type =" text" name =" <%= EducationSession . YEAR% >"
94
+ id =" <%= EducationSession . YEAR% >" /></td >
95
+ </tr >
96
+ <tr >
97
+ <td >Board / University</td >
98
+ <td ><input type =" text" name =" <%= EducationSession . BOARD% >"
99
+ id =" <%= EducationSession . BOARD% >" /></td >
100
+ </tr >
101
+ <tr >
102
+ <td >obtained Marks</td >
103
+ <td ><input type =" text"
104
+ name =" <%= EducationSession . OBTAINED_MARKS% >"
105
+ id =" <%= EducationSession . OBTAINED_MARKS% >" /></td >
106
+ </tr >
107
+ <tr >
108
+ <td >Total Marks</td >
109
+ <td ><input type =" text"
110
+ name =" <%= EducationSession . TOTAL_MARKS% >"
111
+ id =" <%= EducationSession . TOTAL_MARKS% >" /></td >
112
+ </tr >
113
+ <tr >
114
+ <td >%</td >
115
+ <td ><input type =" text" name =" <%= EducationSession . PERCENTAGE% >"
116
+ id =" <%= EducationSession . PERCENTAGE% >" /></td >
117
+ </tr >
118
+
119
+ <tr >
120
+ <td ></td >
121
+ <td colspan =" 2" ><input type =" submit" value =" Add" name =" next" /></td >
122
+ <td colspan =" 2" ><input type =" submit" value =" Next" name =" next" /></td >
123
+ <td ></td ><td ></td ><td ></td >
124
+ <td colspan =" 2" ><input type =" reset" value =" Reset" /></td >
125
+ </tr >
126
+
127
+ </table >
128
+ </form >
129
+ </fieldset >
130
+ </body >
131
+ </html >
0 commit comments