コード例 #1
0
ファイル: edit_news.php プロジェクト: Ghaji/form_application
<?php

require_once "../inc/initialize.php";
//checks if admin user is logged in
if (!$session->is_admin_logged_in()) {
    redirect_to('index.php');
}
if (isset($_POST['nid']) && !empty($_POST['nid'])) {
    $news = News_Events::find_by_id(customDecrypt($_POST['nid']));
    // print_r($news->title);
    // die();
}
?>
<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title>University of Jos, Nigeria</title>
		<?php 
require_once LIB_PATH . DS . 'css.php';
?>
	</head>

	<body>

		<!-- beginnning of main content-->
		<!-- header -->
		<?php 
include_layout_template('admin_header.php');
?>
		<!-- //header -->