$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"> eos; $r->view_update_hour($HourInformation); echo <<<eos \t\t\t</div> \t\t</div> \t</div> </div> </div> eos; } include_once 'template/footer.php';