<?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';
$slo_id = $_GET['slo_id'];
$slo = slo::find_by_id($slo_id);
//$slo = new SLO();
//$slo->slo_id = $slo_id;
$slo->inactive = 1;
echo $slo->update('slo_id', $slo_id);
?>

<html>
  <head>
    <title>IU Webmaster redirect</title>
    <META http-equiv="refresh" content="0;URL=list_slo.php?team_id=<?php 
echo $slo->team_id;
?>
">
  </head>
  <body bgcolor="#ffffff">

  </body>
</html>