-
Notifications
You must be signed in to change notification settings - Fork 0
/
restaurants.php
137 lines (115 loc) · 5.2 KB
/
restaurants.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
<!DOCTYPE html>
<html lang="en">
<?php
include("connection/connect.php");
error_reporting(0);
session_start();
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="#">
<title>Restaurants</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animsition.min.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<header id="header" class="header-scroll top-header headrom">
<nav class="navbar navbar-dark">
<div class="container">
<button class="navbar-toggler hidden-lg-up" type="button" data-toggle="collapse" data-target="#mainNavbarCollapse">☰</button>
<a class="navbar-brand" href="index.php"> <img class="img-rounded" src="images/logo.png" alt="" width="18%"> </a>
<div class="collapse navbar-toggleable-md float-lg-right" id="mainNavbarCollapse">
<ul class="nav navbar-nav">
<li class="nav-item"> <a class="nav-link active" href="index.php">Home <span class="sr-only">(current)</span></a> </li>
<li class="nav-item"> <a class="nav-link active" href="restaurants.php">Restaurants <span class="sr-only"></span></a> </li>
<?php
if(empty($_SESSION["user_id"]))
{
echo '<li class="nav-item"><a href="login.php" class="nav-link active">Login</a> </li>
<li class="nav-item"><a href="registration.php" class="nav-link active">Register</a> </li>';
}
else
{
echo '<li class="nav-item"><a href="your_orders.php" class="nav-link active">My Orders</a> </li>';
echo '<li class="nav-item"><a href="logout.php" class="nav-link active">Logout</a> </li>';
}
?>
</ul>
</div>
</div>
</nav>
</header>
<div class="page-wrapper">
<div class="top-links">
<div class="container">
<ul class="row links">
<li class="col-xs-12 col-sm-4 link-item active"><span>1</span><a href="#">Choose Restaurant</a></li>
<li class="col-xs-12 col-sm-4 link-item"><span>2</span><a href="#">Pick Your favorite food</a></li>
<li class="col-xs-12 col-sm-4 link-item"><span>3</span><a href="#">Order and Pay</a></li>
</ul>
</div>
</div>
<div class="inner-page-hero bg-image" data-image-src="images/img/pimg.jpg">
<div class="container"> </div>
</div>
<div class="result-show">
<div class="container">
<div class="row">
</div>
</div>
</div>
<section class="restaurants-page">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-5 col-md-5 col-lg-3">
</div>
<div class="col-xs-12 col-sm-7 col-md-7 col-lg-9">
<div class="bg-gray restaurant-entry">
<div class="row">
<?php $ress= mysqli_query($db,"select * from restaurant");
while($rows=mysqli_fetch_array($ress))
{
echo' <div class="col-sm-12 col-md-12 col-lg-8 text-xs-center text-sm-left">
<div class="entry-logo">
<a class="img-fluid" href="dishes.php?res_id='.$rows['rs_id'].'" > <img src="admin/Res_img/'.$rows['image'].'" alt="Food logo"></a>
</div>
<!-- end:Logo -->
<div class="entry-dscr">
<h5><a href="dishes.php?res_id='.$rows['rs_id'].'" >'.$rows['title'].'</a></h5> <span>'.$rows['address'].'</span>
</div>
<!-- end:Entry description -->
</div>
<div class="col-sm-12 col-md-12 col-lg-4 text-xs-center">
<div class="right-content bg-white">
<div class="right-review">
<a href="dishes.php?res_id='.$rows['rs_id'].'" class="btn btn-purple">View Menu</a> </div>
</div>
<!-- end:right info -->
</div>';
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<?php include "include/footer.php" ?>
<script src="js/jquery.min.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/animsition.min.js"></script>
<script src="js/bootstrap-slider.min.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/headroom.js"></script>
<script src="js/foodpicky.min.js"></script>
</body>
</html>