Dynamic year range in pagos page
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user