-
Notifications
You must be signed in to change notification settings - Fork 0
/
s-organisation.php
322 lines (271 loc) · 15.8 KB
/
s-organisation.php
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="7893.js"></script>
<script src="7892.js"></script>
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="styles_stuff.css">
</head>
<body class="dnte_form">
<!--FORM FOR ORGANISATION-->
<div class="container contn" id="phase1">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12"></div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<form class="form-container" id="form1" method="post" action="s-org.php">
<div class="form-group">
<label for="name">NAME OF ORGANISATION</label>
<input type="text" class="form-control" id="name" name="name" placeholder="ENTER ORGANISATION NAME">
<div id="a"></div></div>
<div class="form-group">
<label for="email">EMAIL ID OF ORGANISATION</label>
<input type="email" class="form-control" id="email" name="email" placeholder="ENTER EMAIL ADDRESS">
<span id="b"></span>
</div>
<div class="form-group">
<label for="phno1">PHONE NUMBER OF ORGANISATION</label>
<input type="text" class="form-control" id="phno" name="phno" placeholder="ENTER PHONE NUMBER">
<span id="p"></span>
</div>
<div class="form-group">
<label for="name">NAME OF INCHARGE</label>
<input type="text" class="form-control" id="name1" name="name1" placeholder="ENTER INCHARGE NAME">
<span id="l"></span>
</div>
<div class="form-group">
<label for="email">PHONE NUMBER OF INCHARGE</label>
<input type="email" class="form-control" id="phno1" name="phno1" placeholder="ENTER PHONE NUMBER">
<span id="m"></span>
</div>
<div class="form-group">
<label for="address">ADDRESS:</label><br>
<label for="area">Area</label>
<input type="text" class="form-control" id="area" name="loc" placeholder="ENTER LOCALITY/AREA">
<span id="f"></span><br>
<label for="city">City / Town</label>
<input type="text" class="form-control" id="city" name="city" placeholder="ENTER CITY/TOWN">
<span id="g"></span><br>
<label for="district">District</label>
<input type="text" class="form-control" id="district" name="dis" placeholder="ENTER DISTRICT">
<span id="h"></span><br>
<label for="state">STATE / U.T. <br>
<select id="state" name="state" style="width:250px;padding:5px 20px;">
<option value="">--Select--</option>
<option value="Andaman-Nicobar">Andaman and Nicobar Islands</option>
<option value="Andhra Pradesh">Andhra Pradesh</option>
<option value="Assam">Assam</option>
<option value="Bihar">Bihar</option>
<option value="Chandigarh">Chandigarh</option>
<option value="Chhattisgarh">Chhattisgarh</option>
<option value="Dadra-Nagar">Dadra and Nagar Haveli</option>
<option value="Daman-Diu">Daman and Diu</option>
<option value="Delhi">Delhi</option>
<option value="Goa">Goa</option>
<option value="Gujarat">Gujarat</option>
<option value="Haryana">Haryana</option>
<option value="Himachal-Pradesh">Himachal Pradesh</option>
<option value="j&k">Jammu and Kashmir</option>
<option value="Jharkhand">Jharkhand</option>
<option value="Karnataka">Karnataka</option>
<option value="Kerala">Kerala</option>
<option value="Lakshadweep">Lakshadweep</option>
<option value="Madhya-Pradesh">Madhya Pradesh</option>
<option value="Maharashtra">Maharashtra</option>
<option value="Manipur">Manipur</option>
<option value="Meghalaya">Meghalaya</option>
<option value="Mizoram">Mizoram</option>
<option value="Nagaland">Nagaland</option>
<option value="Odisha">Odisha</option>
<option value="Punjab">Punjab</option>
<option value="Pondicherry">PondiRajasthancherry</option>
<option value="Rajasthan">Rajasthan</option>
<option value="Sikkim">Sikkim</option>
<option value="Tamil Nadu">Tamil Nadu</option>
<option value="Telangana">Telangana</option>
<option value="Tripura">Tripura</option>
<option value="Uttar-Pradesh">Uttar Pradesh</option>
<option value="Uttarakhand">Uttarakhand</option>
<option value="West-Bengal">West Bengal</option>
</select></label><br><span id="j"></span><br>
<label for="country">Country</label>
<input type="text" class="form-control" id="country" name="cntry" value="India" readonly>
</div>
<div class="form-group">
<label for="donation">DONATED STUFF DESCRIPTION</label>
<textarea class="form-control" id="donated" name="stuff" placeholder="DESCRIPTION" row=4></textarea>
<span id="i"></span>
</div><br>
</form>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12"></div>
</div>
</div>
<div class="container" id="phase5" style="display:none;">
<div class="row" class="form-container">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12"></div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<p class="new">CHECK YOUR DETAILS CAREFULLY.</p>
<table class="table table-striped table-bordered">
<tr>
<th colspan="2" class="success"> ORGANISATION:</th>
</tr>
<tr>
<th> Name</th>
<td> <font color='#33ccff' face="Comic Sans MS"><span id="d_name"></span></font> </td>
</tr>
<tr>
<th> Email Address</th>
<td> <font color='#33ccff' face="Comic Sans MS"><span id="d_email"></span></font> </td>
</tr>
<tr>
<th> Phone Number</th>
<td> <font color='#33ccff' face="Comic Sans MS"><span id="d_phno"></span></font> </td>
</tr>
<tr>
<th class="success" colspan="2"> INCHARGE:</th>
</tr>
<tr>
<th> Name</th>
<td> <font color='#33ccff' face="Comic Sans MS"><span id="d_uname"></span></font> </td>
</tr>
<tr>
<th> Phone Number</th>
<td> <font color='#33ccff' face="Comic Sans MS"><span id="d_uphno"></span></font> </td>
</tr>
<tr>
<th colspan="2"> ADDRESS: </th>
</tr>
<tr>
<th> Locality </th>
<td> <font color='#33ccff' face="Comic Sans MS"><span id="d_area"></span></font> </td>
</tr>
<tr>
<th> City/Town </th>
<td> <font color='#33ccff' face="Comic Sans MS"><span id="d_city"></span></font> </td>
</tr>
<tr>
<th> District </th>
<td> <font color='#33ccff' face="Comic Sans MS"><span id="d_district"></span></font> </td>
</tr>
<tr>
<th> State </th>
<td> <font color='#33ccff' face="Comic Sans MS"><span id="d_state"></span></font> </td>
</tr>
<tr>
<th> Country </th>
<td> <font color='#33ccff' face="Comic Sans MS"><span id="d_country"></span></font> </td>
</tr>
<tr>
<th class="success" > Donated Stuff Description: </th>
<td class="success" ><font color='#33ccff' face="Comic Sans MS"><span id="d_stuff"></span></font> </td>
</tr>
</table>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12"></div>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12"></div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="form_stp_btn">
<button type="button" class="btn btn-success" id="prevBtn" onclick="nextPrev(-1)">Previous</button>
<button type="button" class="btn btn-success btn-md" id="nextBtn" onclick="nextPrev(1)">Next</button>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12"></div>
</div>
<script>
var currentTab = 0; // Current tab is set to be the first tab (0)
showTab(currentTab); // Display the current tab
function showTab(n) {
// This function will display the specified tab of the form ...
var x = document.getElementsByClassName("container");
x[n].style.display = "block";
// ... and fix the Previous/Next buttons:
if (n == 0) {
document.getElementById("prevBtn").style.display = "none";
} else {
document.getElementById("prevBtn").style.display = "inline";
}
if (n == (x.length - 1)) {
document.getElementById("nextBtn").innerHTML = "Submit";
} else {
document.getElementById("nextBtn").innerHTML = "Next";
}
}
function nextPrev(n) {
// This function will figure out which tab to display
var x = document.getElementsByClassName("container");
if(!processphase1())
{
if(!adrs()){
if(getid("donated").value=="")
{
document.getElementById("i").innerHTML="<font color='#ff8566'>Description Stuff!</font>";
return false;
}
else
{
document.getElementById("i").innerHTML="";
}
return false;}
return false;
}
else if(!adrs()){ if(getid("donated").value=="")
{
document.getElementById("i").innerHTML="<font color='#ff8566'>Description Stuff!</font>";
return false;
}
else
{
document.getElementById("i").innerHTML="";
}
return false;}
else if(getid("donated").value=="")
{
document.getElementById("i").innerHTML="<font color='#ff8566'>Description Stuff!</font>";
return false;
}
else
{
document.getElementById("i").innerHTML="";
}
if(n==1){
getid("phase1").style.display="none";
getid("phase5").style.display="block";}
else if(n==-1){
getid("phase1").style.display="block";
getid("phase5").style.display="none";}
// Exit the function if any field in the current tab is invalid:
currentTab = currentTab + n;
// if you have reached the end of the form... :
if (currentTab >= x.length) {
//...the form gets submitted:
document.getElementById("form1").submit();
return false;
}
// Otherwise, display the correct tab:
showTab(currentTab);
}
function getid(x)
{
return document.getElementById(x);
}
function getaddress() //to get address of all forms
{
getid("d_area").innerHTML = getid("area").value;
getid("d_city").innerHTML= getid("city").value;
getid("d_district").innerHTML= getid("district").value;
getid("d_state").innerHTML= getid("state").value;
getid("d_country").innerHTML= getid("country").value;
getid("d_stuff").innerHTML= getid("donated").value;
}
</script>
</body>
</html>