-
Notifications
You must be signed in to change notification settings - Fork 0
/
find.php
201 lines (173 loc) · 7.64 KB
/
find.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
<?php include 'utils/nav.php';
//include 'delete_question.php';
$email = $_SESSION['email'];
?>
<br><br><br>
<?php if(count($error_find)>0): ?>
<div class="alert alert-danger alert-dismissible fade show" role="alert">
<?php foreach($error_find as $error): ?>
<li><?php echo $error; ?></li>
<?php endforeach; ?>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<?php endif;?>
<?php if(isset($_SESSION['error_find_correct'])): ?>
<div class="alert alert-success alert-dismissible fade show" role="alert">
<?php echo $_SESSION['error_find_correct'] ?>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<?php
// sleep(5);
unset($_SESSION['error_find_correct']); ?>
<?php endif;?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="css/style_userverify.css">
<link rel="stylesheet" href="css/style_nav_pages.css">
<link rel="stylesheet" href="css/form_style.css">
<title>Find missing person</title>
<br><br><br>
<style>
/* ----------------------- ask question form------------------------- */
a:hover {
color: white;
}
.contentBx {
margin-top: 22rem;
}
.contentBx .formBx .inputBx input[type="submit"] {
margin-bottom: 18rem;
}
@media (max-width: 768px) {
.contentBx {
margin-top: 0rem;
}
.contentBx .formBx .inputBx input[type="submit"] {
margin-bottom: 0rem;
}
}
/* --------------------- Scroll Bar-------------------------- */
::-webkit-scrollbar {
width: 7px;
height: 10px;
}
::-webkit-scrollbar-track {
background: transparent;
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 69, 131, 0.7);
border-radius: 10px;
}
::-webkit-scrollbar-button {
width: 10px;
height: 20px;
}
</style>
<body class="bg-light">
<div class="container my-4 col-lg-9">
<div class="bg-dark p-5 rounded m-3">
<h1 class="display-4 text-light">Find a missing Person</h1>
<p class="lead text-light">The forum allows you to lodge a request of your loved ones suffering from Alzheimer's who has
gone missing. You could do so by filling the given form</p>
<hr class="my-4 text-light" style="height: 2px; background-color:#ffffff ;">
<p class="text-light">Kindly read this form and fill it carefully. Upload a clear image in the image upload section which would help
our algorithm to process. All these details would help the reportee to confirm the patient. After you are reunited with your lost one(s), kindly confirm so that we could delete your records.
</p>
<a href="#Find">
<button type="button" class="btn btn-light" id="readMore">Read More</button>
</a>
</div>
</div>
<div class="contentBx" id="Find">
<div class="formBx">
<h2>Find a missing person</h2>
<form action="<?php $_SERVER['REQUEST_URI']?>" method="POST" enctype="multipart/form-data">
<div class="inputBx">
<span>Enter name of the missing person <span class="astrisk">*</span></span>
<input type="text" name="missing" id="missing" required>
</div>
<div class="inputBx">
<span>Enter your email <span class="astrisk">*</span></span>
<input type="email" name="email" id="email" value="<?php echo $email?>" required>
</div>
<div class="inputBx">
<span>Enter your phone number <span class="astrisk">*</span></span>
<input type="number" name="Phone" pattern="[7-9]{1}[0-9]{9}" required>
</div>
<div class="inputBx">
<span>Enter your aadhar number <span class="astrisk">*</span></span>
<input type="number" name="aadhar" pattern='[0-9]{12}' required />
</div>
<div class="location_row">
<div class="inputBx-loc">
<span>Latitude <span class="astrisk">*</span></span>
<input type="text" name="latitude" id="latitude" required>
</div>
<div class="inputBx-loc">
<span>Longitude <span class="astrisk">*</span></span>
<input type="text" name="longitude" id="longitude" required>
</div>
<div class="inputBx-loc">
<button type="button" class="loc-btn" title="click to get your current location" onclick="getLocation()"><i
class="fas fa-map-marker-alt"></i></button>
</div>
</div>
<script>
var lat = document.getElementById("latitude");
var long = document.getElementById("longitude");
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {}
}
function showPosition(position) {
lat.value = position.coords.latitude;
long.value = position.coords.longitude;
}
</script>
<div class="inputBx">
<span>Approx age group of the missing person</span>
<Select name="age_group">
<option selected class="selected"></option>
<option>Child (0 - 14 years) </option>
<option>Youth (15 - 24 years)</option>
<option>Adults (25 - 64 years)</option>
<option>Seniors (65 years and over)</option>
</Select>
</div>
<div class="inputBx">
<span>Select Gender of the missing person</span>
<Select name="gender">
<option selected class="selected"></option>
<option>Male</option>
<option>Female</option>
<option>Others</option>
</Select>
</div>
<div class="btn-container">
<span>Upload image file of the missing person <span class="astrisk">*</span></span>
<input type="file" id="person_image" name="person_image" class="upload-box" required>
</div>
<div class="inputBx">
<span>Enter distinguishable birthmark <span class="astrisk">*</span></span>
<input type="text" name="birthmark" id="birthmark" required>
</div>
<div class="inputBx">
<input type="submit" name="Find" id="Find" value="Find" onclick="top()">
</div>
</form>
</div>
</div>
<?php include 'utils/footer.php' ?>
</body>
<script>
function top() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
<!-- Option 1: Bootstrap Bundle with Popper -->
<!--for alert-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous">
</script>