|
|
@@ -242,7 +242,7 @@ $date_range_custom_style = ($date_range == "custom") ? "" : "display: none";
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="row">
|
|
|
+ <div class="row mb-4">
|
|
|
<div class="col-md-4" style="position: relative;">
|
|
|
<h3>Chart List</h3>
|
|
|
<div class="list-group" style="position: sticky; top: 7rem;">
|
|
|
@@ -276,6 +276,104 @@ $date_range_custom_style = ($date_range == "custom") ? "" : "display: none";
|
|
|
</div>
|
|
|
|
|
|
<?php
|
|
|
+
|
|
|
+ if(PRODUCTION == false) {
|
|
|
+ ?>
|
|
|
+ <h2>Debug Information</h2>
|
|
|
+
|
|
|
+ <h3>Region Data</h3>
|
|
|
+
|
|
|
+ <?php
|
|
|
+
|
|
|
+ foreach($region_data as $region => $rows) {
|
|
|
+
|
|
|
+ ?>
|
|
|
+ <h4>Region: <?=htmlspecialchars($region)?></h4>
|
|
|
+
|
|
|
+ <table class="table">
|
|
|
+ <col style="width: 20%" />
|
|
|
+ <col style="width: 20%" />
|
|
|
+ <col style="width: 20%" />
|
|
|
+ <col style="width: 20%" />
|
|
|
+ <col style="width: 20%" />
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>Key</th>
|
|
|
+ <th>Tests</th>
|
|
|
+ <th>Passes</th>
|
|
|
+ <th>Fails</th>
|
|
|
+ <th>Rate</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <?php
|
|
|
+ foreach($rows as $key => $data) {
|
|
|
+ $rate = ($data->testCount == 0) ? "0.00" : number_format(($data->passCount * 100) / $data->testCount, 2);
|
|
|
+ ?>
|
|
|
+ <tr>
|
|
|
+ <td><?=htmlspecialchars($key)?></td>
|
|
|
+ <td><?=number_format($data->testCount)?></td>
|
|
|
+ <td><?=number_format($data->passCount)?></td>
|
|
|
+ <td><?=number_format($data->failCount)?></td>
|
|
|
+ <td><?=$rate?>%</td>
|
|
|
+ </tr>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ <?php
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ ?>
|
|
|
+ <h3>Area Manager Data</h3>
|
|
|
+ <?php
|
|
|
+
|
|
|
+ foreach($area_manager_data as $area_manager => $rows) {
|
|
|
+
|
|
|
+ ?>
|
|
|
+ <h4>Area Manager: <?=htmlspecialchars($area_manager)?></h4>
|
|
|
+
|
|
|
+ <table class="table">
|
|
|
+ <col style="width: 20%" />
|
|
|
+ <col style="width: 20%" />
|
|
|
+ <col style="width: 20%" />
|
|
|
+ <col style="width: 20%" />
|
|
|
+ <col style="width: 20%" />
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>Key</th>
|
|
|
+ <th>Tests</th>
|
|
|
+ <th>Passes</th>
|
|
|
+ <th>Fails</th>
|
|
|
+ <th>Rate</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <?php
|
|
|
+ foreach($rows as $key => $data) {
|
|
|
+ $rate = ($data->testCount == 0) ? "0.00" : number_format(($data->passCount * 100) / $data->testCount, 2);
|
|
|
+ ?>
|
|
|
+ <tr>
|
|
|
+ <td><?=htmlspecialchars($key)?></td>
|
|
|
+ <td><?=number_format($data->testCount)?></td>
|
|
|
+ <td><?=number_format($data->passCount)?></td>
|
|
|
+ <td><?=number_format($data->failCount)?></td>
|
|
|
+ <td><?=$rate?>%</td>
|
|
|
+ </tr>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ <?php
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
?>
|
|
|
|