iflrandevu/application/views/partials/timezone_dropdown.php

10 lines
348 B
PHP
Raw Normal View History

<select <?= $attributes ?>>
<?php foreach ($timezones as $continent => $entries): ?>
<optgroup label="<?= $continent ?>">
<?php foreach ($entries as $value => $name): ?>
<option value="<?= $value ?>"><?= $name ?></option>
<?php endforeach ?>
</optgroup>
<?php endforeach ?>
</select>