fix php tags
This commit is contained in:
		
							parent
							
								
									5e61fba372
								
							
						
					
					
						commit
						feb3fad070
					
				
							
								
								
									
										18
									
								
								note.php
								
								
								
								
							
							
						
						
									
										18
									
								
								note.php
								
								
								
								
							| 
						 | 
				
			
			@ -79,7 +79,7 @@
 | 
			
		|||
<!DOCTYPE html>
 | 
			
		||||
<html>
 | 
			
		||||
	<head>
 | 
			
		||||
		<title><? echo $title; ?></title>
 | 
			
		||||
		<title><?php echo $title; ?></title>
 | 
			
		||||
		<link rel="manifest" href="manifest.json" />
 | 
			
		||||
		<meta name="theme-color" content="white" />
 | 
			
		||||
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
 | 
			
		||||
| 
						 | 
				
			
			@ -88,7 +88,7 @@
 | 
			
		|||
	</head>
 | 
			
		||||
	<body>
 | 
			
		||||
		<!-- editor -->
 | 
			
		||||
		<div  <? if(isset($_GET['preview'])) echo 'hidden'; ?>>
 | 
			
		||||
		<div  <?php if(isset($_GET['preview'])) echo 'hidden'; ?>>
 | 
			
		||||
			<form action="note.php" method="POST">
 | 
			
		||||
				<div>
 | 
			
		||||
					<input type="submit" name="home" value="home" accesskey="h">
 | 
			
		||||
| 
						 | 
				
			
			@ -96,13 +96,13 @@
 | 
			
		|||
					<input type="submit" name="preview" value="preview" accesskey="p">
 | 
			
		||||
					<input type="submit" name="download" value="download" accesskey="d">
 | 
			
		||||
					<input type="submit" name="delete" value="delete">
 | 
			
		||||
					<input hidden name="lastchanged" value="<? echo $lastchanged; ?>">
 | 
			
		||||
					<div><input autocomplete="off" class="title" name="title" value="<? echo $title; ?>"></div>
 | 
			
		||||
					<input hidden name="lastchanged" value="<?php echo $lastchanged; ?>">
 | 
			
		||||
					<div><input autocomplete="off" class="title" name="title" value="<?php echo $title; ?>"></div>
 | 
			
		||||
				</div>
 | 
			
		||||
				<div class="editor">
 | 
			
		||||
					<textarea rows="<? echo $rows; ?>" autofocus name="content" spellcheck="false"><? echo $content; ?></textarea>
 | 
			
		||||
					<textarea rows="<?php echo $rows; ?>" autofocus name="content" spellcheck="false"><?php echo $content; ?></textarea>
 | 
			
		||||
				</div>
 | 
			
		||||
				<input hidden name="previoustitle" value="<? echo $title; ?>">
 | 
			
		||||
				<input hidden name="previoustitle" value="<?php echo $title; ?>">
 | 
			
		||||
				<?php
 | 
			
		||||
					echo '<div class="grey">' . $lines . ' ' . $words .  ' ' . $chars . ' ' . $title . '.md</div>';
 | 
			
		||||
					echo linksdiv($content);
 | 
			
		||||
| 
						 | 
				
			
			@ -111,9 +111,9 @@
 | 
			
		|||
		</div>
 | 
			
		||||
 | 
			
		||||
		<!-- preview -->
 | 
			
		||||
		<div <? if(!isset($_GET['preview'])) echo 'hidden'; ?>>
 | 
			
		||||
			<div><a class="grey" href="note.php?title=<? echo $title; ?>">back</a></div>
 | 
			
		||||
			<?
 | 
			
		||||
		<div <?php if(!isset($_GET['preview'])) echo 'hidden'; ?>>
 | 
			
		||||
			<div><a class="grey" href="note.php?title=<?php echo $title; ?>">back</a></div>
 | 
			
		||||
			<?php
 | 
			
		||||
				echo computepreview($title, $content);
 | 
			
		||||
			?>
 | 
			
		||||
		</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue