-
Notifications
You must be signed in to change notification settings - Fork 0
/
search_food.php
104 lines (85 loc) · 3.07 KB
/
search_food.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
<?php
require("includes/common.php");
if (!isset($_SESSION['email'])) {
header('location: index.php');
}
$em=$_SESSION['email'];
if(isset($_POST['subm']))
{
$l1 = $_POST['lats'];
$l2 = $_POST['longs'];
header("Location: nearest.php? lat=$l1&long=$l2");
$_SESSION['lats']=$_POST['lats'];
$_SESSION['longs']= $_POST['longs'];
}
?>
<!DOCTYPE html>
<html lang="en" >
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Food waste management</title>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/style.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel="stylesheet" href="css/style.css">
<style>
.body{
background-image: url("img/mybg4.jpg");
width:100%;
height:100%;
}
</style>
</head>
<body class="body" onload="getLocation()">
<?php
include 'includes/header.php';
?>
<section class="cd-hero">
<ul class="cd-hero-slider">
<li class="selected first-slide">
<div class="cd-full-width">
<div class="tm-slide-content-div slide-caption">
<div>
<center> <h2>You can help someone</h2></center>
<center> <h3>Click on the button below :</h3></center>
</div>
<div class="container">
<div class="col-md-8 ">
<div class="col-md-2 col-md-offset-7">
<div>
<div class="panel-body">
<?php include("includes/user_display.php"); ?>
</div>
</div>
</div>
</div>
</div>
</li>
</ul>
</section>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="css/script.js"></script>
<br>
<br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br>
<br><br>
<?php
include 'includes/footer.php';
?>
<?php include("includes/jscript.php"); ?>
</body>
</html>