Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion a/p/offsite_stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@
<td> <?php echo "<a target=_blank class='unstyled-link' href='../../viewreports.php?id=" . $render[6] . "'>" . $render[0] . " " . $render[1]; // the <a> tag is a link to view reports?> </a></td>
<td> <?php echo $render[2]; ?> </td>
<td> <?php echo $render[3]; ?> </td>
<?php if($studentTable[0][5] <= $render[4]){ // if the student is using offsite unsustainably, turn the percentage red ?>
<?php if($render[4] >= 100){ // if the student is using offsite unsustainably, turn the percentage red ?>
<td style = "color:red;"> <?php echo $render[4] . "%"; ?> </td>
<?php } elseif($render[3] <= $render[4]){ ?>
<td style = "color:firebrick;"> <?php echo $render[4] . "%"; ?> </td>
<?php } else { ?>
<td> <?php echo $render[4] . "%"; ?> </td>
<?php } ?>
Expand Down