-
Notifications
You must be signed in to change notification settings - Fork 0
/
result.php
58 lines (54 loc) · 2.29 KB
/
result.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
<?php
include("assets/functions.php");
include("search.php");
?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>落とし物検索システム-検索結果</title>
<!-- style -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- script -->
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/public.js"></script>
</head>
<body>
<?php include("assets/_inc/header.php") ?>
<div class="my-4 py-4"> </div>
<main>
<div class="container">
<?php if ($companies) : ?>
<p><?= implode(",", $keywords) ?>に該当するデータは<?= count($companies) ?>件です</p>
<div class="row">
<?php foreach ($companies as $company) : ?>
<div class="col-12 col-sm-6 my-2">
<div class="card">
<a href="show.php?id=<?= h($company['id']) ?>" class="card-link card-header">
<?= h($company['name']) ?>
</a>
<div class="card-body">
<h6 class="card-title">営業時間等</h4>
<p class="card-text"><?= h($company['details']) ?></p>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<?php else : ?>
<div class="card my-2">
<div class="card-body">
<p class="card-text"><?= implode(",", $param) ?>に該当するデータはありませんでした</p>
</div>
</div>
<?php endif; ?>
<div class="text-right">
<button type="button" class="btn btn-primary" onclick="history.back()">検索画面に戻る</button>
</div>
</div>
</main>
<?php include 'assets/_inc/footer.php' ?>
</body>
</html>