-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcinemaspage.php
More file actions
88 lines (63 loc) · 2.71 KB
/
Copy pathcinemaspage.php
File metadata and controls
88 lines (63 loc) · 2.71 KB
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
<!-- PAGINA CON TUTTI I FILMS + RICERCA -->
<!DOCTYPE html>
<head>
<title>Ricerca cinema</title>
<!-- IMMAGINE FAVICON -->
<link rel="icon" type="image/x-icon" href="./media/logo/logo_min.png"/>
<?php
echo "<link rel='stylesheet' type='text/css' href='stilecinemaspage.css'>";
echo "<link rel='stylesheet' type='text/css' href='stileNavFoot.css'>";
echo "<link rel='preconnect' href='https://fonts.googleapis.com'>";
echo "<link rel='preconnect' href='https://fonts.gstatic.com' crossorigin>";
echo "<link href='https://fonts.googleapis.com/css2?family=DM+Sans:wght@500&display=swap' rel='stylesheet'>";
?>
</head>
<body>
<?php include('navbar.php'); ?>
<div id="container1">
<div id="slogan">
<h1>Cerca un cinema<br>nei dintorni.</h1>
</div>
<div id="imgarea"></div>
</div>
<div id="searchcinema">
<form method="POST" action="searchcinema.php">
<input type="text" id="searcharea" name="search" class="txt" size="30" placeholder="Cerca nome o citta' del cinema">
<input type="submit" id="searchbtn" name="searchc" value="Cerca">
</form>
</div>
<hr id="cinemaline" >
<?php
require_once("files/connproj.php");//inclusione file connessione al database
$query= "SELECT * FROM cinema ";
$result= $connection->query($query);
if($result->num_rows>0) {
while($row = $result->fetch_assoc()){
?>
<div id="cinemalist">
<div id="cinemabox">
<div class="cinemaname"?><h1 id="name"><?= $row['nome'] ?></h1></div>
<div class="infointest">
<span class="info">
<h2>Città:</h2><p><?= $row['citta'] ?></p>
<h2>Via:</h2><p><?= $row['indirizzo'] ?></p>
<h2>Telefono:</h2><p><?= $row['telefono'] ?></p>
<?php if (!empty($row['link'])){ ?>
<h2>Link sito web 👉<a href="<?= $row['link'] ?>" id="finger">Clicca qui!</a></h2>
<?php } ?>
</span>
</div>
</div>
</div>
<?php } } ?>
<!-- JQUERY CDM x far funzionare filtro ricerca -->
<script
src="https://code.jquery.com/jquery-3.6.0.js"
integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk="
crossorigin="anonymous">
</script>
<!-- script per filtro ricerca cinema -->
<script src="js/filter.js"></script>
<?php include('footer.html'); ?>
</body>
</html>