2022-01-18 12:32:30 +03:00
|
|
|
<?php
|
|
|
|
/**
|
2022-01-18 13:04:08 +03:00
|
|
|
* Local variables.
|
2023-11-29 12:24:09 +03:00
|
|
|
*
|
2022-01-18 12:32:30 +03:00
|
|
|
* @var string $attributes
|
2022-03-29 11:15:24 +03:00
|
|
|
* @var array $grouped_timezones
|
2022-01-18 12:32:30 +03:00
|
|
|
*/
|
|
|
|
?>
|
2022-01-18 13:04:08 +03:00
|
|
|
|
2022-01-18 12:32:30 +03:00
|
|
|
<select <?= $attributes ?>>
|
2022-03-29 11:15:24 +03:00
|
|
|
<?php foreach ($grouped_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>
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php endforeach; ?>
|
2020-03-29 15:05:34 +03:00
|
|
|
</optgroup>
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php endforeach; ?>
|
2020-03-29 15:05:34 +03:00
|
|
|
</select>
|