-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddAdmin.jsp
More file actions
227 lines (168 loc) · 6.7 KB
/
Copy pathAddAdmin.jsp
File metadata and controls
227 lines (168 loc) · 6.7 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
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
<%@page import="com.ProjectClassFiles.*,java.io.*,java.util.*"%>
<%
response.setHeader("Cache-control","no-cache, no-store, must-revalidate");
if(session.getAttribute("username")==null){
response.sendRedirect("login.html");
}
%>
<!doctype html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="../bootstrap-3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="../bootstrap-3.3.7/dist/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="Styling.css">
<style>
h2 {
width: 100px;
height: 50px;
background-color :antiquewhite;
font-weight: bold;
position: relative;
-webkit-animation: mymove 5s infinite; /* Safari 4.0 - 8.0 */
animation: mymove 5s infinite;
}
/* Safari 4.0 - 8.0 */
#h2 {-webkit-animation-timing-function: linear;}
/* Standard syntax */
#h2 {animation-timing-function: linear;}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes mymove {
from {left: 0px;}
to {left: 300px;}
}
/* Standard syntax */
@keyframes mymove {
from {left: 0px;}
to {left: 300px;}
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="Navbar.jsp">Singh's Institute</a>
</div>
<ul class="nav navbar-nav navbar-left">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="Navbar.jsp">Admin
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AddAdmin.jsp">Add Admin</a></li>
<li><a href="deleteAdmin1.jsp">Delete Admin</a></li>
<li><a href="AdminByIdAdd.jsp">Update Admin</a></li>
<li><a href="ShowAllAdmin.jsp">Show All Admin</a></li>
<li><a href="AdminByIdAdd.jsp">Admin By Id</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="Navbar.jsp">Manager
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AddManager.jsp">Add Manager</a></li>
<li><a href="DeleteManager1.jsp">Delete Manager</a></li>
<li><a href="ManagerById1.jsp">Update Manager</a></li>
<li><a href="ShowAllManager.jsp">Show All Manager</a></li>
<li><a href="ManagerById1.jsp">Manager By Id</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="Navbar.jsp">Batch
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AddBatch.jsp">Add Batch</a></li>
<li><a href="DeleteBatch1.jsp">Delete Batch</a></li>
<li><a href="BatchById1.jsp">Update Batch</a></li>
<li><a href="ShowAllBatch.jsp">Show All Batch</a></li>
<li><a href="BatchById1.jsp">Batch By Id</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="Navbar.jsp">Teacher
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AddTeacher.jsp">Add Teacher</a></li>
<li><a href="DeleteTeacher1.jsp">Delete Teacher</a></li>
<li><a href="TeacherById1.jsp">Update Teacher</a></li>
<li><a href="ShowAllTeacher.jsp">Show All Teachers</a></li>
<li><a href="TeacherById1.jsp">Teacher By Id</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="Navbar.jsp">Student
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AddStudent1.jsp">Add Student</a></li>
<li><a href="DeleteStudent1.jsp">Delete Student</a></li>
<li><a href="StudentById1.jsp">Update Student</a></li>
<li><a href="ShowAllStudent.jsp">Show All Student</a></li>
<li><a href="StudentById1.jsp">Student By Id</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="Navbar.jsp">Fees
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AddFees1.jsp">Add Fees</a></li>
<li><a href="DeleteFees1.jsp">Delete Fees</a></li>
<li><a href="FeesById1.jsp">Update Fees</a></li>
<li><a href="ShowAllFees.jsp">Show All Fees</a></li>
<li><a href="FeesById1.jsp">Fees By Id</a></li>
<li><a href="feesNotUpdated.jsp">Fees Not Updated</a></li>
<li><a href="feesPending.jsp">Fees Pending</a></li>
<li class="divider"></li>
</ul>
</li>
<li>
<a href="Print.html">Print Certificate</a>
</li>
<li>
<a href="logout.jsp">logout</a>
</li>
</ul>
</div>
</nav>
<h2>WELCOME...</h2>
<div class="row">
<div class="col-sm-3">
<div class="container">
<h1>ADD Admin</h1>
<br />
<br />
<br />
<br />
<form name="myForm" method="post" action="adminAdd.jsp">
<div class="form-group">
<label for="id">Enter Id</label>
<input type="number" name="id" id="id" class="form-control" required>
</div>
<script>
function lettersOnly(input){
var regex = /[^a-z]/gi;
input.value = input.value.replace(regex,"");
}
</script>
<div class="form-group">
<label for="name">Enter Name</label>
<input type="text" name="name" id="name" pattern="[A-Za-z]{,25}" onkeyup="lettersOnly(this)" required title="must contain only characters" class="form-control">
</div>
<div class="form-group">
<label for="userId"> Enter email</label>
<input type="email" name="userId" id="userId" class="form-control" required>
</div>
<div class="form-group">
<label for="psswd"> Enter psswd</label>
<input type="password" name="password" id="psswd" class="form-control" required>
</div>
<input type="submit" value="add" class="btn btn-primary btn-block">
</form>
</div>
</div>
<div class="col-sm-3"></div>
</div>
</body>
</html>