-
Notifications
You must be signed in to change notification settings - Fork 4
/
form.html
186 lines (144 loc) · 5.36 KB
/
form.html
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
<!DOCTYPE html>
<html>
<head>
<title>The Jagriti Project</title>
</head>
<link rel="stylesheet" href="css/main.css"/>
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/bootstrap-theme.min.css"/>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,100' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway:100,300' rel='stylesheet' type='text/css'>
<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
<script src="js/formValidation.js"></script>
<body>
<div id="main-container">
<div id="menu" class="row">
<div class="col-md-2">Blog</div>
<a href="aboutus.html"><div class="col-md-2">About Us</div></a>
<a href="index.html"><div class="col-md-4" id="logo" data-goto="1"><img src="img/logo.png"/></div></a>
<a href="ourpartners.html"><div class="col-md-2">Our Partners</div></a>
<a href="contactus.html"><div class="col-md-2">Contact Us</div></a>
</div>
<div class="accent" style="margin:auto auto; width:720px;">
Thank you for your interest shown in The Jagriti Project.</br>
Please fill in the form given below, and your complaint will be registered. We assure you, those children WILL be helped.
<!--
<form>
</br><li>Cateogry of Report<br></li>
<input type="checkbox" name="complaint" value"child_abuse"> Child Abuse<br>
<input type="checkbox" name="complaint" value"child_labour"> Child Labour<br>
<input type="checkbox" name="complaint" value"child_prostitution"> Child Prostitution<br>
<input type="checkbox" name="complaint" value"other"> Other<br>
</form>
-->
<form enctype="multipart/form-data" name="submit_form" onsubmit="return validateForm();" method="post" action="php/verify.php" >
<ol>
<br><li>Address of Location</li><br/>
<textarea name="address" placeholder="Enter Address"></textarea>
</br> <br/>
<section id="wrapper">
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
<article>
</article>
<input type="button" value="Use GPS" onclick="getLocation (); "/>
</br>Click the share button to let the browser find your location.
<script>
function getLocation()
{
function success(position) {
var lat = position.coords.latitude;
var long = position.coords.longitude;
var mapcanvas = document.createElement('div');
mapcanvas.id = 'mapcontainer';
mapcanvas.style.height = '400px';
mapcanvas.style.width = '600px';
document.querySelector('article').appendChild(mapcanvas);
var coords = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
var options = {
zoom: 15,
center: coords,
mapTypeControl: false,
navigationControlOptions: {
style: google.maps.NavigationControlStyle.SMALL
},
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("mapcontainer"), options);
var marker = new google.maps.Marker({
position: coords,
map: map,
title:"You are here!"
});
}
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(success);
} else {
error('Geo Location is not supported');
}
}
</script>
</section>
</br>
</br>
Is location in the map correct? (Only for GPS)
</br>
<form action="">
<input type="radio" name="Loc" value="Yes">Yes<br>
<input type="radio" name="Loc" value="No">No
<p> Click Yes only if your Location is correctly identified in the map</p>
</form>
<br><li>Email ID</li>
<input type="text" placeholder="Your email address" name="email"><br><br/>
<li>
Broad Category of Complaint (Select multiple boxes if necessary)
</li><br/>
<input type="checkbox" name="category[]" value="cat1"> Category 1<br>
<input type="checkbox" name="category[]" value="cat2"> Category 2<br>
<input type="checkbox" name="category[]" value="cat3"> Category 3<br>
<input type="checkbox" name="category[]" value="cat4"> Category 4<br>
<input type="checkbox" name="category[]" value="cat5"> Category 5<br>
<br/>
<li>
Description
</li>
<textarea name="description" placeholder="Any description that will help us"></textarea>
<br/>
</ol>
<br/>
<h3>Optional Details</h3><br/>
These will help us contact you, if we have any questions related to the complaint and/or to inform you of the status of the complaint. We will do so only if you wish to be contacted.
<ol>
<br/>
<li>
Name
</li>
<input type="text" name="name"><br/>
<br/>
<li>
Contact Number
</li>
<input type="text" name="number"><br/>
<br/>
<li>
Add Photo (Adding photo increases the effectiveness of the complaint)<br/><br/>
</li>
<input type="file" name="file" id="file">
</ol>
<?php
require_once('php/recaptchalib.php');
$publickey = "6Leuiu8SAAAAAMNC1-PTWyZa_rMo3XozPEy7rljX"; // you got this from the signup page
echo recaptcha_get_html($publickey);
?>
<br/><br/>
<div style="margin:auto auto; width:100%; padding-left:40%;">
<input type="submit" name="submit" value="Submit Form">
<br/>
<br/>
<br/>
</div>
</form>
</div>
</body>
</html>