chiro-canto/public/articles/edit.php

42 lines
1.7 KiB
PHP
Raw Normal View History

2021-04-05 15:37:12 +02:00
<?php
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
?>
<!DOCTYPE html>
<html lang="en">
<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>Articles | Chiro - Canto</title>
<link rel="stylesheet" type="text/css" href="/styles/style.css">
</head>
<?php
include("$root/analytics/matomo.php");
?>
<body>
<?php include("$root/menu.php");?>
<?php include("$root/header.php");?>
<section>
<h2>Articles</h2>
<article>
<h3>Create an article</h3>
<form action="admin.php?action=new" method="post">
<label for="publication_date">Publication Date</label>
<input type="date" name="publication_date" id="publication_date">
<label for="modification_date">Modification Date</label>
<input type="date" name="modification_date" id="modification_date">
<label for="title">Title</label>
<input type="text" name="title" id="title" placeholder="Enter article title..">
<label for="summary">Summary</label>
<textarea id="summary" name="summary" placeholder="Enter article summary (support Markdown).."></textarea><br>
<label for="content">Content</label>
<textarea id="content" name="content" placeholder="Enter article content (support Markdown).." rows="100"></textarea><br>
<input type="submit" name="save" value="Send Article">
<input type="reset" value="Reset">
</form>
</article>
</section>
<?php include("$root/footer.php");?>
</body>
<script src="/scripts/script.js"></script>
</html>