<?php

require_once "inc/initialize.php";
include "inc/header.php";
include 'inc/validate.php';
$assessment_id = $_GET['id'];
$assessment = assessment::find_by_id($assessment_id);
$team = team::find_by_id($assessment->team_id);
$goal = goal::find_by_id($assessment->goals_id);
$user = user::find_by_id($assessment->user_id);
$team_type = $team->team_type;
if ($team_type == 0) {
    $slo = slo::find_by_id($assessment->slo_id);
}
?>
   <div class="well">         
            <h1>Submitted Assessment : Date <?php 
echo $assessment->submit_date;
?>
</h1>
                        		            <h3 style="color: #004990;"> Unit:  <?php 
echo $team->team_name;
?>
</h3>
                        <h3 style="color: #004990;">Name : <?php 
echo $user->full_name();
?>
 </h3>
<br>
<button type="button" onclick="location.href='print_form.php?id=<?php 
echo $assessment_id;
<?php

require_once "inc/initialize.php";
include 'inc/validate.php';
$goals_id = $_GET['goal_id'];
$goal = goal::find_by_id($goals_id);
$goal->inactive = 1;
echo $goal->update('goals_id', $goals_id);
?>
<html>
  <head>
    <title>IU Webmaster redirect</title>
    <META http-equiv="refresh" content="0;URL=goal_management.php">
  </head>
  <body bgcolor="#ffffff">

  </body>
</html>