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

if (isset($_POST['id']))
{
	$news->edit($_POST['id'], $_POST['title'], $_POST['body'], isset($_POST['visible']));
	header("Location: ?p=n&a=e&saved");
}
elseif (isset($_GET['saved']))
{
	$system->contentTemplate->set('saved', true);
}
else
{
	$id = $_GET['id'];
	$system->contentTemplate->set('newsItem', $news->get($id));
	$system->contentTemplate->set('saved', false);
}

?>
Return current item: Dev's CMS