?>

	<td class="dclDateAdded" style="display: none;">Date Added</td>
	<td class="dclDateOfSource" style="display: none;">Date of Source</td>
	<td class="dclType" style="display: none;">Type</td>
	<td class="dclCode" style="display: none;">Code</td>
	<td class="dclFlag" style="display: none;">Flag</td>

<?php 
for ($j = 0; $j < count($active_project->hypotheses); $j++) {
    $this_hypothesis = new Hypothesis();
    $this_hypothesis->populateFromId($active_project->hypotheses[$j]);
    echo '<th class="hypothesis" onmouseover="return overlib(\'' . cleanForDisplay($this_hypothesis->description) . '\', CAPTION, \'Hypothesis\');" onmouseout="return nd();"><a href="' . $base_URL . 'project/' . $active_project->id . '/hypothesis/' . $this_hypothesis->id . '">' . $this_hypothesis->label . '</a> ';
    $rating_score = 0;
    for ($i = 0; $i < count($active_project->evidence); $i++) {
        $rating = $compare_user_2->getRating($active_project->evidence[$i], $active_project->hypotheses[$j]);
        $rating_score += getHypoRatingScore($rating);
        $rating = $compare_user->getRating($active_project->evidence[$i], $active_project->hypotheses[$j]);
        $rating_score += getHypoRatingScore($rating);
    }
    echo '<br><i>' . $rating_score . '</i></th>';
}
echo '</tr></thead><tbody>';
for ($i = 0; $i < count($active_project->evidence); $i++) {
    $this_evidence = new Evidence();
    $this_evidence->populateFromId($active_project->evidence[$i]);
    echo '<tr><td class="evidence" onmouseover="return overlib(\'' . cleanForDisplay($this_evidence->details) . '\', CAPTION, \'Evidence\');" onmouseout="return nd();"><a href="' . $base_URL . 'project/' . $active_project->id . '/evidence/' . $this_evidence->id . '">' . $this_evidence->name . '</a></td>';
    ?>

	<td class="dcDateAdded" style="display: none;"><?php 
    echo $this_evidence->created;
?>
"><?php 
echo $active_hypothesis->label;
?>
</a></h4>

<h4>User Ratings</h4>

<div class="userRatings">

<?php 
$ratings = array();
for ($k = 0; $k < count($active_project->users); $k++) {
    $this_user = new User();
    $this_user->populateFromId($active_project->users[$k]);
    $rating = $this_user->getRating($active_evidence->id, $active_hypothesis->id);
    $rating_score = getRatingScore($rating);
    if ($rating != "") {
        $ratings[] = getRatingScore($rating);
    }
    echo "<p><b>" . $this_user->name . ":</b> " . $rating . "</p>";
}
?>

</div>

<?php 
$group_rating = getGroupRating(getStDev($ratings));
if ($group_rating <= 1) {
    echo "<p class='unanimity'>Consensus";
}