2022-01-18 12:32:30 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @var string $attributes
|
|
|
|
* @var array $timezones
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
<select <?= $attributes ?>>
|
|
|
|
<?php foreach ($timezones as $continent => $entries): ?>
|
2020-03-29 15:05:34 +03:00
|
|
|
<optgroup label="<?= $continent ?>">
|
|
|
|
<?php foreach ($entries as $value => $name): ?>
|
|
|
|
<option value="<?= $value ?>"><?= $name ?></option>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</optgroup>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</select>
|