View file 2/3020.ru/users/profile/settings/content/timedate.php

File size: 30.41Kb
<?php
  
/*
------------
Время и дата
------------
*/
  
ECHO "<div class='navigation'>";
ECHO "<a href='/'>".ICONS('home', 25, 'fa-fw')."</a>";
ECHO "".ICONS('angle-right', 22, 'fa-fw')."";
ECHO "<a href='/id".$user['ID']."'>".TEXT_ABSOLUTE($user['LOGIN'])."</a>";
ECHO "".ICONS('angle-right', 22, 'fa-fw')."";
ECHO "<a href='?path=settings'>".LG('Настройки аккаунта')."</a>";
ECHO "".ICONS('angle-right', 22, 'fa-fw')."";
ECHO "".LG('Время и дата')."";
ECHO "</div>";

IF (POST('ok')){
  
  DB_FILTER();
  
  DB::GET_SET("UPDATE `USERS` SET `TIMEZONE` = '".ADSL(POST('timezone'))."' WHERE `ID` = '".$user['ID']."' LIMIT 1");
  
  SUCCESS('Измнения успешно приняты', 'session');
  REDIRECT(REQUEST_URI);
  
}

ECHO "<div class='list'>";

ECHO "<form method='post' class='form' action='/users/profile/?path=settings&section=timedate'>";

ECHO "<b>".LG('Временная зона для аккаунта').":</b><br />";
ECHO "<select name='timezone' class='form-control-select'>";

ECHO "<option value='Africa/Abidjan' ".($user['TIMEZONE'] == 'Africa/Abidjan'?" selected='selected'" : NULL).">Africa/Abidjan</option>";
ECHO "<option value='Africa/Asmara' ".($user['TIMEZONE'] == 'Africa/Asmara'?" selected='selected'" : NULL).">Africa/Asmara</option>";
ECHO "<option value='Africa/Bissau' ".($user['TIMEZONE'] == 'Africa/Bissau'?" selected='selected'" : NULL).">Africa/Bissau</option>";
ECHO "<option value='Africa/Cairo' ".($user['TIMEZONE'] == 'Africa/Cairo'?" selected='selected'" : NULL).">Africa/Cairo</option>";
ECHO "<option value='Africa/Dakar' ".($user['TIMEZONE'] == 'Africa/Dakar'?" selected='selected'" : NULL).">Africa/Dakar</option>";
ECHO "<option value='Africa/El_Aaiun' ".($user['TIMEZONE'] == 'Africa/El_Aaiun'?" selected='selected'" : NULL).">Africa/El_Aaiun</option>";
ECHO "<option value='Africa/Johannesburg' ".($user['TIMEZONE'] == 'Africa/Johannesburg'?" selected='selected'" : NULL).">Africa/Johannesburg</option>";
ECHO "<option value='Africa/Kigali' ".($user['TIMEZONE'] == 'Africa/Kigali'?" selected='selected'" : NULL).">Africa/Kigali</option>";
ECHO "<option value='Africa/Lome' ".($user['TIMEZONE'] == 'Africa/Lome'?" selected='selected'" : NULL).">Africa/Lome</option>";
ECHO "<option value='Africa/Malabo' ".($user['TIMEZONE'] == 'Africa/Malabo'?" selected='selected'" : NULL).">Africa/Malabo</option>";
ECHO "<option value='Africa/Mogadishu' ".($user['TIMEZONE'] == 'Africa/Mogadishu'?" selected='selected'" : NULL).">Africa/Mogadishu</option>";
ECHO "<option value='Africa/Niamey' ".($user['TIMEZONE'] == 'Africa/Niamey'?" selected='selected'" : NULL).">Africa/Niamey</option>";
ECHO "<option value='Africa/Sao_Tome' ".($user['TIMEZONE'] == 'Africa/Sao_Tome'?" selected='selected'" : NULL).">Africa/Sao_Tome</option>";
ECHO "<option value='Africa/Accra' ".($user['TIMEZONE'] == 'Africa/Accra'?" selected='selected'" : NULL).">Africa/Accra</option>";
ECHO "<option value='Africa/Bamako' ".($user['TIMEZONE'] == 'Africa/Bamako'?" selected='selected'" : NULL).">Africa/Bamako</option>";
ECHO "<option value='Africa/Blantyre' ".($user['TIMEZONE'] == 'Africa/Blantyre'?" selected='selected'" : NULL).">Africa/Blantyre</option>";

ECHO "<option value='America/Adak' ".($user['TIMEZONE'] == 'America/Adak'?" selected='selected'" : NULL).">America/Adak</option>";
ECHO "<option value='America/Araguaina' ".($user['TIMEZONE'] == 'America/Araguaina'?" selected='selected'" : NULL).">America/Araguaina</option>";
ECHO "<option value='America/Argentina/Jujuy' ".($user['TIMEZONE'] == 'America/Argentina/Jujuy'?" selected='selected'" : NULL).">America/Argentina/Jujuy</option>";
ECHO "<option value='America/Argentina/Salta' ".($user['TIMEZONE'] == 'America/Argentina/Salta'?" selected='selected'" : NULL).">America/Argentina/Salta</option>";
ECHO "<option value='America/Argentina/Ushuaia' ".($user['TIMEZONE'] == 'America/Argentina/Ushuaia'?" selected='selected'" : NULL).">America/Argentina/Ushuaia</option>";
ECHO "<option value='America/Bahia' ".($user['TIMEZONE'] == 'America/Bahia'?" selected='selected'" : NULL).">America/Bahia</option>";
ECHO "<option value='America/Belize' ".($user['TIMEZONE'] == 'America/Belize'?" selected='selected'" : NULL).">America/Belize</option>";
ECHO "<option value='America/Boise' ".($user['TIMEZONE'] == 'America/Boise'?" selected='selected'" : NULL).">America/Boise</option>";
ECHO "<option value='America/Caracas' ".($user['TIMEZONE'] == 'America/Caracas'?" selected='selected'" : NULL).">America/Caracas</option>";
ECHO "<option value='America/Chihuahua' ".($user['TIMEZONE'] == 'America/Chihuahua'?" selected='selected'" : NULL).">America/Chihuahua</option>";
ECHO "<option value='America/Curacao' ".($user['TIMEZONE'] == 'America/Curacao'?" selected='selected'" : NULL).">America/Curacao</option>";
ECHO "<option value='America/Denver' ".($user['TIMEZONE'] == 'America/Denver'?" selected='selected'" : NULL).">America/Denver</option>";
ECHO "<option value='America/Eirunepe' ".($user['TIMEZONE'] == 'America/Eirunepe'?" selected='selected'" : NULL).">America/Eirunepe</option>";
ECHO "<option value='America/Glace_Bay' ".($user['TIMEZONE'] == 'America/Glace_Bay'?" selected='selected'" : NULL).">America/Glace_Bay</option>";
ECHO "<option value='America/Guadeloupe' ".($user['TIMEZONE'] == 'America/Guadeloupe'?" selected='selected'" : NULL).">America/Guadeloupe</option>";
ECHO "<option value='America/Halifax' ".($user['TIMEZONE'] == 'America/Halifax'?" selected='selected'" : NULL).">America/Halifax</option>";
ECHO "<option value='America/Indiana/Knox' ".($user['TIMEZONE'] == 'America/Indiana/Knox'?" selected='selected'" : NULL).">America/Indiana/Knox</option>";
ECHO "<option value='America/Indiana/Vevay' ".($user['TIMEZONE'] == 'America/Indiana/Vevay'?" selected='selected'" : NULL).">America/Indiana/Vevay</option>";
ECHO "<option value='America/Iqaluit' ".($user['TIMEZONE'] == 'America/Iqaluit'?" selected='selected'" : NULL).">America/Iqaluit</option>";
ECHO "<option value='America/Kentucky/Monticello' ".($user['TIMEZONE'] == 'America/Kentucky/Monticello'?" selected='selected'" : NULL).">America/Kentucky/Monticello</option>";
ECHO "<option value='America/Los_Angeles' ".($user['TIMEZONE'] == 'America/Los_Angeles'?" selected='selected'" : NULL).">America/Los_Angeles</option>";

ECHO "<option value='Antarctica/Casey' ".($user['TIMEZONE'] == 'Antarctica/Casey'?" selected='selected'" : NULL).">Antarctica/Casey</option>";
ECHO "<option value='Antarctica/Mawson' ".($user['TIMEZONE'] == 'Antarctica/Mawson'?" selected='selected'" : NULL).">Antarctica/Mawson</option>";
ECHO "<option value='Antarctica/Syowa' ".($user['TIMEZONE'] == 'Antarctica/Syowa'?" selected='selected'" : NULL).">Antarctica/Syowa</option>";
ECHO "<option value='Antarctica/Davis' ".($user['TIMEZONE'] == 'Antarctica/Davis'?" selected='selected'" : NULL).">Antarctica/Davis</option>";
ECHO "<option value='Antarctica/McMurdo' ".($user['TIMEZONE'] == 'Antarctica/McMurdo'?" selected='selected'" : NULL).">Antarctica/McMurdo</option>";
ECHO "<option value='Antarctica/Troll' ".($user['TIMEZONE'] == 'Antarctica/Troll'?" selected='selected'" : NULL).">Antarctica/Troll</option>";
ECHO "<option value='Antarctica/DumontDUrville' ".($user['TIMEZONE'] == 'Antarctica/DumontDUrville'?" selected='selected'" : NULL).">Antarctica/DumontDUrville</option>";
ECHO "<option value='Antarctica/Palmer' ".($user['TIMEZONE'] == 'Antarctica/Palmer'?" selected='selected'" : NULL).">Antarctica/Palmer</option>";
ECHO "<option value='Antarctica/Vostok' ".($user['TIMEZONE'] == 'Antarctica/Vostok'?" selected='selected'" : NULL).">Antarctica/Vostok</option>";
ECHO "<option value='Antarctica/Macquarie' ".($user['TIMEZONE'] == 'Antarctica/Macquarie'?" selected='selected'" : NULL).">Antarctica/Macquarie</option>";
ECHO "<option value='Antarctica/Rothera' ".($user['TIMEZONE'] == 'Antarctica/Rothera'?" selected='selected'" : NULL).">Antarctica/Rothera</option>";

ECHO "<option value='Arctic/Longyearbyen' ".($user['TIMEZONE'] == 'Arctic/Longyearbyen'?" selected='selected'" : NULL).">Arctic/Longyearbyen</option>";

ECHO "<option value='Asia/Aden' ".($user['TIMEZONE'] == 'Asia/Aden'?" selected='selected'" : NULL).">Asia/Aden</option>";
ECHO "<option value='Asia/Aqtau' ".($user['TIMEZONE'] == 'Asia/Aqtau'?" selected='selected'" : NULL).">Asia/Aqtau</option>";
ECHO "<option value='Asia/Baghdad' ".($user['TIMEZONE'] == 'Asia/Baghdad'?" selected='selected'" : NULL).">Asia/Baghdad</option>";
ECHO "<option value='Asia/Barnaul' ".($user['TIMEZONE'] == 'Asia/Barnaul'?" selected='selected'" : NULL).">Asia/Barnaul</option>";
ECHO "<option value='Asia/Chita' ".($user['TIMEZONE'] == 'Asia/Chita'?" selected='selected'" : NULL).">Asia/Chita</option>";
ECHO "<option value='Asia/Dhaka' ".($user['TIMEZONE'] == 'Asia/Dhaka'?" selected='selected'" : NULL).">Asia/Dhaka</option>";
ECHO "<option value='Asia/Famagusta' ".($user['TIMEZONE'] == 'Asia/Famagusta'?" selected='selected'" : NULL).">Asia/Famagusta</option>";
ECHO "<option value='Asia/Hong_Kong' ".($user['TIMEZONE'] == 'Asia/Hong_Kong'?" selected='selected'" : NULL).">Asia/Hong_Kong</option>";
ECHO "<option value='Asia/Jayapura' ".($user['TIMEZONE'] == 'Asia/Jayapura'?" selected='selected'" : NULL).">Asia/Jayapura</option>";
ECHO "<option value='Asia/Karachi' ".($user['TIMEZONE'] == 'Asia/Karachi'?" selected='selected'" : NULL).">Asia/Karachi</option>";
ECHO "<option value='Asia/Krasnoyarsk' ".($user['TIMEZONE'] == 'Asia/Krasnoyarsk'?" selected='selected'" : NULL).">Asia/Krasnoyarsk</option>";
ECHO "<option value='Asia/Macau' ".($user['TIMEZONE'] == 'Asia/Macau'?" selected='selected'" : NULL).">Asia/Macau</option>";
ECHO "<option value='Asia/Muscat' ".($user['TIMEZONE'] == 'Asia/Muscat'?" selected='selected'" : NULL).">Asia/Muscat</option>";
ECHO "<option value='Asia/Omsk' ".($user['TIMEZONE'] == 'Asia/Omsk'?" selected='selected'" : NULL).">Asia/Omsk</option>";
ECHO "<option value='Asia/Pyongyang' ".($user['TIMEZONE'] == 'Asia/Pyongyang'?" selected='selected'" : NULL).">Asia/Pyongyang</option>";
ECHO "<option value='Asia/Riyadh' ".($user['TIMEZONE'] == 'Asia/Riyadh'?" selected='selected'" : NULL).">Asia/Riyadh</option>";
ECHO "<option value='Asia/Shanghai' ".($user['TIMEZONE'] == 'Asia/Shanghai'?" selected='selected'" : NULL).">Asia/Shanghai</option>";
ECHO "<option value='Asia/Tashkent' ".($user['TIMEZONE'] == 'Asia/Tashkent'?" selected='selected'" : NULL).">Asia/Tashkent</option>";
ECHO "<option value='Asia/Tokyo' ".($user['TIMEZONE'] == 'Asia/Tokyo'?" selected='selected'" : NULL).">Asia/Tokyo</option>";
ECHO "<option value='Asia/Ust-Nera' ".($user['TIMEZONE'] == 'Asia/Ust-Nera'?" selected='selected'" : NULL).">Asia/Ust-Nera</option>";
ECHO "<option value='Asia/Yangon' ".($user['TIMEZONE'] == 'Asia/Yangon'?" selected='selected'" : NULL).">Asia/Yangon</option>";
ECHO "<option value='Asia/Almaty' ".($user['TIMEZONE'] == 'Asia/Almaty'?" selected='selected'" : NULL).">Asia/Almaty</option>";
ECHO "<option value='Asia/Aqtobe' ".($user['TIMEZONE'] == 'Asia/Aqtobe'?" selected='selected'" : NULL).">Asia/Aqtobe</option>";
ECHO "<option value='Asia/Bahrain' ".($user['TIMEZONE'] == 'Asia/Bahrain'?" selected='selected'" : NULL).">Asia/Bahrain</option>";
ECHO "<option value='Asia/Beirut' ".($user['TIMEZONE'] == 'Asia/Beirut'?" selected='selected'" : NULL).">Asia/Beirut</option>";
ECHO "<option value='Asia/Choibalsan' ".($user['TIMEZONE'] == 'Asia/Choibalsan'?" selected='selected'" : NULL).">Asia/Choibalsan</option>";
ECHO "<option value='Asia/Dili' ".($user['TIMEZONE'] == 'Asia/Dili'?" selected='selected'" : NULL).">Asia/Dili</option>";
ECHO "<option value='Asia/Gaza' ".($user['TIMEZONE'] == 'Asia/Gaza'?" selected='selected'" : NULL).">Asia/Gaza</option>";
ECHO "<option value='Asia/Hovd' ".($user['TIMEZONE'] == 'Asia/Hovd'?" selected='selected'" : NULL).">Asia/Hovd</option>";
ECHO "<option value='Asia/Jerusalem' ".($user['TIMEZONE'] == 'Asia/Jerusalem'?" selected='selected'" : NULL).">Asia/Jerusalem</option>";
ECHO "<option value='Asia/Kathmandu' ".($user['TIMEZONE'] == 'Asia/Kathmandu'?" selected='selected'" : NULL).">Asia/Kathmandu</option>";
ECHO "<option value='Asia/Kuala_Lumpur' ".($user['TIMEZONE'] == 'Asia/Kuala_Lumpur'?" selected='selected'" : NULL).">Asia/Kuala_Lumpur</option>";
ECHO "<option value='Asia/Magadan' ".($user['TIMEZONE'] == 'Asia/Magadan'?" selected='selected'" : NULL).">Asia/Magadan</option>";
ECHO "<option value='Asia/Nicosia' ".($user['TIMEZONE'] == 'Asia/Nicosia'?" selected='selected'" : NULL).">Asia/Nicosia</option>";
ECHO "<option value='Asia/Oral' ".($user['TIMEZONE'] == 'Asia/Oral'?" selected='selected'" : NULL).">Asia/Oral</option>";
ECHO "<option value='Asia/Qatar' ".($user['TIMEZONE'] == 'Asia/Qatar'?" selected='selected'" : NULL).">Asia/Qatar</option>";
ECHO "<option value='Asia/Sakhalin' ".($user['TIMEZONE'] == 'Asia/Sakhalin'?" selected='selected'" : NULL).">Asia/Sakhalin</option>";
ECHO "<option value='Asia/Singapore' ".($user['TIMEZONE'] == 'Asia/Singapore'?" selected='selected'" : NULL).">Asia/Singapore</option>";
ECHO "<option value='Asia/Tbilisi' ".($user['TIMEZONE'] == 'Asia/Tbilisi'?" selected='selected'" : NULL).">Asia/Tbilisi</option>";
ECHO "<option value='Asia/Tomsk' ".($user['TIMEZONE'] == 'Asia/Tomsk'?" selected='selected'" : NULL).">Asia/Tomsk</option>";
ECHO "<option value='Asia/Vientiane' ".($user['TIMEZONE'] == 'Asia/Vientiane'?" selected='selected'" : NULL).">Asia/Vientiane</option>";
ECHO "<option value='Asia/Yekaterinburg' ".($user['TIMEZONE'] == 'Asia/Yekaterinburg'?" selected='selected'" : NULL).">Asia/Yekaterinburg</option>";
ECHO "<option value='Asia/Amman' ".($user['TIMEZONE'] == 'Asia/Amman'?" selected='selected'" : NULL).">Asia/Amman</option>";
ECHO "<option value='Asia/Ashgabat' ".($user['TIMEZONE'] == 'Asia/Ashgabat'?" selected='selected'" : NULL).">Asia/Ashgabat</option>";
ECHO "<option value='Asia/Baku' ".($user['TIMEZONE'] == 'Asia/Baku'?" selected='selected'" : NULL).">Asia/Baku</option>";
ECHO "<option value='Asia/Bishkek' ".($user['TIMEZONE'] == 'Asia/Bishkek'?" selected='selected'" : NULL).">Asia/Bishkek</option>";
ECHO "<option value='Asia/Colombo' ".($user['TIMEZONE'] == 'Asia/Colombo'?" selected='selected'" : NULL).">Asia/Colombo</option>";
ECHO "<option value='Asia/Dubai' ".($user['TIMEZONE'] == 'Asia/Dubai'?" selected='selected'" : NULL).">Asia/Dubai</option>";
ECHO "<option value='Asia/Hebron' ".($user['TIMEZONE'] == 'Asia/Hebron'?" selected='selected'" : NULL).">Asia/Hebron</option>";
ECHO "<option value='Asia/Irkutsk' ".($user['TIMEZONE'] == 'Asia/Irkutsk'?" selected='selected'" : NULL).">Asia/Irkutsk</option>";
ECHO "<option value='Asia/Kabul' ".($user['TIMEZONE'] == 'Asia/Kabul'?" selected='selected'" : NULL).">Asia/Kabul</option>";
ECHO "<option value='Asia/Khandyga' ".($user['TIMEZONE'] == 'Asia/Khandyga'?" selected='selected'" : NULL).">Asia/Khandyga</option>";
ECHO "<option value='Asia/Kuching' ".($user['TIMEZONE'] == 'Asia/Kuching'?" selected='selected'" : NULL).">Asia/Kuching</option>";
ECHO "<option value='Asia/Makassar' ".($user['TIMEZONE'] == 'Asia/Makassar'?" selected='selected'" : NULL).">Asia/Makassar</option>";
ECHO "<option value='Asia/Novokuznetsk' ".($user['TIMEZONE'] == 'Asia/Novokuznetsk'?" selected='selected'" : NULL).">Asia/Novokuznetsk</option>";
ECHO "<option value='Asia/Phnom_Penh' ".($user['TIMEZONE'] == 'Asia/Phnom_Penh'?" selected='selected'" : NULL).">Asia/Phnom_Penh</option>";
ECHO "<option value='Asia/Qostanay' ".($user['TIMEZONE'] == 'Asia/Qostanay'?" selected='selected'" : NULL).">Asia/Qostanay</option>";
ECHO "<option value='Asia/Samarkand' ".($user['TIMEZONE'] == 'Asia/Samarkand'?" selected='selected'" : NULL).">Asia/Samarkand</option>";
ECHO "<option value='Asia/Srednekolymsk' ".($user['TIMEZONE'] == 'Asia/Srednekolymsk'?" selected='selected'" : NULL).">Asia/Srednekolymsk</option>";
ECHO "<option value='Asia/Tehran' ".($user['TIMEZONE'] == 'Asia/Tehran'?" selected='selected'" : NULL).">Asia/Tehran</option>";
ECHO "<option value='Asia/Ulaanbaatar' ".($user['TIMEZONE'] == 'Asia/Ulaanbaatar'?" selected='selected'" : NULL).">Asia/Ulaanbaatar</option>";
ECHO "<option value='Asia/Vladivostok' ".($user['TIMEZONE'] == 'Asia/Vladivostok'?" selected='selected'" : NULL).">Asia/Vladivostok</option>";
ECHO "<option value='Asia/Yerevan' ".($user['TIMEZONE'] == 'Asia/Yerevan'?" selected='selected'" : NULL).">Asia/Yerevan</option>";
ECHO "<option value='Asia/Anadyr' ".($user['TIMEZONE'] == 'Asia/Anadyr'?" selected='selected'" : NULL).">Asia/Anadyr</option>";
ECHO "<option value='Asia/Atyrau' ".($user['TIMEZONE'] == 'Asia/Atyrau'?" selected='selected'" : NULL).">Asia/Atyrau</option>";
ECHO "<option value='Asia/Bangkok' ".($user['TIMEZONE'] == 'Asia/Bangkok'?" selected='selected'" : NULL).">Asia/Bangkok</option>";
ECHO "<option value='Asia/Brunei' ".($user['TIMEZONE'] == 'Asia/Brunei'?" selected='selected'" : NULL).">Asia/Brunei</option>";
ECHO "<option value='Asia/Damascus' ".($user['TIMEZONE'] == 'Asia/Damascus'?" selected='selected'" : NULL).">Asia/Damascus</option>";
ECHO "<option value='Asia/Dushanbe' ".($user['TIMEZONE'] == 'Asia/Dushanbe'?" selected='selected'" : NULL).">Asia/Dushanbe</option>";
ECHO "<option value='Asia/Ho_Chi_Minh' ".($user['TIMEZONE'] == 'Asia/Ho_Chi_Minh'?" selected='selected'" : NULL).">Asia/Ho_Chi_Minh</option>";
ECHO "<option value='Asia/Jakarta' ".($user['TIMEZONE'] == 'Asia/Jakarta'?" selected='selected'" : NULL).">Asia/Jakarta</option>";
ECHO "<option value='Asia/Kamchatka' ".($user['TIMEZONE'] == 'Asia/Kamchatka'?" selected='selected'" : NULL).">Asia/Kamchatka</option>";
ECHO "<option value='Asia/Kolkata' ".($user['TIMEZONE'] == 'Asia/Kolkata'?" selected='selected'" : NULL).">Asia/Kolkata</option>";
ECHO "<option value='Asia/Kuwait' ".($user['TIMEZONE'] == 'Asia/Kuwait'?" selected='selected'" : NULL).">Asia/Kuwait</option>";
ECHO "<option value='Asia/Manila' ".($user['TIMEZONE'] == 'Asia/Manila'?" selected='selected'" : NULL).">Asia/Manila</option>";
ECHO "<option value='Asia/Novosibirsk' ".($user['TIMEZONE'] == 'Asia/Novosibirsk'?" selected='selected'" : NULL).">Asia/Novosibirsk</option>";
ECHO "<option value='Asia/Pontianak' ".($user['TIMEZONE'] == 'Asia/Pontianak'?" selected='selected'" : NULL).">Asia/Pontianak</option>";
ECHO "<option value='Asia/Qyzylorda' ".($user['TIMEZONE'] == 'Asia/Qyzylorda'?" selected='selected'" : NULL).">Asia/Qyzylorda</option>";
ECHO "<option value='Asia/Seoul' ".($user['TIMEZONE'] == 'Asia/Seoul'?" selected='selected'" : NULL).">Asia/Seoul</option>";
ECHO "<option value='Asia/Taipei' ".($user['TIMEZONE'] == 'Asia/Taipei'?" selected='selected'" : NULL).">Asia/Taipei</option>";
ECHO "<option value='Asia/Thimphu' ".($user['TIMEZONE'] == 'Asia/Thimphu'?" selected='selected'" : NULL).">Asia/Thimphu</option>";
ECHO "<option value='Asia/Urumqi' ".($user['TIMEZONE'] == 'Asia/Urumqi'?" selected='selected'" : NULL).">Asia/Urumqi</option>";
ECHO "<option value='Asia/Yakutsk' ".($user['TIMEZONE'] == 'Asia/Yakutsk'?" selected='selected'" : NULL).">Asia/Yakutsk</option>";

ECHO "<option value='Atlantic/Azores' ".($user['TIMEZONE'] == 'Atlantic/Azores'?" selected='selected'" : NULL).">Atlantic/Azores</option>";
ECHO "<option value='Atlantic/Faroe' ".($user['TIMEZONE'] == 'Atlantic/Faroe'?" selected='selected'" : NULL).">Atlantic/Faroe</option>";
ECHO "<option value='Atlantic/St_Helena' ".($user['TIMEZONE'] == 'Atlantic/St_Helena'?" selected='selected'" : NULL).">Atlantic/St_Helena</option>";
ECHO "<option value='Atlantic/Bermuda' ".($user['TIMEZONE'] == 'Atlantic/Bermuda'?" selected='selected'" : NULL).">Atlantic/Bermuda</option>";
ECHO "<option value='Atlantic/Madeira' ".($user['TIMEZONE'] == 'Atlantic/Madeira'?" selected='selected'" : NULL).">Atlantic/Madeira</option>";
ECHO "<option value='Atlantic/Stanley' ".($user['TIMEZONE'] == 'Atlantic/Stanley'?" selected='selected'" : NULL).">Atlantic/Stanley</option>";
ECHO "<option value='Atlantic/Canary' ".($user['TIMEZONE'] == 'Atlantic/Canary'?" selected='selected'" : NULL).">Atlantic/Canary</option>";
ECHO "<option value='Atlantic/Reykjavik' ".($user['TIMEZONE'] == 'Atlantic/Reykjavik'?" selected='selected'" : NULL).">Atlantic/Reykjavik</option>";
ECHO "<option value='Atlantic/Cape_Verde' ".($user['TIMEZONE'] == 'Atlantic/Cape_Verde'?" selected='selected'" : NULL).">Atlantic/Cape_Verde</option>";
ECHO "<option value='Atlantic/South_Georgia' ".($user['TIMEZONE'] == 'Atlantic/South_Georgia'?" selected='selected'" : NULL).">Atlantic/South_Georgia</option>";

ECHO "<option value='Australia/Adelaide' ".($user['TIMEZONE'] == 'Australia/Adelaide'?" selected='selected'" : NULL).">Australia/Adelaide</option>";
ECHO "<option value='Australia/Darwin' ".($user['TIMEZONE'] == 'Australia/Darwin'?" selected='selected'" : NULL).">Australia/Darwin</option>";
ECHO "<option value='Australia/Lord_Howe' ".($user['TIMEZONE'] == 'Australia/Lord_Howe'?" selected='selected'" : NULL).">Australia/Lord_Howe</option>";
ECHO "<option value='Australia/Brisbane' ".($user['TIMEZONE'] == 'Australia/Brisbane'?" selected='selected'" : NULL).">Australia/Brisbane</option>";
ECHO "<option value='Australia/Eucla' ".($user['TIMEZONE'] == 'Australia/Eucla'?" selected='selected'" : NULL).">Australia/Eucla</option>";
ECHO "<option value='Australia/Melbourne' ".($user['TIMEZONE'] == 'Australia/Melbourne'?" selected='selected'" : NULL).">Australia/Melbourne</option>";
ECHO "<option value='Australia/Broken_Hill' ".($user['TIMEZONE'] == 'Australia/Broken_Hill'?" selected='selected'" : NULL).">Australia/Broken_Hill</option>";
ECHO "<option value='Australia/Hobart' ".($user['TIMEZONE'] == 'Australia/Hobart'?" selected='selected'" : NULL).">Australia/Hobart</option>";
ECHO "<option value='Australia/Perth' ".($user['TIMEZONE'] == 'Australia/Perth'?" selected='selected'" : NULL).">Australia/Perth</option>";
ECHO "<option value='Australia/Currie' ".($user['TIMEZONE'] == 'Australia/Currie'?" selected='selected'" : NULL).">Australia/Currie</option>";
ECHO "<option value='Australia/Lindeman' ".($user['TIMEZONE'] == 'Australia/Lindeman'?" selected='selected'" : NULL).">Australia/Lindeman</option>";
ECHO "<option value='Australia/Sydney' ".($user['TIMEZONE'] == 'Australia/Sydney'?" selected='selected'" : NULL).">Australia/Sydney</option>";

ECHO "<option value='Europe/Amsterdam' ".($user['TIMEZONE'] == 'Europe/Amsterdam'?" selected='selected'" : NULL).">Europe/Amsterdam</option>";
ECHO "<option value='Europe/Belgrade' ".($user['TIMEZONE'] == 'Europe/Belgrade'?" selected='selected'" : NULL).">Europe/Belgrade</option>";
ECHO "<option value='Europe/Bucharest' ".($user['TIMEZONE'] == 'Europe/Bucharest'?" selected='selected'" : NULL).">Europe/Bucharest</option>";
ECHO "<option value='Europe/Copenhagen' ".($user['TIMEZONE'] == 'Europe/Copenhagen'?" selected='selected'" : NULL).">Europe/Copenhagen</option>";
ECHO "<option value='Europe/Helsinki' ".($user['TIMEZONE'] == 'Europe/Helsinki'?" selected='selected'" : NULL).">Europe/Helsinki</option>";
ECHO "<option value='Europe/Kaliningrad' ".($user['TIMEZONE'] == 'Europe/Kaliningrad'?" selected='selected'" : NULL).">Europe/Kaliningrad</option>";
ECHO "<option value='Europe/Ljubljana' ".($user['TIMEZONE'] == 'Europe/Ljubljana'?" selected='selected'" : NULL).">Europe/Ljubljana</option>";
ECHO "<option value='Europe/Malta' ".($user['TIMEZONE'] == 'Europe/Malta'?" selected='selected'" : NULL).">Europe/Malta</option>";
ECHO "<option value='Europe/Moscow' ".($user['TIMEZONE'] == 'Europe/Moscow'?" selected='selected'" : NULL).">Europe/Moscow</option>";
ECHO "<option value='Europe/Prague' ".($user['TIMEZONE'] == 'Europe/Prague'?" selected='selected'" : NULL).">Europe/Prague</option>";
ECHO "<option value='Europe/San_Marino' ".($user['TIMEZONE'] == 'Europe/San_Marino'?" selected='selected'" : NULL).">Europe/San_Marino</option>";
ECHO "<option value='Europe/Skopje' ".($user['TIMEZONE'] == 'Europe/Skopje'?" selected='selected'" : NULL).">Europe/Skopje</option>";
ECHO "<option value='Europe/Tirane' ".($user['TIMEZONE'] == 'Europe/Tirane'?" selected='selected'" : NULL).">Europe/Tirane</option>";
ECHO "<option value='Europe/Vatican' ".($user['TIMEZONE'] == 'Europe/Vatican'?" selected='selected'" : NULL).">Europe/Vatican</option>";
ECHO "<option value='Europe/Warsaw' ".($user['TIMEZONE'] == 'Europe/Warsaw'?" selected='selected'" : NULL).">Europe/Warsaw</option>";
ECHO "<option value='Europe/Andorra' ".($user['TIMEZONE'] == 'Europe/Andorra'?" selected='selected'" : NULL).">Europe/Andorra</option>";
ECHO "<option value='Europe/Berlin' ".($user['TIMEZONE'] == 'Europe/Berlin'?" selected='selected'" : NULL).">Europe/Berlin</option>";
ECHO "<option value='Europe/Budapest' ".($user['TIMEZONE'] == 'Europe/Budapest'?" selected='selected'" : NULL).">Europe/Budapest</option>";
ECHO "<option value='Europe/Dublin' ".($user['TIMEZONE'] == 'Europe/Dublin'?" selected='selected'" : NULL).">Europe/Dublin</option>";
ECHO "<option value='Europe/Isle_of_Man' ".($user['TIMEZONE'] == 'Europe/Isle_of_Man'?" selected='selected'" : NULL).">Europe/Isle_of_Man</option>";
ECHO "<option value='Europe/Kiev' ".($user['TIMEZONE'] == 'Europe/Kiev'?" selected='selected'" : NULL).">Europe/Kiev</option>";
ECHO "<option value='Europe/London' ".($user['TIMEZONE'] == 'Europe/London'?" selected='selected'" : NULL).">Europe/London</option>";
ECHO "<option value='Europe/Mariehamn' ".($user['TIMEZONE'] == 'Europe/Mariehamn'?" selected='selected'" : NULL).">Europe/Mariehamn</option>";
ECHO "<option value='Europe/Oslo' ".($user['TIMEZONE'] == 'Europe/Oslo'?" selected='selected'" : NULL).">Europe/Oslo</option>";
ECHO "<option value='Europe/Riga' ".($user['TIMEZONE'] == 'Europe/Riga'?" selected='selected'" : NULL).">Europe/Riga</option>";
ECHO "<option value='Europe/Sarajevo' ".($user['TIMEZONE'] == 'Europe/Sarajevo'?" selected='selected'" : NULL).">Europe/Sarajevo</option>";
ECHO "<option value='Europe/Sofia' ".($user['TIMEZONE'] == 'Europe/Sofia'?" selected='selected'" : NULL).">Europe/Sofia</option>";
ECHO "<option value='Europe/Ulyanovsk' ".($user['TIMEZONE'] == 'Europe/Ulyanovsk'?" selected='selected'" : NULL).">Europe/Ulyanovsk</option>";
ECHO "<option value='Europe/Vienna' ".($user['TIMEZONE'] == 'Europe/Vienna'?" selected='selected'" : NULL).">Europe/Vienna</option>";
ECHO "<option value='Europe/Zagreb' ".($user['TIMEZONE'] == 'Europe/Zagreb'?" selected='selected'" : NULL).">Europe/Zagreb</option>";
ECHO "<option value='Europe/Astrakhan' ".($user['TIMEZONE'] == 'Europe/Astrakhan'?" selected='selected'" : NULL).">Europe/Astrakhan</option>";
ECHO "<option value='Europe/Bratislava' ".($user['TIMEZONE'] == 'Europe/Bratislava'?" selected='selected'" : NULL).">Europe/Bratislava</option>";
ECHO "<option value='Europe/Busingen' ".($user['TIMEZONE'] == 'Europe/Busingen'?" selected='selected'" : NULL).">Europe/Busingen</option>";
ECHO "<option value='Europe/Gibraltar' ".($user['TIMEZONE'] == 'Europe/Gibraltar'?" selected='selected'" : NULL).">Europe/Gibraltar</option>";
ECHO "<option value='Europe/Istanbul' ".($user['TIMEZONE'] == 'Europe/Istanbul'?" selected='selected'" : NULL).">Europe/Istanbul</option>";
ECHO "<option value='Europe/Kirov' ".($user['TIMEZONE'] == 'Europe/Kirov'?" selected='selected'" : NULL).">Europe/Kirov</option>";
ECHO "<option value='Europe/Luxembourg' ".($user['TIMEZONE'] == 'Europe/Luxembourg'?" selected='selected'" : NULL).">Europe/Luxembourg</option>";
ECHO "<option value='Europe/Minsk' ".($user['TIMEZONE'] == 'Europe/Minsk'?" selected='selected'" : NULL).">Europe/Minsk</option>";
ECHO "<option value='Europe/Paris' ".($user['TIMEZONE'] == 'Europe/Paris'?" selected='selected'" : NULL).">Europe/Paris</option>";
ECHO "<option value='Europe/Rome' ".($user['TIMEZONE'] == 'Europe/Rome'?" selected='selected'" : NULL).">Europe/Rome</option>";
ECHO "<option value='Europe/Saratov' ".($user['TIMEZONE'] == 'Europe/Saratov'?" selected='selected'" : NULL).">Europe/Saratov</option>";
ECHO "<option value='Europe/Stockholm' ".($user['TIMEZONE'] == 'Europe/Stockholm'?" selected='selected'" : NULL).">Europe/Stockholm</option>";
ECHO "<option value='Europe/Uzhgorod' ".($user['TIMEZONE'] == 'Europe/Uzhgorod'?" selected='selected'" : NULL).">Europe/Uzhgorod</option>";
ECHO "<option value='Europe/Vilnius' ".($user['TIMEZONE'] == 'Europe/Vilnius'?" selected='selected'" : NULL).">Europe/Vilnius</option>";
ECHO "<option value='Europe/Zaporozhye' ".($user['TIMEZONE'] == 'Europe/Zaporozhye'?" selected='selected'" : NULL).">Europe/Zaporozhye</option>";
ECHO "<option value='Europe/Athens' ".($user['TIMEZONE'] == 'Europe/Athens'?" selected='selected'" : NULL).">Europe/Athens</option>";
ECHO "<option value='Europe/Brussels' ".($user['TIMEZONE'] == 'Europe/Brussels'?" selected='selected'" : NULL).">Europe/Brussels</option>";
ECHO "<option value='Europe/Chisinau' ".($user['TIMEZONE'] == 'Europe/Chisinau'?" selected='selected'" : NULL).">Europe/Chisinau</option>";
ECHO "<option value='Europe/Guernsey' ".($user['TIMEZONE'] == 'Europe/Guernsey'?" selected='selected'" : NULL).">Europe/Guernsey</option>";
ECHO "<option value='Europe/Jersey' ".($user['TIMEZONE'] == 'Europe/Jersey'?" selected='selected'" : NULL).">Europe/Jersey</option>";
ECHO "<option value='Europe/Lisbon' ".($user['TIMEZONE'] == 'Europe/Lisbon'?" selected='selected'" : NULL).">Europe/Lisbon</option>";
ECHO "<option value='Europe/Madrid' ".($user['TIMEZONE'] == 'Europe/Madrid'?" selected='selected'" : NULL).">Europe/Madrid</option>";
ECHO "<option value='Europe/Monaco' ".($user['TIMEZONE'] == 'Europe/Monaco'?" selected='selected'" : NULL).">Europe/Monaco</option>";
ECHO "<option value='Europe/Podgorica' ".($user['TIMEZONE'] == 'Europe/Podgorica'?" selected='selected'" : NULL).">Europe/Podgorica</option>";
ECHO "<option value='Europe/Samara' ".($user['TIMEZONE'] == 'Europe/Samara'?" selected='selected'" : NULL).">Europe/Samara</option>";
ECHO "<option value='Europe/Simferopol' ".($user['TIMEZONE'] == 'Europe/Simferopol'?" selected='selected'" : NULL).">Europe/Simferopol</option>";
ECHO "<option value='Europe/Tallinn' ".($user['TIMEZONE'] == 'Europe/Tallinn'?" selected='selected'" : NULL).">Europe/Tallinn</option>";
ECHO "<option value='Europe/Vaduz' ".($user['TIMEZONE'] == 'Europe/Vaduz'?" selected='selected'" : NULL).">Europe/Vaduz</option>";
ECHO "<option value='Europe/Volgograd' ".($user['TIMEZONE'] == 'Europe/Volgograd'?" selected='selected'" : NULL).">Europe/Volgograd</option>";
ECHO "<option value='Europe/Zurich' ".($user['TIMEZONE'] == 'Europe/Zurich'?" selected='selected'" : NULL).">Europe/Zurich</option>";

ECHO "</select><br /><br />";

HTML::BUTTON('btn-big ajax-button', 'ok', 'save', 'Сохранить изменения');

ECHO "</form>";

ECHO "</div>";

ECHO "<div class='navigation'>";
ECHO "<a href='/'>".ICONS('home', 25, 'fa-fw')."</a>";
ECHO "".ICONS('angle-right', 22, 'fa-fw')."";
ECHO "<a href='/id".$user['ID']."'>".TEXT_ABSOLUTE($user['LOGIN'])."</a>";
ECHO "".ICONS('angle-right', 22, 'fa-fw')."";
ECHO "<a href='?path=settings'>".LG('Настройки аккаунта')."</a>";
ECHO "".ICONS('angle-right', 22, 'fa-fw')."";
ECHO "".LG('Время и дата')."";
ECHO "</div>";
  
?>