parent
98c96582d3
commit
b35c6dfe51
10
index.php
10
index.php
|
@ -27,6 +27,8 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: inherit;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -42,7 +44,11 @@
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<a accesskey="l" href="index.php">List</a> <a accesskey="n" href="index.php?open=' . time() . '.md">New</a>';
|
echo '<form action="index.php" method="GET">
|
||||||
|
<a accesskey="h" href="index.php">Home</a>
|
||||||
|
<input name="open" value="' . time() . '.md">
|
||||||
|
<input accesskey="n" type="submit" value="Create new">
|
||||||
|
</form>';
|
||||||
|
|
||||||
if (isset($_POST['savebutton']))
|
if (isset($_POST['savebutton']))
|
||||||
{
|
{
|
||||||
|
@ -74,7 +80,7 @@
|
||||||
$nblines = substr_count($content, "\r\n");
|
$nblines = substr_count($content, "\r\n");
|
||||||
|
|
||||||
echo '<form action="index.php" method="POST">
|
echo '<form action="index.php" method="POST">
|
||||||
<br><div><input class="title" readonly name="title" value="' . $title . '"></div><br>
|
<br><div><input class="title" name="title" value="' . $title . '"></div><br>
|
||||||
<div>
|
<div>
|
||||||
<textarea rows="' . $nblines. '" autofocus name="content" spellcheck="false">' . $content . '</textarea>
|
<textarea rows="' . $nblines. '" autofocus name="content" spellcheck="false">' . $content . '</textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue