-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor.php
26 lines (20 loc) · 889 Bytes
/
editor.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
<?php include_once 'bnav.php'; ?>
<script type="text/javascript" src="//cdn.ckeditor.com/4.5.3/standard/ckeditor.js"></script>
<h1>Add a new news Article</h1>
<form action="form_handler.php" method="post">
<div>
<textarea cols="80" rows="10" id="articleContent" name="content">
<h1>Article Title</h1>
<p>Here's some sample text</p>
</textarea>
<?php
echo '<label for="fromdate">Display From : </label><input name="fromdate" type="date" value="'.date("Y-m-d").'"/>';
echo '<label for="todate">Display To : </label><input name="todate" type="date" value="'.date("Y-m-d",strtotime("tomorrow")).'"/>';
?>
<script type="text/javascript">
CKEDITOR.replace( 'articleContent' );
</script>
<input type="submit" value="Submit"/>
</div>
</form>
<?php include_once 'bfooter.php'; ?>