2022-01-18 12:32:30 +03:00
|
|
|
<?php
|
|
|
|
/**
|
2022-01-18 13:04:08 +03:00
|
|
|
* Local variables.
|
|
|
|
*
|
2022-01-18 12:32:30 +03:00
|
|
|
* @var string $attributes
|
|
|
|
* @var array $timezones
|
|
|
|
*/
|
|
|
|
?>
|
2022-01-18 13:04:08 +03:00
|
|
|
|
2022-01-18 12:32:30 +03:00
|
|
|
<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>
|