easyappointments/application/views/components/timezone_dropdown.php

19 lines
442 B
PHP
Raw Normal View History

<?php
/**
* Local variables.
*
* @var string $attributes
* @var array $timezones
*/
?>
<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>