always show links and stats at the bottom
This commit is contained in:
		
							parent
							
								
									fb84c7f4ea
								
							
						
					
					
						commit
						cd8d52249c
					
				|  | @ -130,7 +130,7 @@ | |||
| 	{ | ||||
| 		downloadall(); | ||||
| 	} | ||||
| 	else if (isset($_POST['save']) || isset($_POST['home']) || isset($_POST['links']) || isset($_POST['stats']) || isset($_POST['download'])) | ||||
| 	else if (isset($_POST['save']) || isset($_POST['home']) || isset($_POST['download'])) | ||||
| 	{ | ||||
| 		$title = $_POST['title']; | ||||
| 		$content = $_POST['content']; | ||||
|  |  | |||
							
								
								
									
										15
									
								
								note.php
								
								
								
								
							
							
						
						
									
										15
									
								
								note.php
								
								
								
								
							|  | @ -3,24 +3,17 @@ | |||
| 		<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" formtarget="_blank"> | ||||
| 		<input type="submit" name="links" value="links" accesskey="l"> | ||||
| 		<input type="submit" name="stats" value="stats" accesskey="i"> | ||||
| 		<input type="submit" name="download" value="download" accesskey="d"> | ||||
| 		<input type="submit" name="delete" value="delete"> | ||||
| 		<input hidden name="lastchanged" value="<? echo $lastchanged; ?>"> | ||||
| 		<?php | ||||
| 		if (isset($_POST['stats'])) | ||||
| 		{ | ||||
| 			echo '<div class="grey">' . $lines . ' ' . $words .  ' ' . $chars . ' ' . $title . '.md</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; ?>"> | ||||
| 	<?php | ||||
| 		echo '<div class="grey">' . $lines . ' ' . $words .  ' ' . $chars . ' ' . $title . '.md</div>'; | ||||
| 		echo linksdiv($content); | ||||
| 	?>
 | ||||
| </form> | ||||
|  |  | |||
|  | @ -21,8 +21,6 @@ No javascript. | |||
| | home (default action)  | save and back to home    | alt-h  | | ||||
| | save                   | save                     | alt-s  | | ||||
| | preview                | save and show markdown preview | alt-p  | | ||||
| | links                  | save and show links      | alt-l  | | ||||
| | stats                  | save and show stats      | alt-i  | | ||||
| | delete                 | delete (rename as .del)  | alt-d  | | ||||
| 
 | ||||
| | Url params             | action                   | | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 quenousimporte
						quenousimporte