|
@@ -16,6 +16,11 @@ $date_ranges = [
|
|
|
"custom" => "Custom",
|
|
"custom" => "Custom",
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
|
|
+$retests_options = [
|
|
|
|
|
+ "0" => "Exclude",
|
|
|
|
|
+ "1" => "Retests Only"
|
|
|
|
|
+];
|
|
|
|
|
+
|
|
|
$years = range(2018, date("Y"));
|
|
$years = range(2018, date("Y"));
|
|
|
|
|
|
|
|
$date_range_custom_style = ($date_range == "custom") ? "" : "display: none";
|
|
$date_range_custom_style = ($date_range == "custom") ? "" : "display: none";
|
|
@@ -122,12 +127,26 @@ let projectData = <?=json_encode($project_table_data)?>;
|
|
|
</select>
|
|
</select>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
- <label class="form-label" for="location-ids">
|
|
|
|
|
|
|
+ <label for="location-ids">
|
|
|
Location IDs
|
|
Location IDs
|
|
|
</label>
|
|
</label>
|
|
|
<input class="form-control" name="location_ids" type="text" id="location-ids" value="<?=htmlspecialchars(implode(" ", $location_ids))?>" placeholder="Enter location IDs" />
|
|
<input class="form-control" name="location_ids" type="text" id="location-ids" value="<?=htmlspecialchars(implode(" ", $location_ids))?>" placeholder="Enter location IDs" />
|
|
|
<small class="form-text text-muted">Separate each location ID with a space.<br />Leave blank to generate a report for all locations.</small>
|
|
<small class="form-text text-muted">Separate each location ID with a space.<br />Leave blank to generate a report for all locations.</small>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="form-group">
|
|
|
|
|
+ <label for="retests">Retests</label>
|
|
|
|
|
+ <select name="retests" id="retests" class="form-control">
|
|
|
|
|
+ <option value="">Include</option>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ foreach($retests_options as $value => $display) {
|
|
|
|
|
+ $selected = $value === $retests ? "selected" : "";
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <option value="<?=$value?>" <?=$selected?>><?=htmlspecialchars($display)?></option>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
<button class="btn btn-primary" type="submit" name="submit" value="<?=htmlspecialchars($_SESSION["csrf_token"])?>">
|
|
<button class="btn btn-primary" type="submit" name="submit" value="<?=htmlspecialchars($_SESSION["csrf_token"])?>">
|
|
|
Submit
|
|
Submit
|
|
|
</button>
|
|
</button>
|
|
@@ -194,7 +213,29 @@ let projectData = <?=json_encode($project_table_data)?>;
|
|
|
if($charts) {
|
|
if($charts) {
|
|
|
?>
|
|
?>
|
|
|
|
|
|
|
|
- <h2>Charts / Statistics</h2>
|
|
|
|
|
|
|
+ <h2>
|
|
|
|
|
+ Report
|
|
|
|
|
+ </h2>
|
|
|
|
|
+
|
|
|
|
|
+ <p>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ if($retests === 0) {
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <span class="badge badge-warning">Retests Excluded</span>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ else if($retests === 1) {
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <span class="badge badge-warning">Retests Only</span>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <span class="badge badge-success">Retests Included</span>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
|
|
+ </p>
|
|
|
|
|
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
@@ -285,6 +326,7 @@ let projectData = <?=json_encode($project_table_data)?>;
|
|
|
<input type="hidden" name="date_start" id="date-start" value="<?=htmlspecialchars($date_start)?>" />
|
|
<input type="hidden" name="date_start" id="date-start" value="<?=htmlspecialchars($date_start)?>" />
|
|
|
<input type="hidden" name="date_end" id="date-end" value="<?=htmlspecialchars($date_end)?>" />
|
|
<input type="hidden" name="date_end" id="date-end" value="<?=htmlspecialchars($date_end)?>" />
|
|
|
<input type="hidden" name="date_resolution" value="<?=htmlspecialchars($date_resolution)?>" />
|
|
<input type="hidden" name="date_resolution" value="<?=htmlspecialchars($date_resolution)?>" />
|
|
|
|
|
+ <input type="hidden" name="retests" value="<?=htmlspecialchars($retests)?>" />
|
|
|
<?php
|
|
<?php
|
|
|
foreach($exclude_project_ids as $project_id) {
|
|
foreach($exclude_project_ids as $project_id) {
|
|
|
?>
|
|
?>
|