-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodify.jsp
More file actions
190 lines (167 loc) · 4.75 KB
/
Copy pathmodify.jsp
File metadata and controls
190 lines (167 loc) · 4.75 KB
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
<html>
<head>
<script>
var request;
function sendInfo() {
var v = document.myform.findName.value;
var url = "findname1.jsp?val=" + v;
if (window.XMLHttpRequest) {
request = new XMLHttpRequest();
} else if (window.ActiveXObject) {
request = new ActiveXObject("Microsoft.XMLHTTP");
}
try {
request.onreadystatechange = getInfo;
request.open("GET", url, true);
request.send();
} catch (e) {
alert("Unable to connect to server");
}
}
function getInfo() {
if (request.readyState == 4) {
var val = request.responseText;
document.getElementById('hi').innerHTML = val;
}
}
function sendGenInfo(name) {
var v = name;
var url = "getgeninfoname.jsp?val=" + v;
if (window.XMLHttpRequest) {
request = new XMLHttpRequest();
} else if (window.ActiveXObject) {
request = new ActiveXObject("Microsoft.XMLHTTP");
}
try {
request.onreadystatechange = getGenInfo;
request.open("GET", url, true);
request.send();
} catch (e) {
alert("Unable to connect to server");
}
}
function getGenInfo() {
if (request.readyState == 4) {
var val = request.responseText;
document.getElementById('hello').innerHTML = val;
}
}
</script>
</head>
<div id="outer">
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<jsp:include page="header.jsp"></jsp:include>
<%
String islogin = (String) session.getAttribute("islogin");
if (islogin == null) {
request.setAttribute("notlogin_msg", "Sorry,Please do Login first");
%>
<jsp:forward page="index.jsp"></jsp:forward>
<%
}
%>
<body>
<h3 style="color: navy;" align="center">
<B>Consultant:- Pradip</B>
</h3>
<div id="box">
<form action="save1.jsp" name="myform" id="hello" method="post">
<table width="100%">
<tr>
<td><table width="55%" align="left"
style="table-layout: fixed;">
<tr>
<td>
<table cellspacing=15 cellpadding=15">
<tr>
<td><font style="color: navy"><B>Student
Detail:</B></font></td>
</tr>
<tr>
<td><B>ID:</B></td>
<td><input type="text" name="id"></input></td>
</tr>
<tr>
<td><B>Name:</B></td>
<td><input type="text" name="name"></input></td>
</tr>
<tr>
<td><B>Course:</B></td>
<td><input type="text" name="course"></input></td>
</tr>
<tr>
<td><B>Mobile:</B></td>
<td><input type="text" name="mobile"></input></td>
</tr>
<tr>
<td><B>Father's Name:</B></td>
<td><input type="text" name="fathername"></input></td>
</tr>
<tr>
<td><B>Mother's Name:</B></td>
<td><input type="text" name="mothername"></input></td>
</tr>
<tr>
<td><B>Qualification:</B></td>
<td><input type="text" name="qualification"></input></td>
</tr>
<tr>
<td><B>Date of Birth:</B></td>
<td><input type="text" name="dateofbirth"></input></td>
</tr>
<tr>
<td><B>Date of Joining:</B></td>
<td><input type="text" name="dateofjoining"></input></td>
</tr>
<tr>
<td><B>Date of Submission:</B></td>
<td><input type="text" name="feesub"></input></td>
</tr>
<tr>
<td><B>Paid:</B></td>
<td><input type="text" name="paid"></input></td>
</tr>
<tr>
<td><B>Fee:</B></td>
<td><input type="text" name="fee"></input></td>
</tr>
<tr>
<td><B>Balance:</B></td>
<td><input type="text" name="balance"></input></td>
</tr>
<tr>
<td><B>Address:</B></td>
<td><input type="text" name="address"></input></td>
</tr>
<tr>
<td><B>Description:</B></td>
<td><input type="text" name="description"></input></td>
</tr>
<tr>
<td><B>Trainer:</B></td>
<td><input type="text" name="trainer"></input></td>
</tr>
<tr>
<td></td>
<td><input style="padding: 3px 3px"
value=" Edit & Save" type="submit"></td>
</tr>
</table>
</table>
<table align="right" width="25%">
<tr>
<td><font style="color: navy;"><B>Search:</B></font><input
type="text" name="findName" onkeyup="sendInfo()"></input></td>
</tr>
<tr>
<td><div id="hi"></div></td>
</tr>
</table></td>
</tr>
</table>
</form>
</div>
</body>
<jsp:include page="footer.jsp"></jsp:include>
</div>
</html>