Server IP : 184.154.167.98 / Your IP : 3.15.10.189 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/mesa/include/staff/templates/ |
Upload File : |
<?php $TZ_NAME = @$TZ_NAME ?: 'timezone'; $TZ_ALLOW_DEFAULT = isset($TZ_ALLOW_DEFAULT) ? $TZ_ALLOW_DEFAULT : true; $TZ_PLACEHOLDER = @$TZ_PLACEHOLDER ?: __('System Default'); $TZ_TIMEZONE = @$TZ_TIMEZONE ?: ''; ?> <select name="<?php echo $TZ_NAME; ?>" id="timezone-dropdown" data-placeholder="<?php echo $TZ_PLACEHOLDER; ?>"> <?php if ($TZ_ALLOW_DEFAULT) { ?> <option value=""></option> <?php } foreach (DateTimeZone::listIdentifiers() as $zone) { ?> <option value="<?php echo $zone; ?>" <?php if ($TZ_TIMEZONE == $zone) echo 'selected="selected"'; ?>><?php echo str_replace('/',' / ',$zone); ?></option> <?php } ?> </select> <button type="button" class="action-button" onclick="javascript: $('head').append($('<script>').attr('src', '<?php echo ROOT_PATH; ?>js/jstz.min.js')); var recheck = setInterval(function() { if (window.jstz !== undefined) { clearInterval(recheck); var zone = jstz.determine(); $('#timezone-dropdown').val(zone.name()).trigger('change'); } }, 100); return false;" style="vertical-align:middle"><i class="icon-map-marker"></i> <?php echo __('Auto Detect'); ?></button> <script type="text/javascript"> $(function() { $('#timezone-dropdown').select2({ allowClear: <?php echo $TZ_ALLOW_DEFAULT ? 'true' : 'false'; ?>, width: '300px' }); }); </script>