geography.php
上传用户:gzy2002
上传日期:2010-02-11
资源大小:1785k
文件大小:8k
源码类别:

电子政务应用

开发平台:

Java

  1. <?php
  2. // +-------------------------------------------------------------+
  3. // | DeskPRO v [2.0.1 Production]
  4. // | Copyright (C) 2001 - 2004 Headstart Solutions Limited
  5. // | Supplied by WTN-WDYL
  6. // | Nullified by WTN-WDYL
  7. // | Distribution via WebForum, ForumRU and associated file dumps
  8. // +-------------------------------------------------------------+
  9. // | DESKPRO IS NOT FREE SOFTWARE
  10. // +-------------------------------------------------------------+
  11. // | License ID : Full Enterprise License =) ...
  12. // | License Owner : WTN-WDYL Team
  13. // +-------------------------------------------------------------+
  14. // | $RCSfile: geography.php,v $
  15. // | $Date: 2004/02/10 01:34:25 $
  16. // | $Revision: 1.6 $
  17. // +-------------------------------------------------------------+
  18. // | File Details:
  19. // | - Country list data.
  20. // +-------------------------------------------------------------+
  21. error_reporting(E_ALL ^ E_NOTICE);
  22. $_countries = array(
  23. 'us' => 'United States of America',
  24. 'af' => 'Afghanistan',
  25. 'al' => 'Albania',
  26. 'dz' => 'Algeria',
  27. 'as' => 'American Samoa',
  28. 'ad' => 'Andorra',
  29. 'ao' => 'Angola',
  30. 'ai' => 'Anguilla',
  31. 'aq' => 'Antarctica',
  32. 'ag' => 'Antigua & Barbuda',
  33. 'ar' => 'Argentina',
  34. 'am' => 'Armenia',
  35. 'aw' => 'Aruba',
  36. 'au' => 'Australia',
  37. 'at' => 'Austria',
  38. 'az' => 'Azerbaijan',
  39. 'bs' => 'Bahamas',
  40. 'bh' => 'Bahrain',
  41. 'bd' => 'Bangladesh',
  42. 'bb' => 'Barbados',
  43. 'by' => 'Belarus',
  44. 'be' => 'Belgium',
  45. 'bz' => 'Belize',
  46. 'bj' => 'Benin',
  47. 'bm' => 'Bermuda',
  48. 'bt' => 'Bhutan',
  49. 'bo' => 'Bolivia',
  50. 'ba' => 'Bosnia & Herzegovina',
  51. 'bw' => 'Botswana',
  52. 'bv' => 'Bouvet Island',
  53. 'br' => 'Brazil',
  54. 'io' => 'British Indian Ocean Territory',
  55. 'vg' => 'British Virgin Islands',
  56. 'bn' => 'Brunei',
  57. 'bg' => 'Bulgaria',
  58. 'bf' => 'Burkina Faso',
  59. 'bi' => 'Burundi',
  60. 'kh' => 'Cambodia',
  61. 'cm' => 'Cameroon',
  62. 'ca' => 'Canada',
  63. 'cv' => 'Cape Verde',
  64. 'ky' => 'Cayman Islands',
  65. 'cf' => 'Central African Republic',
  66. 'td' => 'Chad',
  67. 'cl' => 'Chile',
  68. 'cn' => 'China',
  69. 'cx' => 'Christmas Island',
  70. 'cc' => 'Cocos Islands',
  71. 'co' => 'Colombia',
  72. 'km' => 'Comoros',
  73. 'cg' => 'Congo',
  74. 'ck' => 'Cook Islands',
  75. 'cr' => 'Costa Rica',
  76. 'hr' => 'Croatia',
  77. 'cu' => 'Cuba',
  78. 'cy' => 'Cyprus',
  79. 'cz' => 'Czech Republic',
  80. 'dk' => 'Denmark',
  81. 'dj' => 'Djibouti',
  82. 'dm' => 'Dominica',
  83. 'do' => 'Dominican Republic',
  84. 'tp' => 'East Timor',
  85. 'ec' => 'Ecuador',
  86. 'eg' => 'Egypt',
  87. 'sv' => 'El Salvador',
  88. 'gq' => 'Equatorial Guinea',
  89. 'er' => 'Eritrea',
  90. 'ee' => 'Estonia',
  91. 'et' => 'Ethiopia',
  92. 'fk' => 'Falkland Islands',
  93. 'fo' => 'Faroe Islands',
  94. 'fj' => 'Fiji',
  95. 'fi' => 'Finland',
  96. 'fr' => 'France',
  97. 'gf' => 'French Guiana',
  98. 'pf' => 'French Polynesia',
  99. 'tf' => 'French Southern Territories',
  100. 'ga' => 'Gabon',
  101. 'gm' => 'Gambia',
  102. 'ge' => 'Georgia',
  103. 'de' => 'Germany',
  104. 'gh' => 'Ghana',
  105. 'gi' => 'Gibraltar',
  106. 'gr' => 'Greece',
  107. 'gl' => 'Greenland',
  108. 'gd' => 'Grenada',
  109. 'gp' => 'Guadeloupe',
  110. 'gu' => 'Guam',
  111. 'gt' => 'Guatemala',
  112. 'gn' => 'Guinea',
  113. 'gw' => 'Guinea-Bissau',
  114. 'gy' => 'Guyana',
  115. 'ht' => 'Haiti',
  116. 'hm' => 'Heard & McDonald Islands',
  117. 'hn' => 'Honduras',
  118. 'hk' => 'Hong Kong',
  119. 'hu' => 'Hungary',
  120. 'is' => 'Iceland',
  121. 'in' => 'India',
  122. 'id' => 'Indonesia',
  123. 'ir' => 'Iran',
  124. 'iq' => 'Iraq',
  125. 'ie' => 'Ireland',
  126. 'il' => 'Israel',
  127. 'it' => 'Italy',
  128. 'ci' => 'Ivory Coast',
  129. 'jm' => 'Jamaica',
  130. 'jp' => 'Japan',
  131. 'jo' => 'Jordan',
  132. 'kz' => 'Kazakhstan',
  133. 'ke' => 'Kenya',
  134. 'ki' => 'Kiribati',
  135. 'kp' => 'Korea, North',
  136. 'kr' => 'Korea, South',
  137. 'kw' => 'Kuwait',
  138. 'kg' => 'Kyrgyzstan',
  139. 'la' => 'Laos',
  140. 'lv' => 'Latvia',
  141. 'lb' => 'Lebanon',
  142. 'ls' => 'Lesotho',
  143. 'lr' => 'Liberia',
  144. 'ly' => 'Libya',
  145. 'li' => 'Liechtenstein',
  146. 'lt' => 'Lithuania',
  147. 'lu' => 'Luxembourg',
  148. 'mo' => 'Macau',
  149. 'mk' => 'Macedonia',
  150. 'mg' => 'Madagascar',
  151. 'mw' => 'Malawi',
  152. 'my' => 'Malaysia',
  153. 'mv' => 'Maldives',
  154. 'ml' => 'Mali',
  155. 'mt' => 'Malta',
  156. 'mh' => 'Marshall Islands',
  157. 'mq' => 'Martinique',
  158. 'mr' => 'Mauritania',
  159. 'mu' => 'Mauritius',
  160. 'yt' => 'Mayotte',
  161. 'mx' => 'Mexico',
  162. 'fm' => 'Micronesia',
  163. 'md' => 'Moldova',
  164. 'mc' => 'Monaco',
  165. 'mn' => 'Mongolia',
  166. 'ms' => 'Montserrat',
  167. 'ma' => 'Morocco',
  168. 'mz' => 'Mozambique',
  169. 'mm' => 'Myanmar',
  170. 'na' => 'Namibia',
  171. 'nr' => 'Nauru',
  172. 'np' => 'Nepal',
  173. 'nl' => 'Netherlands',
  174. 'an' => 'Netherlands Antilles',
  175. 'nc' => 'New Caledonia',
  176. 'nz' => 'New Zealand',
  177. 'ni' => 'Nicaragua',
  178. 'ne' => 'Niger',
  179. 'ng' => 'Nigeria',
  180. 'nu' => 'Niue',
  181. 'nf' => 'Norfolk Island',
  182. 'mp' => 'Northern Mariana Islands',
  183. 'no' => 'Norway',
  184. 'om' => 'Oman',
  185. 'pk' => 'Pakistan',
  186. 'pw' => 'Palau',
  187. 'pa' => 'Panama',
  188. 'pg' => 'Papua New Guinea',
  189. 'py' => 'Paraguay',
  190. 'pe' => 'Peru',
  191. 'ph' => 'Philippines',
  192. 'pn' => 'Pitcairn Island',
  193. 'pl' => 'Poland',
  194. 'pt' => 'Portugal',
  195. 'pr' => 'Puerto Rico',
  196. 'qa' => 'Qatar',
  197. 're' => 'Reunion',
  198. 'ro' => 'Romania',
  199. 'ru' => 'Russia',
  200. 'rw' => 'Rwanda',
  201. 'gs' => 'S. Georgia & S. Sandwich Isls.',
  202. 'kn' => 'Saint Kitts & Nevis',
  203. 'lc' => 'Saint Lucia',
  204. 'vc' => 'Saint Vincent & The Grenadines',
  205. 'ws' => 'Samoa',
  206. 'sm' => 'San Marino',
  207. 'st' => 'Sao Tome & Principe',
  208. 'sa' => 'Saudi Arabia',
  209. 'sn' => 'Senegal',
  210. 'sc' => 'Seychelles',
  211. 'sl' => 'Sierra Leone',
  212. 'sg' => 'Singapore',
  213. 'sk' => 'Slovakia',
  214. 'si' => 'Slovenia',
  215. 'so' => 'Somalia',
  216. 'za' => 'South Africa',
  217. 'es' => 'Spain',
  218. 'lk' => 'Sri Lanka',
  219. 'sh' => 'St. Helena',
  220. 'pm' => 'St. Pierre & Miquelon',
  221. 'sd' => 'Sudan',
  222. 'sr' => 'Suriname',
  223. 'sj' => 'Svalbard & Jan Mayen Islands',
  224. 'sz' => 'Swaziland',
  225. 'se' => 'Sweden',
  226. 'ch' => 'Switzerland',
  227. 'sy' => 'Syria',
  228. 'tw' => 'Taiwan',
  229. 'tj' => 'Tajikistan',
  230. 'tz' => 'Tanzania',
  231. 'th' => 'Thailand',
  232. 'tg' => 'Togo',
  233. 'tk' => 'Tokelau',
  234. 'to' => 'Tonga',
  235. 'tt' => 'Trinidad & Tobago',
  236. 'tn' => 'Tunisia',
  237. 'tr' => 'Turkey',
  238. 'tm' => 'Turkmenistan',
  239. 'tc' => 'Turks & Caicos Islands',
  240. 'tv' => 'Tuvalu',
  241. 'um' => 'U.S. Minor Outlying Islands',
  242. 'ug' => 'Uganda',
  243. 'ua' => 'Ukraine',
  244. 'ae' => 'United Arab Emirates',
  245. 'uk' => 'United Kingdom',
  246. 'uy' => 'Uruguay',
  247. 'uz' => 'Uzbekistan',
  248. 'vu' => 'Vanuatu',
  249. 'va' => 'Vatican City',
  250. 've' => 'Venezuela',
  251. 'vn' => 'Vietnam',
  252. 'vi' => 'Virgin Islands',
  253. 'wf' => 'Wallis & Futuna Islands',
  254. 'eh' => 'Western Sahara',
  255. 'ye' => 'Yemen',
  256. 'yu' => 'Yugoslavia (Former)',
  257. 'zr' => 'Zaire',
  258. 'zm' => 'Zambia',
  259. 'zw' => 'Zimbabwe',
  260. 'ot' => '(Other)',
  261. );
  262. $_states = array(
  263. 'ot' => '(Outside US)',
  264. 'al' => 'Alabama',
  265. 'ak' => 'Alaska',
  266. 'az' => 'Arizona',
  267. 'ar' => 'Arkansas',
  268. 'ca' => 'California',
  269. 'co' => 'Colorado',
  270. 'ct' => 'Connecticut',
  271. 'de' => 'Delaware',
  272. 'dc' => 'District of Columbia',
  273. 'fl' => 'Florida',
  274. 'ga' => 'Georgia',
  275. 'hi' => 'Hawaii',
  276. 'id' => 'Idaho',
  277. 'il' => 'Illinois',
  278. 'in' => 'Indiana',
  279. 'ia' => 'Iowa',
  280. 'ks' => 'Kansas',
  281. 'ky' => 'Kentucky',
  282. 'la' => 'Louisiana',
  283. 'me' => 'Maine',
  284. 'md' => 'Maryland',
  285. 'ma' => 'Massachusetts',
  286. 'mi' => 'Michigan',
  287. 'mn' => 'Minnesota',
  288. 'ms' => 'Mississippi',
  289. 'mo' => 'Missouri',
  290. 'mt' => 'Montana',
  291. 'nb' => 'Nebraska',
  292. 'nv' => 'Nevada',
  293. 'nh' => 'New Hampshire',
  294. 'nj' => 'New Jersey',
  295. 'nm' => 'New Mexico',
  296. 'ny' => 'New York',
  297. 'nc' => 'North Carolina',
  298. 'nd' => 'North Dakota',
  299. 'oh' => 'Ohio',
  300. 'ok' => 'Oklahoma',
  301. 'or' => 'Oregon',
  302. 'pa' => 'Pennsylvania',
  303. 'ri' => 'Rhode Island',
  304. 'sc' => 'South Carolina',
  305. 'sd' => 'South Dakota',
  306. 'tn' => 'Tennessee',
  307. 'tx' => 'Texas',
  308. 'ut' => 'Utah',
  309. 'vt' => 'Vermont',
  310. 'va' => 'Virginia',
  311. 'wa' => 'Washington',
  312. 'wv' => 'West Virginia',
  313. 'wi' => 'Wisconsin',
  314. 'wy' => 'Wyoming',
  315. );