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
@@ -77,7 +77,10 @@
<?php foreach ($records as $r): ?>
<tr>
<td><code><?= esc($r['certificate_number']) ?></code></td>
<td><?= esc($r['student_name']) ?></td>
<td>
<?= esc($r['student_name']) ?>
<?= student_enrollment_status_button($r, $schoolYear ?? null) ?>
</td>
<td><?= esc($r['grade'] ?? '—') ?></td>
<td><?= $r['cert_date'] ? esc(date('m/d/Y', strtotime($r['cert_date']))) : '—' ?></td>
<td><?= esc($r['school_year'] ?? '—') ?></td>
+5 -2
View File
@@ -245,7 +245,10 @@ $decisionBadge = [
<?= $isPass ? '' : 'disabled' ?>>
</td>
<td><?= esc($s['firstname']) ?></td>
<td>
<?= esc($s['firstname']) ?>
<?= student_enrollment_status_button($s, $schoolYear ?? null) ?>
</td>
<td><?= esc($s['lastname']) ?></td>
<td class="text-center fw-semibold">
@@ -624,4 +627,4 @@ window.showCertificatePdf=function(url,fn){
});
})();
</script>
<?= $this->endSection() ?>
<?= $this->endSection() ?>
@@ -82,7 +82,10 @@
?>
<tr>
<td><?= esc($schoolId ?: $studentId) ?></td>
<td><?= esc($name !== '' ? $name : ('Student #' . $studentId)) ?></td>
<td>
<?= esc($name !== '' ? $name : ('Student #' . $studentId)) ?>
<?= student_enrollment_status_button($s, $schoolYear ?? null) ?>
</td>
<td data-order="<?= esc($val) ?>">
<input class="form-control form-control-sm"
name="scores[<?= esc($studentId) ?>]"
@@ -84,7 +84,10 @@
<tr class="class-color-<?= esc((string) $colorIndex) ?>">
<td><?= esc($classLabel) ?></td>
<td><?= esc($row['school_id'] ?? $row['student_id'] ?? '-') ?></td>
<td><?= esc($studentLabel) ?></td>
<td>
<?= esc($studentLabel) ?>
<?= student_enrollment_status_button($row, $schoolYear ?? null) ?>
</td>
<td><?= esc($photoConsentLabel) ?></td>
<td><?= esc($row['rank'] ?? '-') ?></td>
<td><?= esc($scoreLabel) ?></td>
+4 -1
View File
@@ -78,7 +78,10 @@
<?php foreach ($students as $s): ?>
<tr>
<td><?= esc($s['school_id'] ?? '') ?></td>
<td><?= esc(($s['firstname'] ?? '') . ' ' . ($s['lastname'] ?? '')) ?></td>
<td>
<?= esc(($s['firstname'] ?? '') . ' ' . ($s['lastname'] ?? '')) ?>
<?= student_enrollment_status_button($s, $schoolYear ?? null) ?>
</td>
<td>
<?php if ((int)($s['is_active'] ?? 0) === 1): ?>
<span class="badge text-bg-success">Active</span>