📄 ps_country.inc
字号:
<?php/*+-----------------------------------------------------------------------+| Copyright (c) 2002-2003, Mika Tuupola || All rights reserved. || || Redistribution and use in source and binary forms, with or without || modification, are permitted provided that the following conditions || are met: || || o Redistributions of source code must retain the above copyright || notice, this list of conditions and the following disclaimer. || o Redistributions in binary form must reproduce the above copyright || notice, this list of conditions and the following disclaimer in the || documentation and/or other materials provided with the distribution.|| o The names of the authors may not be used to endorse or promote || products derived from this software without specific prior written || permission. || || THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS || "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT || LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR || A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT || OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, || SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT || LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, || DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY || THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT || (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE || OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. || |+-----------------------------------------------------------------------+| Author: Mika Tuupola <tuupola@appelsiini.net> |+-----------------------------------------------------------------------+*//* $Id: ps_country.inc,v 1.1.1.1 2004/07/27 14:58:32 pablo Exp $ */class ps_country { var $twothree; var $twocountry; var $twonumber; var $code; function ps_country($code='') { $this->code = $code; $this->twothree = array( 'AF' => 'AFG', 'AL' => 'ALB', 'DZ' => 'DZA', 'AS' => 'ASM', 'AD' => 'AND', 'AO' => 'AGO', 'AI' => 'AIA', 'AQ' => 'ATA', 'AG' => 'ATG', 'AR' => 'ARG', 'AM' => 'ARM', 'AW' => 'ABW', 'AU' => 'AUS', 'AT' => 'AUT', 'AZ' => 'AZE', 'BS' => 'BHS', 'BH' => 'BHR', 'BD' => 'BGD', 'BB' => 'BRB', 'BY' => 'BLR', 'BE' => 'BEL', 'BZ' => 'BLZ', 'BJ' => 'BEN', 'BM' => 'BMU', 'BT' => 'BTN', 'BO' => 'BOL', 'BA' => 'BIH', 'BW' => 'BWA', 'BV' => 'BVT', 'BR' => 'BRA', 'IO' => 'IOT', 'VG' => 'VGB', 'BN' => 'BRN', 'BG' => 'BGR', 'BF' => 'BFA', 'BI' => 'BDI', 'KH' => 'KHM', 'CM' => 'CMR', 'CA' => 'CAN', 'CV' => 'CPV', 'KY' => 'CYM', 'CF' => 'CAF', 'TD' => 'TCD', 'CL' => 'CHL', 'CN' => 'CHN', 'CX' => 'CXR', 'CC' => 'CCK', 'CO' => 'COL', 'KM' => 'COM', 'CD' => 'COD', 'CG' => 'COG', 'CK' => 'COK', 'CR' => 'CRI', 'CI' => 'CIV', 'CU' => 'CUB', 'CY' => 'CYP', 'CZ' => 'CZE', 'DK' => 'DNK', 'DJ' => 'DJI', 'DM' => 'DMA', 'DO' => 'DOM', 'TL' => 'TLS', 'EC' => 'ECU', 'EG' => 'EGY', 'SV' => 'SLV', 'GQ' => 'GNQ', 'ER' => 'ERI', 'EE' => 'EST', 'ET' => 'ETH', 'FO' => 'FRO', 'FK' => 'FLK', 'FJ' => 'FJI', 'FI' => 'FIN', 'FR' => 'FRA', 'GF' => 'GUF', 'PF' => 'PYF', 'TF' => 'ATF', 'GA' => 'GAB', 'GM' => 'GMB', 'GE' => 'GEO', 'DE' => 'DEU', 'GH' => 'GHA', 'GI' => 'GIB', 'GR' => 'GRC', 'GL' => 'GRL', 'GD' => 'GRD', 'GP' => 'GLP', 'GU' => 'GUM', 'GT' => 'GTM', 'GN' => 'GIN', 'GW' => 'GNB', 'GY' => 'GUY', 'HT' => 'HTI', 'HM' => 'HMD', 'VA' => 'VAT', 'HN' => 'HND', 'HK' => 'HKG', 'HR' => 'HRV', 'HU' => 'HUN', 'IS' => 'ISL', 'IN' => 'IND', 'ID' => 'IDN', 'IR' => 'IRN', 'IQ' => 'IRQ', 'IE' => 'IRL', 'IL' => 'ISR', 'IT' => 'ITA', 'JM' => 'JAM', 'JP' => 'JPN', 'JO' => 'JOR', 'KZ' => 'KAZ', 'KE' => 'KEN', 'KI' => 'KIR', 'KP' => 'PRK', 'KR' => 'KOR', 'KW' => 'KWT', 'KG' => 'KGZ', 'LA' => 'LAO', 'LV' => 'LVA', 'LB' => 'LBN', 'LS' => 'LSO', 'LR' => 'LBR', 'LY' => 'LBY', 'LI' => 'LIE', 'LT' => 'LTU', 'LU' => 'LUX', 'MO' => 'MAC', 'MK' => 'MKD', 'MG' => 'MDG', 'MW' => 'MWI', 'MY' => 'MYS', 'MV' => 'MDV', 'ML' => 'MLI', 'MT' => 'MLT', 'MH' => 'MHL', 'MQ' => 'MTQ', 'MR' => 'MRT', 'MU' => 'MUS', 'YT' => 'MYT', 'MX' => 'MEX', 'FM' => 'FSM', 'MD' => 'MDA', 'MC' => 'MCO', 'MN' => 'MNG', 'MS' => 'MSR', 'MA' => 'MAR', 'MZ' => 'MOZ', 'MM' => 'MMR', 'NA' => 'NAM', 'NR' => 'NRU', 'NP' => 'NPL', 'AN' => 'ANT', 'NL' => 'NLD', 'NC' => 'NCL', 'NZ' => 'NZL', 'NI' => 'NIC', 'NE' => 'NER', 'NG' => 'NGA', 'NU' => 'NIU', 'NF' => 'NFK', 'MP' => 'MNP', 'NO' => 'NOR', 'OM' => 'OMN', 'PK' => 'PAK', 'PW' => 'PLW', 'PS' => 'PSE', 'PA' => 'PAN', 'PG' => 'PNG', 'PY' => 'PRY', 'PE' => 'PER', 'PH' => 'PHL', 'PN' => 'PCN', 'PL' => 'POL', 'PT' => 'PRT', 'PR' => 'PRI', 'QA' => 'QAT', 'RE' => 'REU', 'RO' => 'ROU', 'RU' => 'RUS', 'RW' => 'RWA', 'SH' => 'SHN', 'KN' => 'KNA', 'LC' => 'LCA', 'PM' => 'SPM', 'VC' => 'VCT', 'WS' => 'WSM', 'SM' => 'SMR', 'ST' => 'STP', 'SA' => 'SAU', 'SN' => 'SEN', 'SC' => 'SYC', 'SL' => 'SLE', 'SG' => 'SGP', 'SK' => 'SVK', 'SI' => 'SVN', 'SB' => 'SLB', 'SO' => 'SOM', 'ZA' => 'ZAF', 'GS' => 'SGS', 'ES' => 'ESP', 'LK' => 'LKA', 'SD' => 'SDN', 'SR' => 'SUR', 'SJ' => 'SJM', 'SZ' => 'SWZ', 'SE' => 'SWE', 'CH' => 'CHE', 'SY' => 'SYR', 'TW' => 'TWN', 'TJ' => 'TJK', 'TZ' => 'TZA', 'TH' => 'THA', 'TG' => 'TGO', 'TK' => 'TKL', 'TO' => 'TON', 'TT' => 'TTO', 'TN' => 'TUN', 'TR' => 'TUR', 'TM' => 'TKM', 'TC' => 'TCA', 'TV' => 'TUV', 'VI' => 'VIR', 'UG' => 'UGA', 'UA' => 'UKR', 'AE' => 'ARE', 'GB' => 'GBR', 'UM' => 'UMI', 'US' => 'USA', 'UY' => 'URY', 'UZ' => 'UZB', 'VU' => 'VUT', 'VE' => 'VEN', 'VN' => 'VNM', 'WF' => 'WLF', 'EH' => 'ESH', 'YE' => 'YEM', 'YU' => 'YUG', 'ZM' => 'ZMB', 'ZW' => 'ZWE' ); $this->twocountry = array( 'AF' => 'Afghanistan', 'AL' => 'Albania, People\'s Socialist Republic of', 'DZ' => 'Algeria, People\'s Democratic Republic of', 'AS' => 'American Samoa', 'AD' => 'Andorra, Principality of', 'AO' => 'Angola, Republic of', 'AI' => 'Anguilla', 'AQ' => 'Antarctica (the territory South of 60 deg S)', 'AG' => 'Antigua and Barbuda', 'AR' => 'Argentina, Argentine Republic', 'AM' => 'Armenia', 'AW' => 'Aruba', 'AU' => 'Australia, Commonwealth of', 'AT' => 'Austria, Republic of', 'AZ' => 'Azerbaijan, Republic of', 'BS' => 'Bahamas, Commonwealth of the', 'BH' => 'Bahrain, Kingdom of', 'BD' => 'Bangladesh, People\'s Republic of', 'BB' => 'Barbados', 'BY' => 'Belarus', 'BE' => 'Belgium, Kingdom of', 'BZ' => 'Belize', 'BJ' => 'Benin, People\'s Republic of', 'BM' => 'Bermuda', 'BT' => 'Bhutan, Kingdom of', 'BO' => 'Bolivia, Republic of', 'BA' => 'Bosnia and Herzegovina', 'BW' => 'Botswana, Republic of', 'BV' => 'Bouvet Island (Bouvetoya)', 'BR' => 'Brazil, Federative Republic of', 'IO' => 'British Indian Ocean Territory (Chagos Archipelago)', 'VG' => 'British Virgin Islands', 'BN' => 'Brunei Darussalam', 'BG' => 'Bulgaria, People\'s Republic of', 'BF' => 'Burkina Faso', 'BI' => 'Burundi, Republic of', 'KH' => 'Cambodia, Kingdom of', 'CM' => 'Cameroon, United Republic of', 'CA' => 'Canada', 'CV' => 'Cape Verde, Republic of', 'KY' => 'Cayman Islands', 'CF' => 'Central African Republic', 'TD' => 'Chad, Republic of', 'CL' => 'Chile, Republic of', 'CN' => 'China, People\'s Republic of', 'CX' => 'Christmas Island', 'CC' => 'Cocos (Keeling) Islands', 'CO' => 'Colombia, Republic of', 'KM' => 'Comoros, Federal and Islamic Republic of', 'CD' => 'Congo, Democratic Republic of', 'CG' => 'Congo, People\'s Republic of', 'CK' => 'Cook Islands', 'CR' => 'Costa Rica, Republic of', 'CI' => 'Cote D\'Ivoire, Ivory Coast, Republic of the', 'CU' => 'Cuba, Republic of', 'CY' => 'Cyprus, Republic of', 'CZ' => 'Czech Republic', 'DK' => 'Denmark, Kingdom of', 'DJ' => 'Djibouti, Republic of', 'DM' => 'Dominica, Commonwealth of', 'DO' => 'Dominican Republic', 'TL' => 'Timor-Leste', 'EC' => 'Ecuador, Republic of', 'EG' => 'Egypt, Arab Republic of', 'SV' => 'El Salvador, Republic of', 'GQ' => 'Equatorial Guinea, Republic of', 'ER' => 'Eritrea', 'EE' => 'Estonia', 'ET' => 'Ethiopia', 'FO' => 'Faeroe Islands', 'FK' => 'Falkland Islands (Malvinas)', 'FJ' => 'Fiji, Republic of the Fiji Islands', 'FI' => 'Finland, Republic of', 'FR' => 'France, French Republic', 'GF' => 'French Guiana', 'PF' => 'French Polynesia', 'TF' => 'French Southern Territories', 'GA' => 'Gabon, Gabonese Republic', 'GM' => 'Gambia, Republic of the', 'GE' => 'Georgia', 'DE' => 'Germany', 'GH' => 'Ghana, Republic of', 'GI' => 'Gibraltar', 'GR' => 'Greece, Hellenic Republic', 'GL' => 'Greenland', 'GD' => 'Grenada', 'GP' => 'Guadaloupe', 'GU' => 'Guam', 'GT' => 'Guatemala, Republic of', 'GN' => 'Guinea, Revolutionary People\'s Rep\'c of', 'GW' => 'Guinea-Bissau, Republic of', 'GY' => 'Guyana, Republic of', 'HT' => 'Haiti, Republic of', 'HM' => 'Heard and McDonald Islands', 'VA' => 'Holy See (Vatican City State)', 'HN' => 'Honduras, Republic of', 'HK' => 'Hong Kong, Special Administrative Region of China', 'HR' => 'Hrvatska (Croatia)', 'HU' => 'Hungary, Hungarian People\'s Republic', 'IS' => 'Iceland, Republic of', 'IN' => 'India, Republic of', 'ID' => 'Indonesia, Republic of', 'IR' => 'Iran, Islamic Republic of', 'IQ' => 'Iraq, Republic of', 'IE' => 'Ireland', 'IL' => 'Israel, State of', 'IT' => 'Italy, Italian Republic', 'JM' => 'Jamaica', 'JP' => 'Japan', 'JO' => 'Jordan, Hashemite Kingdom of', 'KZ' => 'Kazakhstan, Republic of', 'KE' => 'Kenya, Republic of', 'KI' => 'Kiribati, Republic of', 'KP' => 'Korea, Democratic People\'s Republic of', 'KR' => 'Korea, Republic of', 'KW' => 'Kuwait, State of', 'KG' => 'Kyrgyz Republic', 'LA' => 'Lao People\'s Democratic Republic', 'LV' => 'Latvia', 'LB' => 'Lebanon, Lebanese Republic', 'LS' => 'Lesotho, Kingdom of', 'LR' => 'Liberia, Republic of', 'LY' => 'Libyan Arab Jamahiriya', 'LI' => 'Liechtenstein, Principality of', 'LT' => 'Lithuania', 'LU' => 'Luxembourg, Grand Duchy of', 'MO' => 'Macao, Special Administrative Region of China', 'MK' => 'Macedonia, the former Yugoslav Republic of', 'MG' => 'Madagascar, Republic of', 'MW' => 'Malawi, Republic of', 'MY' => 'Malaysia', 'MV' => 'Maldives, Republic of',
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -