Update weekly_report.php

will test this later
This commit is contained in:
ehpersonal38
2022-10-31 14:32:34 -04:00
committed by GitHub
parent 62a5ab793e
commit 576740996b
+5 -2
View File
@@ -134,8 +134,11 @@ if(isset($_GET['ascii'])) {
echo "No new species were seen this week.";
}
$prevweek = date('W', $enddate) - 1;
if($prevweek < 1) { $prevweek = 52; }
echo "<hr><small>* data from ".date('Y-m-d', $startdate)."".date('Y-m-d',$enddate).".</small><br>";
echo '<small>* percentages are calculated relative to week '.(date('W', $enddate) - 1).'.</small>';
echo '<small>* percentages are calculated relative to week '.($prevweek).'.</small>';
die();
}
@@ -256,4 +259,4 @@ while($detection=$result1->fetchArray(SQLITE3_ASSOC))
<br>
<div style="text-align:center">
<hr><small style="font-size:small">* percentages are calculated relative to week <?php echo date('W', $enddate) - 1; ?></small>
</div>
</div>