<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <?php include_once '../../credentials.php'; include_once 'view/view_hour.php'; include_once 'model/model_hour.php'; include_once 'controller/controller_auth.php'; $a = new controller_auth($username, $password); $m = new model_page($username, $password); $r = new view_page($username, $password); include_once 'template/header.php'; $a->do_auth($username, $password); if ($_SESSION['valid'] == TRUE) { //Initialize and set relevant arrays $HourID = $_GET['id']; $HourInformation = $m->get_hour_information($HourID); //Process submitted information. if (isset($_GET['action'])) { $action = $_GET['action']; $m->{$action}($_POST); } //Start Main Content Here echo <<<eos <div class="row"> <div class="col-md-12"> \t<div class="row"> \t\t<div class="panel panel-info"> \t\t\t<div class="panel-heading"> \t\t\t\t<h3 class="panel-title">Edit Hour</h3> \t\t\t</div> \t\t\t<div class="panel-body">