-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApprove Articles.php
More file actions
76 lines (70 loc) · 2.85 KB
/
Copy pathApprove Articles.php
File metadata and controls
76 lines (70 loc) · 2.85 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
<?php
require_once "scripts/includes/fetch-curr-admin.php";
require_once "scripts/includes/fetch-articles-approve.php";
?>
<!DOCTYPE html>
<html lang="ar">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Approve Articles</title>
<!--vendor css files-->
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<!--main css files-->
<link rel="stylesheet" href="css/navBar&Footer.css">
<link rel="stylesheet" href="css/articles.css">
<link rel="stylesheet" href="css/admin panel.css">
<link rel="stylesheet" href="css/notification.css">
<link rel="stylesheet" href="css/profile page.css">
<link rel="icon" href="assets/logo.jpeg">
</head>
<body>
<!--begging navbar-->
<?php require_once "scripts/includes/navbar.php"; ?>
<!-- ending navbar -->
<?php if(count($articles2approve)) { ?>
<?php require_once "scripts/includes/view-notification.php"; ?>
<!-- Start Articles -->
<div class="articles">
<h2>Suspended Articles</h2>
<?php foreach($articles2approve as $article) {?>
<article>
<div class="article_container ">
<button class="aprv-button" data-artId="<?= $article["id"]; ?>" onclick="aprvArticle(this)">Approve</button>
<button class="del-button" data-artId="<?= $article["id"]; ?>" onclick="delArticle(this)">Delete</button>
<div class="article_information">
<p>
<?php echo $article["name"]; ?>
<br>
<?php echo $article["cr_date"]; ?>
</p>
</div>
<h1 class="article_title text-center">
<?php echo $article["title"]; ?>
</h1>
<?php if($article["picture"]) {?>
<div class="article_img_container text-center">
<img loading="lazy" src="<?php echo $article["picture"]; ?>" alt="<?php echo $article["title"]; ?>" class="article_img">
</div>
<?php } ?>
<div class="article_content article_full_content">
<?= processMarkdown($article["content"]); ?>
</div>
</div>
</article>
<?php } ?>
</div>
<!-- End Articles -->
<!--vendor js files-->
<!--main js files-->
<script src="js/art-approve-popup-control.js"></script>
<footer>
<a class="btn btn-danger logout_btn" href="scripts/logout.php">logout</a>
</footer>
<?php } else {?>
<h1 class="abs-center">No articles to approve</h1>
<?php } ?>
<script src="js/bootstrap.min.js"></script>
</body>
</html>