This repository has been archived by the owner on Mar 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
185 lines (140 loc) · 6.15 KB
/
index.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
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>FindNearby</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Bungee+Inline" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Architects+Daughter" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Luckiest+Guy" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Quantico" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCDmFqQa3GmRdYRtITKJnv3qF3-tsL5H2A&v=3.exp&sensor=false&libraries=places"></script>
<script type="text/javascript">
function initialize() {
var input = document.getElementById('place_location');
var autocomplete = new google.maps.places.Autocomplete(input);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
<script src="https://use.fontawesome.com/4ade0e5ef1.js"></script>
<style type="text/css">
.jumbotron
{
/*margin-top: 50px;*/
color: black;
background: url("jumbotron_img/map2.jpg") no-repeat center center;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-o-background-size: 100% 100%;
background-size: 100% 100%;
}
.navbar{
background-color: transparent;
border-style: none;
color:green;
height: 50px;
text-align: center;
font-family: 'Luckiest Guy', cursive;
font-size: 20px;
}
.active{
background-color: green;
}
footer
{
background-color: #121212;
margin-top:30px;
position:relative;
padding: 10px;
height:60px;
color: white;
position: relative;
right: 0;
bottom: 0;
left: 0;
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<a class="navbar-brand" href="#" >Home</a>
<a class="navbar-brand navbar-right" href="about.php" >About</a>
</nav>
<div class="jumbotron">
<div class="container-fluid text-center" style="height: 470px; ">
<h1 style="color:white; font-family:'Bungee Inline', cursive; margin-top:100px;">Find Nearby</h1> <hr>
<p style="color:white; font-family:'Architects Daughter', cursive;">Smart way to manage places around you </p>
</div>
</div>
<div class="container-fluid text-center" style="background-color:#A7C2E2; ">
<div id="brief">
<h2 style="text-align: center; color:#080C17;font-family: 'Quantico', sans-serif; ";>Choose what to find nearby..</h2>
<p style="font-size: 18px; ">
</p>
</div>
</div>
<div class="container" style="margin-top:50px;">
<!-- form begins-->
<form role="form" method="POST" action="results_display.php">
<div class="form-group" >
<input type="text" class="form-control" name="location" id="place_location" placeholder="Enter the address of the location.." style="align:center"/>
</div>
<div class="form-group">
<select class="form-control" name="keyword">
<option value="doctor" >Doctor</a></option><!--2-->
<option value="hospital" >Hospital</option><!--3-->
<option value="atm" >ATM</option><!--4-->
<option value="park" >Park</option><!--5-->
<option value="police" >Police Station</option><!--6-->
<option value="restaurant" >Restaurant</option><!--7-->
<option value="shopping_mall" >Shopping Mall</option><!--8-->
<option value="amusement_park" >Amusement Park</option><!--9-->
<option value="bank" >Bank</option><!--10-->
<option value="movie_theater" >Movie Theater</option><!--11-->
<option value="clothing_store" >Clothing Store</option><!--12-->
<option value="department_store" >Department Store</option><!--13-->
<option value="electronics_store" >Electronics Store</option><!--14-->
<option value="gas_station" >Gas Station</option><!--15-->
<option value="taxi_stand" >Taxi Stand</option><!--16-->
<option value="pharmacy" >Pharmacy</option><!--17-->
<option value="fire_station" >Fire Station</option><!--1-->
<option value="meal_takeaway" >Meal takeaway</option><!--1-->
<option value="parking" >Parking</option><!--1-->
<option value="physiotherapist" >Physiotherapist</option><!--1-->
<option value="cafe" >Cafe</option><!--1-->
<option value="book_store" >Book store</option><!--1-->
<option value="gym" >Gym</option><!--1-->
</select>
</div>
<div class="col-xs-6 col-sm-6 col-md-6">
<input type="submit" name="submit_mes" value="SEARCH" class="btn btn-lg btn-success btn-block"><hr>
</div>
</form>
<!-- end form-->
</div>
<?php
if (isset($_POST['submit_mes']))
{
$_SESSION['key_val'] = $_POST['keyword'];
}
?>
<footer class="container-fluid" >
<div class="row">
<div class="col-sm-4">
<a href="https://github.com/nileshprasad137/find_nearby"> <span class="fa fa-github" style="font-size:25px;color:white;"></span> <b>Fork Me on GitHub</a> </b>
</div>
<div class="col-sm-4">
</div>
<div class="col-sm-4" >
<b > <i class="fa fa-envelope" aria-hidden="true"></i> prasadnilesh96@gmail.com</p></i></b>
</div>
</footer>
</body>
</html>