Location: PHPKode > projects > Dev's CMS > devscms/admin/modules/documents/edit.php
<?php

if (isset($_POST['id'])) {
	$documents->edit($_POST['id'], $_POST['title'], $_POST['body'], isset($_POST['visible']), $_POST['parent']);
	header("Location: ?p=d&a=e&saved");
} elseif (isset($_GET['saved'])) {
	$system->contentTemplate->set('saved', true);
} else {
	$id = $_GET['id'];
	$system->contentTemplate->set('document', $documents->get($id));
	$system->contentTemplate->set('saved', false);
	
	$system->contentTemplate->set('menu',  $documents->generateMenu($documents->getAll()));
}
Return current item: Dev's CMS