bbn/note.php

29 lines
1.0 KiB
PHP

<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">
<input type="submit" name="preview" value="preview" accesskey="p">
<input type="submit" name="links" value="links" accesskey="l">
<input type="submit" name="stats" value="stats" accesskey="i">
<input type="submit" name="delete" value="delete" accesskey="d">
<?php
if (isset($_POST['stats']))
{
echo '<div>
<span class="grey">lines:' . $lines . '</span>
<span class="grey">words:'. $words . '</span>
<span class="grey">chars:' . $chars . '</span>
</div>';
}
else if (isset($_POST['links']))
{
echo linksdiv($content);
}?>
<div><input autocomplete="off" class="title" name="title" value="<? echo $title; ?>"></div>
</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>