Bugfix
[ayans.git] / templates / save.tpl.php
blobbb7ce77503d039d154ecda6eef1e95ac5428ab58
1 <div id="editor">
2 <?php
3 if (defined('ON_EDIT')) {
4 $title = "Edit news";
5 } else {
6 $title = "Insert News";
8 ?>
9 <?php echo "<h1>$title</h1>"; ?>
10 <p><a href="index.php">back to home</a></p>
11 <?php
12 if ($this->password_fail) {
13 echo "<div id=\"notice\">Can't login. Please check your password.</div>";
15 if (isset($this->updated) && $this->updated == true) {
17 <p>Post fully updated.</p>
18 </div>
19 <?php
20 } else {
22 <div id="content">
23 <form action="<?php echo $this->action ?>" method="post">
24 <input type="text" name="title" value="<?php echo $this->input_title ?>" size="80" /><br />
25 <textarea name="text" id="text" cols="80" rows="23"><?php echo $this->input_text ?></textarea>
26 <p><small>
27 news documents are written using <a href="http://daringfireball.net/projects/markdown/syntax">Markdown syntax</a>.
28 </small></p>
30 <p align="right">
31 <strong>Password:</strong> <input type='password' name='password' size='20'/><br />
32 <input type="submit" value="Share" />
33 </p>
34 </form>
35 </div>
36 </div>
37 <?php