mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 09:23:08 +03:00
16 lines
418 B
PHP
16 lines
418 B
PHP
<?php
|
|
/**
|
|
* @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>
|