-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts.php
More file actions
62 lines (57 loc) · 2.17 KB
/
posts.php
File metadata and controls
62 lines (57 loc) · 2.17 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
<?php
require_once "./includes/config_session.inc.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Posts</title>
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap" rel="stylesheet">
<link rel="stylesheet" href="fontawesome/css/all.min.css">
<link rel="stylesheet" href="./css/bootstrap.min.css">
<link href="css/main.css" rel="stylesheet">
<link href="css/cards_posts.css" rel="stylesheet">
</head>
<body>
<?php
include('components/header.php');
?>
<div>
<main class="tm-main">
<h1 id="error"></h1>
<div class="mb-3">
<div>
<label for="sort-by">Sort By:</label>
<select class="form-control" name="sort-by" id="sort-by">
<option value="1">Last Created</option>
<option value="2">First Created</option>
<option value="3">Title</option>
</select>
</div>
<div>
<label for="categorySelect">Categories names:</label>
<select class="form-control" name="categorySelect" id="categorySelect">
</select>
</div>
<div>
<label for="author-name">Authors names:</label>
<select class="form-control" name="author-name" id="author-name">
</select>
</div>
<div id="print-json"></div>
</div>
<div id="all-posts"></div>
<button class="btn btn-outline-info" id="load-more-button">Load More</button>
<div id="loading" style="display: none; text-align: center;">
<img src="./img/loading.gif" width="200px" alt="">
</div>
<div id="not-found"></div>
<?php include_once('components/footer.php') ?>
</main>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/main.js"></script>
<script src="js/posts.js"></script>
</body>
</html>