parent
8c737a5966
commit
98c96582d3
18
index.php
18
index.php
|
@ -13,11 +13,21 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<meta charset="UTF-8">
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: helvetica;
|
||||
}
|
||||
textarea {
|
||||
height: 500px;
|
||||
width: 100%;
|
||||
border: none;
|
||||
outline: none;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
}
|
||||
.title {
|
||||
width: 100%;
|
||||
border: none;
|
||||
outline: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
@ -61,10 +71,12 @@
|
|||
$content = file_get_contents($dir . '/' . $title);
|
||||
}
|
||||
|
||||
$nblines = substr_count($content, "\r\n");
|
||||
|
||||
echo '<form action="index.php" method="POST">
|
||||
<br><div><input name="title" value="' . $title . '"></div><br>
|
||||
<br><div><input class="title" readonly name="title" value="' . $title . '"></div><br>
|
||||
<div>
|
||||
<textarea autofocus name="content" spellcheck="false">' . $content . '</textarea>
|
||||
<textarea rows="' . $nblines. '" autofocus name="content" spellcheck="false">' . $content . '</textarea>
|
||||
</div>
|
||||
<input type="submit" name="savebutton" value="save" accesskey="s">
|
||||
<input accesskey="d" type="submit" name="deletebutton" value="delete">
|
||||
|
|
Loading…
Reference in New Issue