fix is_active student flag and apply it in all pages
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 48s
Tests / PHPUnit (push) Successful in 1m17s

This commit is contained in:
root
2026-08-20 12:59:59 -04:00
parent 0a31aa1393
commit bfa343b69f
57 changed files with 820 additions and 240 deletions
+4 -1
View File
@@ -102,7 +102,10 @@
<tbody>
<?php foreach ($students as $student): ?>
<tr>
<td><?= $student['name'] ?></td>
<td>
<?= esc($student['name'] ?? '') ?>
<?= student_enrollment_status_button($student, $schoolYear ?? null) ?>
</td>
<td><?= $student['total_absences'] ?></td>
<td>
<?= $student['last_absence'] ? local_date($student['last_absence']['date'], 'm-d-Y') : 'N/A' ?>
+4 -1
View File
@@ -117,7 +117,10 @@
<tbody>
<?php foreach ($rows as $r): ?>
<tr>
<td><?= esc(($r['firstname'] ?? '') . ' ' . ($r['lastname'] ?? '')) ?></td>
<td>
<?= esc(($r['firstname'] ?? '') . ' ' . ($r['lastname'] ?? '')) ?>
<?= student_enrollment_status_button($r, $schoolYear ?? null) ?>
</td>
<td><?= esc($r['class_section_name'] ?? '—') ?></td>
<td><?= !empty($r['dismiss_time']) ? esc(substr($r['dismiss_time'], 0, 5)) : '—' ?></td>
<td style="max-width: 420px; white-space: normal;"><?= esc($r['reason'] ?? '') ?></td>
+4 -1
View File
@@ -54,7 +54,10 @@
<?php foreach ($rows as $r): ?>
<tr>
<td><?= esc(!empty($r['report_date']) ? local_date($r['report_date'], 'm-d-Y') : '') ?></td>
<td><?= esc(($r['firstname'] ?? '') . ' ' . ($r['lastname'] ?? '')) ?></td>
<td>
<?= esc(($r['firstname'] ?? '') . ' ' . ($r['lastname'] ?? '')) ?>
<?= student_enrollment_status_button($r, $schoolYear ?? null) ?>
</td>
<td><?= esc($r['class_section_name'] ?? '—') ?></td>
<td class="text-capitalize"><?= esc(str_replace('_',' ', $r['type'])) ?></td>
<td>
@@ -119,6 +119,7 @@ $show_actions = false; // notified page hides actions by design
title="Open Family Card">
<?= esc($studName) ?>
</a>
<?= student_enrollment_status_button(['student_id' => $studId, 'enrollment_status' => $st['enrollment_status'] ?? ''], $schoolYear ?? null) ?>
</td>
<td><?= esc($className) ?></td>
<td data-order="<?= $incidentYmd !== '' ? esc($incidentYmd) : '' ?>">
@@ -139,6 +139,7 @@ $show_actions = true; // pending page shows actions
title="Open Family Card">
<?= esc($studName) ?>
</a>
<?= student_enrollment_status_button(['student_id' => $studId, 'enrollment_status' => $st['enrollment_status'] ?? ''], $schoolYear ?? null) ?>
</td>
<td><?= esc($grade) ?></td>
<td><span class="<?= esc($badgeCls) ?>" style="<?= $badgeCss ?>"><?= esc($viTitle) ?></span></td>