getYearCycleDates(); $counts = []; if($locations) { $location_ids_csv = implode(", ", array_column($locations, "id")); $sql = "SELECT `location_id`, COUNT(`id`) AS `test_count`, SUM(IF(`retest` = 1, 1, 0)) AS `retest_count` FROM `test` WHERE `location_id` IN ($location_ids_csv) AND `dts_start` BETWEEN '$date_start' AND '$date_end' GROUP BY `location_id`"; $result = DB::query($sql); while($row = DB::fetchAssoc($result)) { $counts[$row["location_id"]] = $row; } } ?>
| ID | Name / Address | Legal Entity | Internal ID | Tests | Retests | |
|---|---|---|---|---|---|---|
| =$location->id?> |
=htmlspecialchars($location->name)?>
closed) {
?>
Closed
isArchived()) {
?>
=htmlspecialchars(__("Archived"))?>
=htmlspecialchars($location->getDisplayAddress(["address_1", "address_2", "city", "postal_code"]))?> |
=htmlspecialchars($location->legal_entity_name)?> | =htmlspecialchars($location->internal_id)?> | =htmlspecialchars(number_format($test_count))?> | =htmlspecialchars(number_format($retest_count))?> | Edit |