-
Notifications
You must be signed in to change notification settings - Fork 0
/
addFamily.jsp
134 lines (107 loc) · 3.61 KB
/
addFamily.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
<%String pag=null;
String log = (String)session.getAttribute("log");
String type = (String)session.getAttribute("type");
RequestDispatcher r;
if(log == null ){
pag="err.jsp?msg=You are not Autherized to Access this page";
}
else if(type == null || type.equals("false") ){
pag="err.jsp?msg=You are not Autherized to Access this page";
}
%>
<%
if(pag!=null)
{
r = request.getRequestDispatcher(pag);
r.forward(request,response);
}
%>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Redressed&display=swap" rel="stylesheet">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<link rel="stylesheet" href="index.css">
<style>
.main {
/* border: 2px solid black; */
margin-top: 25px;
display: flex;
flex-direction: column;
/* flex-wrap: nowrap; */
align-items: center;
}
.main div {
/* border: 1px solid red; */
display: flex;
flex-wrap: wrap;
flex-direction: row;
align-items: center;
margin: auto;
padding: 16px 10px;
}
</style>
</head>
<body>
<div id="back">
<form action="mainUserHome.jsp" method="post">
<input type="submit" value="<">
</form>
</div>
<div class="navigation">
<div>
<li>
<h1 id="h">SOMA National Bank </h1>
</li>
</div>
<div>
<li><img src="logo.png" alt="logo"></li>
</div>
</div>
<div id="heading">
<h1>Add Family Member </h1>
</div>
<div class = "main">
<form action="addMember.jsp" method="post">
<div class="box">
<label>Enter First Name:</label>
<input type="text" name="firstname" id="name_" required>
<span id="err_name" class="error"></span>
</div>
<div class="box">
<label>Enter Last Name:</label>
<input type="text" name="lastname" id="name_" required>
<span id="err_lname" class="error"></span>
</div>
<div class="box">
<label>Date of Birth</label>
<input type="date" name="dob" id="dob_" required>
<span id="err_dob" class="error"></span></span>
</div>
<div class="box">
<label>Mobile NO:</label>
<input type="number" id="phone" name="phone" minlength="12" maxlength="12" required>
<span id="err_phone" class="error"></span></span>
</div>
<div class="box">
<label>User Type:</label>
<select name="UserType" id="">
<option value="true">Main</option>
<option value="false">Other</option>
</select>
<br>
<span id="err_user" class="error"></span>
</div>
<div class="box" id="btn">
<input type="submit" value="Add" name="signup">
<span id="sucessBox"></span>
</div>
</form>
</div>
</body>
</html>