예제 #1
0
<?php

/*
 Project name : BITuN
 Start Date : 18 Apr, 2015 12:56:50 PM
 Author: Adarsh
 Purpose :
*/
session_start();
include 'classes/editArticleClass.php';
$eArticle = new editArticle();
$author_id = $eArticle->authenticate();
/* Check whether the user is an author */
if (!$author_id) {
    header("LOCATION: /");
}
function dispEr($msg)
{
    echo "<p class='bg-danger'>{$msg}</p>";
}
function displayEditForm($eArticle)
{
    $row = $eArticle->getArticleDetails();
    if ($row == FALSE) {
        dispEr($eArticle->erm);
    }
    ?>
<!DOCTYPE HTML>
<html>
	<head>
		<style>