require_once "inc/initialize.php"; include 'inc/admin_validate.php'; include "inc/header.php"; $team_id = $_GET['team_id']; $team = team::find_by_id($team_id); $sql = "select * from intended_outcome where team_id={$team_id} order by inactive"; ?> <div class="well"> <?php $i = 0; echo "<div class='row'><div class='col-xs-12'><h1 align='center'>" . $team->team_name . "</h1></div></div>"; ?> <div class='row'><div class='col-xs-8'><h3>Intended Outcome Text</h3></div><div class='col-xs-4'><h3 align='center'>Make Inactive</h3></div></div> <?php $intended_outcomes = intended_outcome::find_by_sql($sql); foreach ($intended_outcomes as $intended_outcome) { if ($intended_outcome->inactive == 0) { ?> <div class='row'> <div class='col-xs-8'><a href="edit_intended_outcome.php?intended_outcome_id=<?php echo $intended_outcome->intended_outcome_id; ?> "><?php echo $intended_outcome->intended_outcome_text; ?> </a></div><div class='col-xs-4'><div align='center'><button type='button' onclick='deactivate_confirm(<?php echo $intended_outcome->intended_outcome_id; ?>
<?php require_once "inc/initialize.php"; include "inc/header.php"; 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;
<?php require_once "inc/initialize.php"; require_once "inc/header.php"; //include 'inc/admin_validate.php'; $team_id = $_GET['team_id']; $draft = $_GET['draft']; $final = $_GET['final']; $initial = @$_GET['initial']; $team = team::find_by_id($team_id); $IO_count = count($intended_outcome = intended_outcome::find_by_sql("select * from intended_outcome where team_id={$team_id}")); if ($team->team_type == 0) { $sql = "SELECT * FROM assessment, users, team, slo WHERE assessment.team_id = '{$team_id}' AND \n\tassessment.user_id=users.user_id AND assessment.team_id=team.team_id AND assessment_period <> 2014 AND assessment.slo_id=slo.slo_id"; } else { if ($IO_count > 0) { $sql = "SELECT * FROM assessment, users, team, intended_outcome WHERE assessment.team_id = '{$team_id}' AND \n\t\t\t\t\t\t\tassessment.user_id=users.user_id AND assessment.team_id=team.team_id AND assessment_period <> 2014 AND \n\t\t\t\t\t\t\tassessment.intended_outcome_id=intended_outcome.intended_outcome_id"; } else { $sql = "SELECT * FROM assessment, users, team WHERE assessment.team_id = '{$team_id}' AND assessment_period <> 2014 AND \n\t\t\t\t\t\t\tassessment.user_id=users.user_id AND assessment.team_id=team.team_id"; } } if ($initial) { if ($draft) { $sql = $sql . " AND NOT submitted"; } else { $sql = $sql . " AND submitted = 1 AND (data_summary IS NULL OR data_summary='')"; } } else { if ($final) { if ($draft) { $sql = $sql . " AND data_summary <> '' AND NOT completed"; } else {