-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcharacters.php
34 lines (32 loc) · 991 Bytes
/
characters.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
<?php
require_once 'src/includes/heading.php';
require_once 'src/class/Characters.class.php';
$pageName .= ' - Characters';
include 'src/includes/head.php'; ?>
<body>
<?php $page = 'characters'; include 'src/includes/header.php'; ?>
<?php include 'src/includes/account.php'; ?>
<div class="main">
<section class="browse">
<div class="title">
<div></div>
<h1>Browse Characters</h1>
</div>
<div class="search">
<div class="input-search"><form method="post" action="#"><input type="text" name="name" placeholder="SEARCH"></form></div>
</div>
</section>
<section class="result-browsed">
<?php
$characters = new Characters();
if(!empty($_POST))
$characters->filter($_POST['name']);
else
$characters->displayCharacters();
?>
</section>
</div>
<?php include 'src/includes/footer.php' ?>
<?php include 'src/includes/foot-script.html' ?>
</body>
</html>