-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequestjsp1.jsp
172 lines (171 loc) · 4.99 KB
/
requestjsp1.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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<%@pageimport="java.sql.*"%>
<%! Connection con;
Statement stm;
int i;
String email;
%>
<% try { Class.forName("oracle.jdbc.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:xe","username","password");
email=(String)session.getAttribute("su1");
}
catch(Exception e)
{
out.println(e.toString());
}
%>
<html>
<head>
<title>Request_form</title>
<link
href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,700;1,300;1,400;1,500;1,600;1,700&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Baloo+Tamma+2:wght@400&display=swap"
rel="stylesheet"
/>
<style>
body {
font-family: "Nunito", sans-serif;
background-image: url("images/req.jpeg");
background-size: 1250px 750px;
}
.top {
font-size: 4.7em;
font-weight: 600;
text-align: center;
font-family: "Baloo Tamma 2", cursive;
line-height: 1em;
padding: 21px;
text-shadow: 1px 1px 20px #f6f6f6;
}
.qn {
font-size: 1.4em;
}
.center-box {
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, 0.4);
margin: 0em;
}
.box {
border-radius: 1em;
height: 2em;
border-width: 0.1em;
border-color: rgb(19, 47, 98);
padding-left: 16px;
}
.box:hover {
-ms-transform: scale(1.5); /* IE 9 */
-webkit-transform: scale(1.5); /* Safari 3-8 */
transform: scale(1.1);
transition: width 0.3s, height 0.3s, transform 0.2s;
}
</style>
</head>
<body>
<form action="requestjsp2.jsp" method="post">
<div class="top">
<span style="color: rgb(45, 180, 0)">clean</span
><span style="color: rgb(7, 165, 233)">co</span>
</div>
<div class="reqform">
<table class="center-box">
<tr>
<th colspan="2" style="padding: 20px, size=200px">
<p style="font-size: 30px">Request Form</p>
<p></p>
</th>
</tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr>
<td class="qn">Email</td>
<td>
<input type="text" class="box" name="email" value=<%=email%> readonly>
</td>
</tr>
<tr>
<td class="qn">Fullname</td>
<td><input type="text" class="box" name="fname" required /></td>
</tr>
<tr>
<td class="qn">Mobile number</td>
<td>
<input type="tel" class="box" name="phno" pattern="[0-9]{10}" minlength='10' maxlength="10" required>
</td>
</tr>
<tr>
<td class="qn">Address:</td>
</tr>
<tr>
<td class="qn">Building No./Name</td>
<td><input type="text" class="box" name="place" required /></td>
</tr>
<tr>
<td class="qn">Street</td>
<td><input type="text" class="box" name="street" required /></td>
</tr>
<tr>
<td class="qn">Area</td>
<td><input type="text" class="box" name="area" required /></td>
</tr>
<tr>
<td class="qn">Town/City</td>
<td><input type="text" class="box" name="city" required /></td>
</tr>
<tr>
<td class="qn">Pincode</td>
<td>
<input type="tel" class="box" name="pin" pattern="[0-9]{6}" minlength='6' maxlength="6" required>
</td>
</tr>
<tr></tr>
<tr>
<td class="qn">Service</td>
<td>
<select
name="service"
class="box"
style="padding-left: 5px; width: 170px"
required
>
<option value="" disabled selected>Select service</option>
<option>Home sanitization</option>
<option>Vehicle sanitization</option>
<option>Commercial sanitization</option>
<option>Workplace sanitization</option>
</select>
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center">
<input
type="submit"
value="Submit"
class="box"
style="
height: 2.5em;
width: 7em;
font-size: 0.97em;
border-radius: 3.5em;
color: rgb(252, 252, 252);
font-weight: bold;
border-width: 0em;
background-color: rgb(42, 141, 37);
margin: 1em;
padding-left: 3px;
"
/>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>