<?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;
示例#2
0
include 'inc/validate.php';
//Assign the team_id from the pickteam url parameter
$team_id = $_GET['team_id'];
$user_id = $_GET['user_id'];
$my_date = date("Y-m-d");
$my_year = date("Y");
$goal_sql = "select * from goals where inactive='0'";
$slo_sql = "select * from slo where team_id={$team_id}";
$intended_outcome_sql = "SELECT * from intended_outcome where team_id={$team_id}";
$IO_count = count($intended_outcomes = intended_outcome::find_by_sql($intended_outcome_sql));
$team = team::find_by_id($team_id);
$team_id = $team->team_id;
$user = user::find_by_id($user_id);
$username = $user->user_username;
$goals = goal::find_by_sql($goal_sql);
$slos = slo::find_by_sql($slo_sql);
$poption = "1";
$home = "";
/*echo "<pre>";
print_r($_POST);
echo "</pre>";*/
if ($_POST) {
    $poptions = $_POST;
    foreach ($poptions as $poption => $poption_value) {
        $home = empty($poption_value) ? $poption : "empty";
        if ($home == $poption) {
            break;
        }
        echo $completed = 1;
    }
}
<?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>