Dynamic year range in pagos page

This commit is contained in:
2026-02-22 14:01:38 -06:00
parent e2d8a4d229
commit efcf6cc445

View File

@@ -10,7 +10,7 @@
<div> <div>
<label for="yearSelect" class="form-label me-2">Año:</label> <label for="yearSelect" class="form-label me-2">Año:</label>
<select id="yearSelect" class="form-select d-inline-block" style="width: auto;"> <select id="yearSelect" class="form-select d-inline-block" style="width: auto;">
<?php for ($y = 2024; $y <= 2030; $y++): ?> <?php for ($y = 2024; $y <= date('Y') + 1; $y++): ?>
<option value="<?= $y?>" <?= $y == $year ? 'selected' : '' ?>> <option value="<?= $y?>" <?= $y == $year ? 'selected' : '' ?>>
<?= $y?> <?= $y?>
</option> </option>