Finishing touches
This commit is contained in:
@@ -43,14 +43,15 @@ $settings = getSettings();
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<label for="bday">Geboortedatum</label>
|
||||
<?php $currentbday = new DateTime($settings["birthdate"]);?>
|
||||
<label for="bday">Geboortedatum</label>
|
||||
<select name='day' id="bday">
|
||||
<?php for ($day = 1; $day <= 31; $day++):?>
|
||||
<option value='<?=$day?>'
|
||||
<?=($day == $currentbday->format("d")) ? "selected" : ""?>
|
||||
><?=$day?></option>";
|
||||
|
||||
>
|
||||
<?=$day?>
|
||||
</option>
|
||||
<?php endfor; ?>
|
||||
</select>
|
||||
<select name='month' id="bday">
|
||||
@@ -66,15 +67,15 @@ $settings = getSettings();
|
||||
</option>
|
||||
<?php endfor;?>
|
||||
</select>
|
||||
|
||||
|
||||
<select name='year' id="bday">
|
||||
<?php
|
||||
$now = (new DateTime)->format("Y");
|
||||
for ($year = $now; $year >= 1900; $year--): ?>
|
||||
<option value='<?=$year?>'
|
||||
<?=($year == $currentbday->format("Y")) ? "selected" : ""?>
|
||||
><?=$year?></option>
|
||||
>
|
||||
<?=$year?>
|
||||
</option>
|
||||
<?php endfor; ?>
|
||||
</select>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user