Beispiel #1
0
        echo $assessment->slo_text;
        ?>
</a></td>
</tr>
<?php 
    }
}
?>
</table>
</div>

 <div class="well">
<h2>Administrative Units</h2>
<table border="1">
                 <?php 
$teams = team::find_by_sql($inst_team_sql);
foreach ($teams as $team) {
    $i = 0;
    echo "<tr><th colspan='4'><h3>" . $team->team_name . "</h3></th></tr>";
    ?>
    	   <tr><td width="200"><h4>Creator</h4></td><td width="700"><h4>Expected Outcome</h4></td></tr>
    	   <?php 
    $team_id = $team->team_id;
    $assessments = assessment::find_by_sql("select * from assessment, team_user join users on team_user.user_id=users.user_id where assessment.user_id=users.user_id  AND assessment_period='2015' AND submitted='1' AND team_user.team_id='{$team_id}'");
    foreach ($assessments as $assessment) {
        ?>
  
               			<tr>
               			<td><?php 
        echo $assessment->user_fname . " " . $assessment->user_lname;
        ?>
Beispiel #2
0
<?php

require_once "inc/initialize.php";
include 'inc/admin_validate.php';
include "inc/header.php";
include 'inc/admin_validate.php';
$user_id = $_GET['user_id'];
$user = user::find_by_id($user_id);
$sql = "select * from users as us inner join team_user as ut on us.user_id = ut.user_id inner join team te on ut.team_id=te.team_id where us.user_id='{$user_id}'";
$teams = team::find_by_sql($sql);
?>
            <div class="well">
<h2><?php 
echo $user->full_name();
?>
 is a member of the following teams:</h2>
 <?php 
foreach ($teams as $team) {
    echo "<h3>" . $team->team_name . "</h3>";
    // count how many teams the user is a member of, if
    @++$i;
}
?>
   <button type='button' onclick='deactivate_user(<?php 
echo $user_id;
?>
, <?php 
echo $team->team_type;
?>
)'>Deactivate User</button> 
    </div>
Beispiel #3
0
        ?>
</a></td>
							</tr>
							<?php 
    }
}
?>
	</table>
<!--	</div>-->
		<h2>Administrative Final</h2>
<!--<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#final_admin">Show Assessments</button>
   <div id="final_admin" class="collapse">-->
	<table border="1" class="table table-striped table-condensed">
	    	   <tr><td width="200"><h4>Creator</h4></td><td width="700"><h4>Expected Outcome</h4></td></tr>
		 <?php 
$teams = team::find_by_sql($final_inst_team_sql);
foreach ($teams as $team) {
    echo "<tr><th colspan='4'><div='column_header>" . $team->team_name . "</div></th></tr>";
    ?>

				<?php 
    $team_id = $team->team_id;
    $assessments = assessment::find_by_sql("select * from assessment, team, users where assessment.team_id='{$team_id}' and team.team_id=assessment.team_id AND assessment.user_id=users.user_id  AND submitted='1'");
    foreach ($assessments as $assessment) {
        ?>
  
							<tr>
							<td><?php 
        echo $assessment->full_name();
        ?>
</td>