-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEdit Article.php
More file actions
68 lines (59 loc) · 2.74 KB
/
Copy pathEdit Article.php
File metadata and controls
68 lines (59 loc) · 2.74 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
<?php
require_once "scripts/includes/fetch-article-page.php";
if (!$article)
die("404 Page not found !");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Edit Article</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/all.css" />
<link rel="stylesheet" href="http://fonts.googleapis.com/earlyaccess/droidarabickufi.css" crossorigin />
<!--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/text-format-controller.css">
<link rel="stylesheet" href="css/profile page.css">
<link rel="icon" href="assets/logo.jpeg">
</head>
<body>
<main>
<div class="admin-form text-editor-fixer" id="add-article-form">
<form class="article_form" action="scripts/edit article.php?artid=<?= $article["id"] ?>" method="post" enctype="multipart/form-data">
<img loading="lazy" src="assets/logo.jpeg" alt="Salem clinic logo">
<h3>Edit Article</h3>
<hr>
<div>
<input type="text" name="title" class="box" dir="rtl" placeholder="العنوان" value="<?= $article['title'] ?>" required>
</div>
<div class="content-container">
<textarea name="meta_description" class="discription-txt" dir="rtl" placeholder="Meta description" required><?= $article["meta_description"] ?></textarea>
</div>
<?php include "scripts/includes/text-format-controller.php"; ?>
<div class="content-container">
<textarea name="content" class="box article_popup txt-ctrl-output content-editor-fixer" dir="rtl" placeholder="ادخل نص المقال ..." required><?= $article["markdown_content"] ?></textarea>
</div>
<div class="container">
<div class="txt-ctrl-preview" dir="rtl">
</div>
</div>
<div>
<input class="cer_file" type="file" name="picture" placeholder="Picture">
</div>
<input type="submit" value="Add" class="btn">
</form>
</div>
</main>
<script src="js/profile-popup-control.js"></script>
<script src="js/text-format-controller.js"></script>
<!--vendor js files-->
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/all.js"></script>
</body>
</html>