PDA

View Full Version : Countries, US cities and states SimpleStore



ethraza
11 Apr 2008, 7:49 PM
This is not exactly a extension or even code, but it can be very hand if your boss what you to create comboboxes with all the countries of the world.

The us states list come from the Ext examples and contains the states nick too, the countries and us cities list come from Google's gmail form.

If you need the list in an JS array or Ext.data.SimpleStore, done! ;)



ps. Load up the US Cities SimpleStore can be a pain in the ass for the browser! :D

wom75
14 May 2008, 9:06 AM
Thanks!

ethraza
12 Sep 2008, 11:24 PM
Another one! Now a TZ (Time Zone) list.



Ext.stores.tz = new Ext.data.SimpleStore({
fields: ['tz', 'comment'],
data : [
["Africa/Abidjan",""],
["Africa/Accra",""],
["Africa/Addis_Ababa",""],
["Africa/Algiers",""],
["Africa/Asmera",""],
["Africa/Bamako", "southwest Mali"],
["Africa/Bangui",""],
["Africa/Banjul",""],
["Africa/Bissau",""],
["Africa/Blantyre",""],
["Africa/Brazzaville",""],
["Africa/Bujumbura",""],
["Africa/Cairo",""],
["Africa/Casablanca",""],
["Africa/Ceuta", "Ceuta & Melilla"],
["Africa/Conakry",""],
["Africa/Dakar",""],
["Africa/Dar_es_Salaam",""],
["Africa/Djibouti",""],
["Africa/Douala",""],
["Africa/El_Aaiun",""],
["Africa/Freetown",""],
["Africa/Gaborone",""],
["Africa/Harare",""],
["Africa/Johannesburg"],
["Africa/Kampala",""],
["Africa/Khartoum",""],
["Africa/Kigali",""],
["Africa/Kinshasa", "west Dem. Rep. of Congo"],
["Africa/Lagos",""],
["Africa/Libreville",""],
["Africa/Lome",""],
["Africa/Luanda",""],
["Africa/Lubumbashi", "east Dem. Rep. of Congo"],
["Africa/Lusaka",""],
["Africa/Malabo",""],
["Africa/Maputo",""],
["Africa/Maseru",""],
["Africa/Mbabane",""],
["Africa/Mogadishu",""],
["Africa/Monrovia",""],
["Africa/Nairobi",""],
["Africa/Ndjamena",""],
["Africa/Niamey",""],
["Africa/Nouakchott",""],
["Africa/Ouagadougou",""],
["Africa/Porto-Novo",""],
["Africa/Sao_Tome",""],
["Africa/Timbuktu", "northeast Mali"],
["Africa/Tripoli",""],
["Africa/Tunis",""],
["Africa/Windhoek",""],
["America/Adak", "Aleutian Islands"],
["America/Anchorage", "Alaska Time"],
["America/Anguilla",""],
["America/Antigua",""],
["America/Araguaina", "Tocantins"],
["America/Aruba",""],
["America/Asuncion",""],
["America/Barbados",""],
["America/Belem", "Amapa, E Para"],
["America/Belize",""],
["America/Bogota",""],
["America/Boise", "Mountain Time - south Idaho & east Oregon"],
["America/Buenos_Aires", "E Argentina (BA, DF, SC, TF)"],
["America/Cancun", "Eastern Time"],
["America/Caracas",""],
["America/Catamarca", "Catamarca (CT)"],
["America/Cayenne",""],
["America/Cayman",""],
["America/Chicago", "Central Time"],
["America/Chihuahua", "Mountain Time - Chihuahua"],
["America/Cordoba", "W Argentina (CB, SA, TM, LR, SJ, SL, NQ, RN)"],
["America/Costa_Rica",""],
["America/Cuiaba", "Mato Grosso, Mato Grosso do Sul"],
["America/Curacao",""],
["America/Dawson_Creek", "Mountain Standard Time - Dawson Creek & Fort Saint John, British Columbia"],
["America/Dawson", "Pacific Time - north Yukon"],
["America/Denver", "Mountain Time"],
["America/Detroit", "Eastern Time - Michigan - most locations"],
["America/Dominica",""],
["America/Edmonton", "Mountain Time - Alberta, east British Columbia & west Saskatchewan"],
["America/El_Salvador",""],
["America/Ensenada", "Pacific Time - most locations"],
["America/Fortaleza", "NE Brazil (MA, PI, CE, RN, PR, PE)"],
["America/Glace_Bay", "Atlantic Time - Nova Scotia - places that did not observe DST 1966-1971"],
["America/Godthab", "southwest Greenland"],
["America/Goose_Bay", "Atlantic Time - E Labrador"],
["America/Grand_Turk",""],
["America/Grenada",""],
["America/Guadeloupe",""],
["America/Guatemala",""],
["America/Guayaquil", "mainland"],
["America/Guyana",""],
["America/Halifax", "Atlantic Time - Nova Scotia (most places), NB, W Labrador, E Quebec & PEI"],
["America/Havana",""],
["America/Indiana/Knox", "Eastern Standard Time - Indiana - Starke County"],
["America/Indiana/Marengo", "Eastern Standard Time - Indiana - Crawford County"],
["America/Indianapolis", "Eastern Standard Time - Indiana - most locations"],
["America/Indiana/Vevay", "Eastern Standard Time - Indiana - Switzerland County"],
["America/Inuvik", "Mountain Time - west Northwest Territories"],
["America/Iqaluit", "Eastern Time - Northwest Territories"],
["America/Jamaica",""],
["America/Jujuy", "Jujuy (JY)"],
["America/Juneau", "Alaska Time - Alaska panhandle"],
["America/La_Paz",""],
["America/Lima",""],
["America/Los_Angeles", "Pacific Time"],
["America/Louisville", "Eastern Time - Louisville, Kentucky"],
["America/Maceio", "Alagoas, Sergipe"],
["America/Managua",""],
["America/Manaus", "Amazonas"],
["America/Martinique",""],
["America/Mazatlan", "Mountain Time - most locations"],
["America/Mendoza", "Mendoza (MZ)"],
["America/Menominee", "Central Time - Michigan - Wisconsin border"],
["America/Mexico_City", "Central Time"],
["America/Miquelon",""],
["America/Montevideo",""],
["America/Montreal", "Eastern Time - Ontario & Quebec - most locations"],
["America/Montserrat",""],
["America/Nassau",""],
["America/New_York", "Eastern Time"],
["America/Nipigon", "Eastern Time - Ontario & Quebec - places that did not observe DST 1967-1973"],
["America/Nome", "Alaska Time - west Alaska"],
["America/Noronha", "Fernando de Noronha"],
["America/Panama",""],
["America/Pangnirtung", "Atlantic Time - Northwest Territories"],
["America/Paramaribo",""],
["America/Phoenix", "Mountain Standard Time - Arizona"],
["America/Port-au-Prince",""],
["America/Porto_Acre", "Acre"],
["America/Port_of_Spain",""],
["America/Porto_Velho", "W Para, Rondonia, Roraima"],
["America/Puerto_Rico",""],
["America/Rainy_River", "Central Time - Rainy River & Fort Frances, Ontario"],
["America/Rankin_Inlet", "Central Time - Northwest Territories"],
["America/Regina", "Central Standard Time - Saskatchewan - most locations"],
["America/Rosario", "NE Argentina (SF, ER, CN, MN, CC, FM, LP, CH)"],
["America/Santiago", "mainland"],
["America/Santo_Domingo",""],
["America/Sao_Paulo", "S & SE Brazil (BA, GO, DF, MG, ES, RJ, SP, PR, SC, RS)"],
["America/Scoresbysund", "east Greenland"],
["America/Shiprock", "Mountain Time - Navajo"],
["America/St_Johns", "Newfoundland Island"],
["America/St_Kitts",""],
["America/St_Lucia",""],
["America/St_Thomas",""],
["America/St_Vincent",""],
["America/Swift_Current", "Central Standard Time - Saskatchewan - midwest"],
["America/Tegucigalpa",""],
["America/Thule", "northwest Greenland"],
["America/Thunder_Bay", "Eastern Time - Thunder Bay, Ontario"],
["America/Tijuana", "Pacific Time - north Baja California"],
["America/Tortola",""],
["America/Vancouver", "Pacific Time - west British Columbia"],
["America/Whitehorse", "Pacific Time - south Yukon"],
["America/Winnipeg", "Central Time - Manitoba & west Ontario"],
["America/Yakutat", "Alaska Time - Alaska panhandle neck"],
["America/Yellowknife", "Mountain Time - central Northwest Territories"],
["Antarctica/Casey", "Casey Station, Bailey Peninsula"],
["Antarctica/Davis", "Davis Station, Vestfold Hills"],
["Antarctica/DumontDUrville", "Dumont-d'Urville Base, Terre Adelie"],
["Antarctica/Mawson", "Mawson Station, Holme Bay"],
["Antarctica/McMurdo", "McMurdo Station, Ross Island"],
["Antarctica/Palmer", "Palmer Station, Anvers Island"],
["Antarctica/South_Pole", "Amundsen-Scott Station, South Pole"],
["Arctic/Longyearbyen", "Svalbard"],
["Asia/Aden",""],
["Asia/Almaty", "east Kazakhstan"],
["Asia/Amman",""],
["Asia/Anadyr", "Moscow+10 - Bering Sea"],
["Asia/Aqtau", "west Kazakhstan"],
["Asia/Aqtobe", "central Kazakhstan"],
["Asia/Ashkhabad",""],
["Asia/Baghdad",""],
["Asia/Bahrain",""],
["Asia/Baku",""],
["Asia/Bangkok",""],
["Asia/Beirut",""],
["Asia/Bishkek",""],
["Asia/Brunei",""],
["Asia/Calcutta",""],
["Asia/Chungking", "China mountains"],
["Asia/Colombo",""],
["Asia/Dacca",""],
["Asia/Damascus",""],
["Asia/Dubai",""],
["Asia/Dushanbe",""],
["Asia/Gaza",""],
["Asia/Harbin", "north Manchuria"],
["Asia/Hong_Kong", "Hong Kong"],
["Asia/Irkutsk", "Moscow+05 - Lake Baikal"],
["Asia/Jakarta", "Java & Sumatra"],
["Asia/Jayapura", "Irian Jaya & the Moluccas"],
["Asia/Jerusalem",""],
["Asia/Kabul",""],
["Asia/Kamchatka", "Moscow+09 - Kamchatka"],
["Asia/Karachi",""],
["Asia/Kashgar", "Eastern Turkestan"],
["Asia/Katmandu",""],
["Asia/Krasnoyarsk", "Moscow+04 - Yenisei River"],
["Asia/Kuala_Lumpur", "peninsular Malaysia"],
["Asia/Kuching", "Sabah & Sarawak"],
["Asia/Kuwait",""],
["Asia/Macao",""],
["Asia/Magadan", "Moscow+08 - Magadan & Sakhalin"],
["Asia/Manila",""],
["Asia/Muscat",""],
["Asia/Nicosia",""],
["Asia/Novosibirsk", "Moscow+03 - Novosibirsk"],
["Asia/Omsk", "Moscow+03 - west Siberia"],
["Asia/Phnom_Penh",""],
["Asia/Pyongyang",""],
["Asia/Qatar",""],
["Asia/Rangoon",""],
["Asia/Riyadh",""],
["Asia/Saigon",""],
["Asia/Samarkand", "west Uzbekistan"],
["Asia/Seoul",""],
["Asia/Shanghai", "China coast"],
["Asia/Singapore",""],
["Asia/Taipei",""],
["Asia/Tashkent", "east Uzbekistan"],
["Asia/Tbilisi",""],
["Asia/Tehran",""],
["Asia/Thimbu",""],
["Asia/Tokyo",""],
["Asia/Ujung_Pandang", "Borneo & Celebes"],
["Asia/Ulan_Bator",""],
["Asia/Urumqi", "Tibet & Xinjiang"],
["Asia/Vientiane",""],
["Asia/Vladivostok", "Moscow+07 - Amur River"],
["Asia/Yakutsk", "Moscow+06 - Lena River"],
["Asia/Yekaterinburg", "Moscow+02 - Urals"],
["Asia/Yerevan",""],
["Atlantic/Azores", "Azores"],
["Atlantic/Bermuda",""],
["Atlantic/Canary", "Canary Islands"],
["Atlantic/Cape_Verde",""],
["Atlantic/Faeroe",""],
["Atlantic/Jan_Mayen", "Jan Mayen"],
["Atlantic/Madeira", "Madeira Islands"],
["Atlantic/Reykjavik",""],
["Atlantic/South_Georgia",""],
["Atlantic/Stanley",""],
["Atlantic/St_Helena",""],
["Australia/Adelaide", "South Australia"],
["Australia/Brisbane", "Queensland - most locations"],
["Australia/Broken_Hill", "New South Wales - Broken Hill"],
["Australia/Darwin", "Northern Territory"],
["Australia/Hobart", "Tasmania"],
["Australia/Lindeman", "Queensland - Holiday Islands"],
["Australia/Lord_Howe", "Lord Howe Island"],
["Australia/Melbourne", "Victoria"],
["Australia/Perth", "Western Australia"],
["Australia/Sydney", "New South Wales - most locations"],
["Europe/Amsterdam",""],
["Europe/Andorra",""],
["Europe/Athens",""],
["Europe/Belfast", "Northern Ireland"],
["Europe/Belgrade",""],
["Europe/Berlin",""],
["Europe/Bratislava",""],
["Europe/Brussels",""],
["Europe/Bucharest",""],
["Europe/Budapest",""],
["Europe/Chisinau",""],
["Europe/Copenhagen",""],
["Europe/Dublin",""],
["Europe/Gibraltar",""],
["Europe/Helsinki",""],
["Europe/Istanbul",""],
["Europe/Kaliningrad", "Moscow-01 - Kaliningrad"],
["Europe/Kiev", "most locations"],
["Europe/Lisbon", "mainland"],
["Europe/Ljubljana",""],
["Europe/London", "Great Britain"],
["Europe/Luxembourg",""],
["Europe/Madrid", "mainland"],
["Europe/Malta",""],
["Europe/Minsk",""],
["Europe/Monaco",""],
["Europe/Moscow", "Moscow+00 - west Russia"],
["Europe/Oslo",""],
["Europe/Paris",""],
["Europe/Prague",""],
["Europe/Riga",""],
["Europe/Rome",""],
["Europe/Samara", "Moscow+01 - Caspian Sea"],
["Europe/San_Marino",""],
["Europe/Sarajevo",""],
["Europe/Simferopol", "Crimea"],
["Europe/Skopje",""],
["Europe/Sofia",""],
["Europe/Stockholm",""],
["Europe/Tallinn",""],
["Europe/Tirane",""],
["Europe/Vaduz",""],
["Europe/Vatican",""],
["Europe/Vienna",""],
["Europe/Vilnius",""],
["Europe/Warsaw",""],
["Europe/Zagreb",""],
["Europe/Zurich",""],
["Indian/Antananarivo",""],
["Indian/Chagos",""],
["Indian/Christmas",""],
["Indian/Cocos",""],
["Indian/Comoro",""],
["Indian/Kerguelen",""],
["Indian/Mahe",""],
["Indian/Maldives",""],
["Indian/Mauritius",""],
["Indian/Mayotte",""],
["Indian/Reunion",""],
["Pacific/Apia",""],
["Pacific/Auckland", "most locations"],
["Pacific/Chatham", "Chatham Islands"],
["Pacific/Easter", "Easter Island"],
["Pacific/Efate",""],
["Pacific/Enderbury", "Phoenix Islands"],
["Pacific/Fakaofo",""],
["Pacific/Fiji",""],
["Pacific/Funafuti",""],
["Pacific/Galapagos", "Galapagos Islands"],
["Pacific/Gambier", "Gambier Islands"],
["Pacific/Guadalcanal",""],
["Pacific/Guam",""],
["Pacific/Honolulu", "Hawaii"],
["Pacific/Johnston", "Johnston Atoll"],
["Pacific/Kiritimati", "Line Islands"],
["Pacific/Kosrae", "Kosrae"],
["Pacific/Kwajalein", "Kwajalein"],
["Pacific/Majuro", "most locations"],
["Pacific/Marquesas", "Marquesas Islands"],
["Pacific/Midway", "Midway Islands"],
["Pacific/Nauru",""],
["Pacific/Niue",""],
["Pacific/Norfolk",""],
["Pacific/Noumea",""],
["Pacific/Pago_Pago",""],
["Pacific/Palau",""],
["Pacific/Pitcairn",""],
["Pacific/Ponape", "Ponape (Pohnpei)"],
["Pacific/Port_Moresby",""],
["Pacific/Rarotonga",""],
["Pacific/Saipan",""],
["Pacific/Tahiti", "Society Islands"],
["Pacific/Tarawa", "Gilbert Islands"],
["Pacific/Tongatapu",""],
["Pacific/Truk", "Truk (Chuuk)"],
["Pacific/Wake", "Wake Island"],
["Pacific/Wallis",""],
["Pacific/Yap", "Yap"]
]});


List grabbed from http://www.theprojects.org/dev/zone.txt