Exemple #1
0
	    		value="<?php 
echo escap($page['slug']);
?>
">
	  </div>

	  <div class="form-group">
	    <label for="body">Body</label>
	    <textarea class="form-control" rows="3" id="body" name="body" placeholder="body"><?php 
echo escap($page['body']);
?>
</textarea>
	  </div>
		
	  <input type="hidden" name="id" placeholder="id"
	    		value="<?php 
echo escap($page['id']);
?>
">

	  <button id="submit" name="submit" type="submit" class="btn btn-default">Modifica</button>
		 
	</fieldset>

	</form>


<?php 
require_once VIEW_ROOT . '/templates/footer.php';
?>
 
Exemple #2
0
if (!$page) {
    ?>
	
		<p> Nessuna pagina trovata</p>
	
	<?php 
} else {
    ?>
		
		<h2> <?php 
    echo escap($page['title']);
    ?>
 </h2>

		<?php 
    echo escap($page['body']);
    ?>
 

		<?php 
    $date = date_create($page['created']);
    ?>
		<p class="text-muted">Creato il <?php 
    echo date_format($date, 'd m Y');
    ?>
			
			<?php 
    if ($page['updated']) {
        ?>
				<?php 
        $dateU = date_create($page['updated']);