Update weekly_report.php
will test this later
This commit is contained in:
@@ -134,8 +134,11 @@ if(isset($_GET['ascii'])) {
|
|||||||
echo "No new species were seen this week.";
|
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 "<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();
|
die();
|
||||||
}
|
}
|
||||||
@@ -256,4 +259,4 @@ while($detection=$result1->fetchArray(SQLITE3_ASSOC))
|
|||||||
<br>
|
<br>
|
||||||
<div style="text-align:center">
|
<div style="text-align:center">
|
||||||
<hr><small style="font-size:small">* percentages are calculated relative to week <?php echo date('W', $enddate) - 1; ?></small>
|
<hr><small style="font-size:small">* percentages are calculated relative to week <?php echo date('W', $enddate) - 1; ?></small>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user