-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
61 lines (52 loc) · 1.75 KB
/
index.php
File metadata and controls
61 lines (52 loc) · 1.75 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
<?php
session_start();
require_once 'include/database.class.php';
require_once 'include/user.class.php';
require_once 'include/movie.class.php';
$user = new User();
$movieClass = new Movie();
$movies = $movieClass->getAllMovies();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>CineSNAP!</title>
<?php
require 'include/head.php';
?>
</head>
<body>
<?php
include 'include/navbar.php';
?>
<main>
<section id="home-banner" class="center">
<article class="fade-in-slow">
<h1 class="text-center">The movie world,<br>only a <span class="text-accent fade-in-slow">snap</span> away</h1>
<article id="searchbar">
<form id="searchform">
<input type="text" placeholder="Search anything..." id="searchinput" />
<button type="submit"><i class="fas fa-search"></i></button>
</form>
</article>
</article>
<section id="tile-background-wrapper" class="fade-opacity-bottom">
<section id="tile-background" class="tiles-container">
<?php foreach ($movies as $movie): ?>
<article class="tile-wrapper">
<article class="tile">
<article class="tile-image">
<img src="img/movie/cover/<?= htmlspecialchars($movie->cover) ?>" alt="">
</article>
</article>
</article>
<?php endforeach; ?>
</section>
</section>
</section>
</main>
<?php
include 'include/footer.php';
?>
</body>
</html>