-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomer.php
62 lines (43 loc) · 2.22 KB
/
Customer.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
<?php
session_start();
include './Assets/header.php';
include './Assets/customer-nav.php';
require './db.php';
?>
<center>
<div class="col-md-6 mx-auto">
<form action="SearchRest.php" method="post" class="input-group mb-3">
<input type="search" name="search" class="form-control" placeholder="ค้นหาอาหาร">
<button class="btn btn-outline-secondary" type="submit">ค้นหา</button>
</form>
</div>
<center>
<?php
$resp = $db->query("SELECT * FROM restaurant");
while ($row = mysqli_fetch_assoc($resp)) :
?>
<div class="">
<div class="container w-50">
<div class="row">
<div class="col">
<div class="card mb-3" style="max-width: 100%;">
<div class="row g-0">
<div class="col-md-4">
<img src="./Image/<?= $row['RestImg'] ?>" class="img-fluid rounded-start" alt="...">
</div>
<div class="col-md-8">
<div class="card-body">
<h2 class="card-title"><b><?= $row['RestName'] ?></b> </h2>
<p class="card-text"><?= $row['RestDetail'] ?></p>
<form action="CustomerMenu.php" method="post" style="margin-top: 10%;">
<input type="text" name="id" id="" value="<?= $row['RestID'] ?>" hidden>
<button class="btn btn-success mb-2 w-100" type="submit">เลือกดูเมนู</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php endwhile; ?>