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
+15 -10
View File
@@ -53,14 +53,18 @@
<?php
$sid = (int) ($student['student_id'] ?? 0);
$scoreRow = $scores[$sid] ?? null;
$current = $scoreRow ? (string) ($scoreRow['score'] ?? '') : '';
$sectionName = (string) ($student['class_section_name'] ?? '');
$className = (string) ($student['class_name'] ?? '');
$sectionLabel = $className !== '' ? ($className . ' — ' . $sectionName) : $sectionName;
?>
<tr>
$current = $scoreRow ? (string) ($scoreRow['score'] ?? '') : '';
$sectionName = (string) ($student['class_section_name'] ?? '');
$className = (string) ($student['class_name'] ?? '');
$sectionLabel = $className !== '' ? ($className . ' — ' . $sectionName) : $sectionName;
$rowLocked = student_is_non_active_for_editing($student, $schoolYear ?? null);
?>
<tr class="<?= $rowLocked ? 'table-secondary text-muted' : '' ?>">
<td><?= esc($student['school_id'] ?? '') ?></td>
<td><?= esc($student['firstname'] ?? '') ?></td>
<td>
<?= esc($student['firstname'] ?? '') ?>
<?= student_enrollment_status_button($student, $schoolYear ?? null) ?>
</td>
<td><?= esc($student['lastname'] ?? '') ?></td>
<td><?= esc($sectionLabel ?: '—') ?></td>
<td>
@@ -69,9 +73,10 @@
class="form-control form-control-sm"
min="0"
max="100"
step="1"
value="<?= esc($current) ?>"
placeholder="0-100">
step="1"
value="<?= esc($current) ?>"
<?= $rowLocked ? 'readonly aria-disabled="true"' : '' ?>
placeholder="0-100">
</td>
</tr>
<?php endforeach; ?>