-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgallery.php
93 lines (75 loc) · 2.47 KB
/
gallery.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
<?php include "includes/db.php"; ?>
<!DOCTYPE HTML>
<!--
Lens by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<link rel="shortcut icon" type="image icon" href="https://res.cloudinary.com/sarabgi/image/upload/v1688669789/Assets/lplogo_bje93b.png">
<title>Gallery | The City of Las Piñas</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="./Assets/galleryassets/css/main.css" />
<noscript>
<link rel="stylesheet" href="./Assets/galleryassets/css/noscript.css" />
</noscript>
</head>
<body class="is-preload-0 is-preload-1 is-preload-2">
<audio id="galleryspeech">
<source src="gaellry.mp3">
</audio>
<script>
window.addEventListener('DOMContentLoaded', function() {
var audio = document.getElementById("galleryspeech");
var playLink = document.getElementById("playLinkG");
playLink.addEventListener('click', function(event) {
event.preventDefault();
audio.play();
});
});
</script>
<!-- Main -->
<div id="main">
<!-- Header -->
<header id="header">
<a href="#" id="playLinkG">
<h1>Gallery</h1>
</a>
<p>this is the gallery of Las Pinas</p>
<ul class="icons">
<li>
<h2><a href="index.php" class="fa fa-home"><span class="label">Home</span></a></h2>
</li>
</ul>
</header>
<!-- Thumbnail -->
<section id="thumbnails">
<?php
$query = "SELECT * FROM gallery";
$all_gal_query = mysqli_query($connection, $query);
while ($row = mysqli_fetch_assoc($all_gal_query)) {
$img_title = $row['img_title'];
$img_image = $row['img_image'];
$img_status = $row['img_status'];
$img_desc = $row['img_desc'];
$img_date = date("F j, Y, g:i a", strtotime($row["img_date"]));
?>
<article>
<a class="thumbnail" href="<?php echo $img_image; ?>" data-position="left center"><img style="height: 150px;" src="<?php echo $img_image; ?>" alt="gallery img" /></a>
<h2><?php echo $img_title; ?></h2>
<p><?php echo $img_desc; ?></p>
<span><?php echo $img_date; ?></span>
</article>
<?php
} ?>
</section>
</div>
<!-- Scripts -->
<script src="./Assets/galleryassets/js/jquery.min.js"></script>
<script src="./Assets/galleryassets/js/browser.min.js"></script>
<script src="./Assets/galleryassets/js/breakpoints.min.js"></script>
<script src="./Assets/galleryassets/js/main.js"></script>
</body>
</html>