bbn/note.php

26 lines
1.1 KiB
PHP
Raw Normal View History

2024-03-06 08:33:44 +01:00
<form action="index.php" method="POST">
<div>
<input type="submit" name="home" value="home" accesskey="h">
<input type="submit" name="save" value="save" accesskey="s">
2024-09-30 10:08:36 +02:00
<input type="submit" name="preview" value="preview" accesskey="p" formtarget="_blank">
2024-03-12 12:12:13 +01:00
<input type="submit" name="links" value="links" accesskey="l">
2024-03-12 14:09:49 +01:00
<input type="submit" name="stats" value="stats" accesskey="i">
<input type="submit" name="delete" value="delete" accesskey="d">
2024-03-15 15:11:51 +01:00
<input hidden name="lastchanged" value="<? echo $lastchanged; ?>">
2024-03-12 14:09:49 +01:00
<?php
if (isset($_POST['stats']))
{
2024-10-02 10:04:19 +02:00
echo '<div class="grey">' . $lines . '&nbsp;' . $words . '&nbsp;' . $chars . '&nbsp;' . $title . '.md</div>';
2024-03-12 14:09:49 +01:00
}
else if (isset($_POST['links']))
2024-03-12 12:12:13 +01:00
{
echo linksdiv($content);
}?>
<div><input autocomplete="off" class="title" name="title" value="<? echo $title; ?>"></div>
2024-03-06 08:33:44 +01:00
</div>
<div class="editor">
<textarea rows="<? echo $rows; ?>" autofocus name="content" spellcheck="false"><? echo $content; ?></textarea>
</div>
<input hidden name="previoustitle" value="<? echo $title; ?>">
</form>