aboutsummaryrefslogtreecommitdiffstats
path: root/wip/countrylist.php
blob: a285344ec6ec7c44adaf5c0ff063364e0d035baa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
class CountryListHelper extends FormHelper
{
    
    var $helpers = array('Form');
    
    function select($fieldname, $label, $default="  ", $attributes)
    {
        $list = '<div class="input">';
        $list .= $this->Form->label($fieldname, $label);
        $list .= $this->Form->select($fieldname , array(
            '  ' =>    __('Please select a country', true),
            '--' => __('None', true),
            'AF' =>    __('Afganistan', true),
            'AL' =>    __('Albania', true),
            'DZ' =>    __('Algeria', true),
            'AS' => __('American Samoa', true),
            'AD' => __('Andorra', true), 
            'AO' => __('Angola', true),
            'AI' => __('Anguilla', true),
            'AQ' => __('Antarctica', true),
            'AG' => __('Antigua and Barbuda', true), 
            'AR' => __('Argentina', true), 
            'AM' => __('Armenia', true), 
            'AW' => __('Aruba', true), 
            'AU' => __('Australia', true), 
            'AT' => __('Austria', true), 
            'AZ' => __('Azerbaijan', true),
            'BS' => __('Bahamas', true), 
            'BH' => __('Bahrain', true), 
            'BD' => __('Bangladesh', true),
            'BB' => __('Barbados', true),
            'BY' => __('Belarus', true), 
            'BE' => __('Belgium', true), 
            'BZ' => __('Belize', true),
            'BJ' => __('Benin', true), 
            'BM' => __('Bermuda', true), 
            'BT' => __('Bhutan', true),
            'BO' => __('Bolivia', true), 
            'BA' => __('Bosnia and Herzegowina', true),
            'BW' => __('Botswana', true),
            'BV' => __('Bouvet Island', true), 
            'BR' => __('Brazil', true),
            'IO' => __('British Indian Ocean Territory', true),
            'BN' => __('Brunei Darussalam', true), 
            'BG' => __('Bulgaria', true),
            'BF' => __('Burkina Faso', true),
            'BI' => __('Burundi', true), 
            'KH' => __('Cambodia', true),
            'CM' => __('Cameroon', true),
            'CA' => __('Canada', true),
            'CV' => __('Cape Verde', true),
            'KY' => __('Cayman Islands', true),
            'CF' => __('Central African Republic', true),
            'TD' => __('Chad', true),
            'CL' => __('Chile', true), 
            'CN' => __('China', true),
            'CX' => __('Christmas Island', true),    
            'CC' => __('Cocos (Keeling) Islands', true), 
            'CO' => __('Colombia', true),
            'KM' => __('Comoros', true), 
            'CG' => __('Congo', true), 
            'CD' => __('Congo, the Democratic Republic of the', true), 
            'CK' => __('Cook Islands', true),
            'CR' => __('Costa Rica', true),
            'CI' => __('Cote d\'Ivoire', true), 
            'HR' => __('Croatia (Hrvatska)', true),
            'CU' => __('Cuba', true),
            'CY' => __('Cyprus', true),
            'CZ' => __('Czech Republic', true),
            'DK' => __('Denmark', true), 
            'DJ' => __('Djibouti', true),
            'DM' => __('Dominica', true),
            'DO' => __('Dominican Republic', true),
            'TP' => __('East Timor', true),
            'EC' => __('Ecuador', true), 
            'EG' => __('Egypt', true), 
            'SV' => __('El Salvador', true), 
            'GQ' => __('Equatorial Guinea', true), 
            'ER' => __('Eritrea', true), 
            'EE' => __('Estonia', true), 
            'ET' => __('Ethiopia', true),
            'FK' => __('Falkland Islands (Malvinas)', true), 
            'FO' => __('Faroe Islands', true), 
            'FJ' => __('Fiji', true),
            'FI' => __('Finland', true),
            'FR' => __('France', true),
            'FX' => __('France, Metropolitan', true),
            'GF' => __('French Guiana', true), 
            'PF' => __('French Polynesia', true),
            'TF' => __('French Southern Territories', true), 
            'GA' => __('Gabon', true), 
            'GM' => __('Gambia', true),
            'GE' => __('Georgia', true), 
            'DE' => __('Germany', true), 
            'GH' => __('Ghana', true), 
            'GI' => __('Gibraltar', true), 
            'GR' => __('Greece', true),
            'GL' => __('Greenland', true), 
            'GD' => __('Grenada', true), 
            'GP' => __('Guadeloupe', true),
            'GU' => __('Guam', true),
            'GT' => __('Guatemala', true), 
            'GN' => __('Guinea', true),
            'GW' => __('Guinea-Bissau', true), 
            'GY' => __('Guyana', true),
            'HT' => __('Haiti', true), 
            'HM' => __('Heard and Mc Donald Islands', true), 
            'VA' => __('Holy See (Vatican City State)', true), 
            'HN' => __('Honduras', true),
            'HK' => __('Hong Kong', true), 
            'HU' => __('Hungary', true), 
            'IS' => __('Iceland', true), 
            'IN' => __('India', true), 
            'ID' => __('Indonesia', true), 
            'IR' => __('Iran (Islamic Republic of)', true),
            'IQ' => __('Iraq', true),
            'IE' => __('Ireland', true), 
            'IL' => __('Israel', true),
            'IT' => __('Italy', true), 
            'JM' => __('Jamaica', true), 
            'JP' => __('Japan', true),
            'JO' => __('Jordan', true),
            'KZ' => __('Kazakhstan', true),
            'KE' => __('Kenya', true), 
            'KI' => __('Kiribati', true),
            'KP' => __('Korea, Democratic People\'s Republic of', true),
            'KR' => __('Korea, Republic of', true),
            'KW' => __('Kuwait', true),
            'KG' => __('Kyrgyzstan', true),
            'LA' => __('Lao People\'s Democratic Republic', true),
            'LV' => __('Latvia', true),
            'LB' => __('Lebanon', true),
            'LS' => __('Lesotho', true), 
            'LR' => __('Liberia', true), 
            'LY' => __('Libyan Arab Jamahiriya', true),
            'LI' => __('Liechtenstein', true), 
            'LT' => __('Lithuania', true),
            'LU' => __('Luxembourg', true),
            'MO' => __('Macau', true), 
            'MK' => __('Macedonia, The Former Yugoslav Republic of', true),
            'MG' => __('Madagascar', true),
            'MW' => __('Malawi', true),
            'MY' => __('Malaysia', true),
            'MV' => __('Maldives', true),
            'ML' => __('Mali', true),
            'MT' => __('Malta', true),
            'MH' => __('Marshall Islands', true),
            'MQ' => __('Martinique', true),
            'MR' => __('Mauritania', true),
            'MU' => __('Mauritius', true),
            'YT' => __('Mayotte', true), 
            'MX' => __('Mexico', true),
            'FM' => __('Micronesia, Federated States of', true),
            'MD' => __('Moldova, Republic of', true),
            'MC' => __('Monaco', true),
            'MN' => __('Mongolia', true),
            'MS' => __('Montserrat', true),
            'MA' => __('Morocco', true),
            'MZ' => __('Mozambique', true),
            'MM' => __('Myanmar', true),
            'NA' => __('Namibia', true),
            'NR' => __('Nauru', true), 
            'NP' => __('Nepal', true), 
            'NL' => __('Netherlands', true),
            'AN' => __('Netherlands Antilles', true),
            'NC' => __('New Caledonia', true),
            'NZ' => __('New Zealand', true), 
            'NI' => __('Nicaragua', true), 
            'NE' => __('Niger', true), 
            'NG' => __('Nigeria', true), 
            'NU' => __('Niue', true),
            'NF' => __('Norfolk Island', true),
            'MP' => __('Northern Mariana Islands', true),
            'NO' => __('Norway', true),
            'OM' => __('Oman', true),
            'PK' => __('Pakistan', true),
            'PW' => __('Palau', true),
            'PA' => __('Panama', true),
            'PG' => __('Papua New Guinea', true),
            'PY' => __('Paraguay', true),
            'PE' => __('Peru', true),
            'PH' => __('Philippines', true),
            'PN' => __('Pitcairn', true),
            'PL' => __('Poland', true),
            'PT' => __('Portugal', true),
            'PR' => __('Puerto Rico', true),
            'QA' => __('Qatar', true),
            'RE' => __('Reunion', true),
            'RO' => __('Romania', true),
            'RU' => __('Russian Federation', true),
            'RW' => __('Rwanda', true),
            'KN' => __('Saint Kitts and Nevis', true), 
            'LC' => __('Saint LUCIA', true), 
            'VC' => __('Saint Vincent and the Grenadines', true),
            'WS' => __('Samoa', true), 
            'SM' => __('San Marino', true),
            'ST' => __('Sao Tome and Principe', true),
            'SA' => __('Saudi Arabia', true),
            'SN' => __('Senegal', true),
            'SC' => __('Seychelles', true),
            'SL' => __('Sierra Leone', true),
            'SG' => __('Singapore', true), 
            'SK' => __('Slovakia (Slovak Republic)', true),
            'SI' => __('Slovenia', true),
            'SB' => __('Solomon Islands', true),
            'SO' => __('Somalia', true), 
            'ZA' => __('South Africa', true),
            'GS' => __('South Georgia and the South Sandwich Islands', true),
            'ES' => __('Spain', true),
            'LK' => __('Sri Lanka', true),
            'SH' => __('St. Helena', true),
            'PM' => __('St. Pierre and Miquelon', true), 
            'SD' => __('Sudan', true), 
            'SR' => __('Suriname', true),
            'SJ' => __('Svalbard and Jan Mayen Islands', true),
            'SZ' => __('Swaziland', true), 
            'SE' => __('Sweden', true),
            'CH' => __('Switzerland', true), 
            'SY' => __('Syrian Arab Republic', true),
            'TW' => __('Taiwan, Province of China', true),
            'TJ' => __('Tajikistan', true),
            'TZ' => __('Tanzania, United Republic of', true),
            'TH' => __('Thailand', true),
            'TG' => __('Togo', true),
            'TK' => __('Tokelau', true),
            'TO' => __('Tonga', true), 
            'TT' => __('Trinidad and Tobago', true), 
            'TN' => __('Tunisia', true), 
            'TR' => __('Turkey', true),
            'TM' => __('Turkmenistan', true),
            'TC' => __('Turks and Caicos Islands', true),
            'TV' => __('Tuvalu', true),
            'UG' => __('Uganda', true),
            'UA' => __('Ukraine', true),
            'AE' => __('United Arab Emirates', true),
            'GB' => __('United Kingdom', true),
            'US' => __('United States', true),
            'UM' => __('United States Minor Outlying Islands', true),
            'UY' => __('Uruguay', true), 
            'UZ' => __('Uzbekistan', true),
            'VU' => __('Vanuatu', true), 
            'VE' => __('Venezuela', true),
            'VN' => __('Viet Nam', true),
            'VG' => __('Virgin Islands (British)', true),
            'VI' => __('Virgin Islands (U.S.)', true), 
            'WF' => __('Wallis and Futuna Islands', true), 
            'EH' => __('Western Sahara', true),
            'YE' => __('Yemen', true), 
            'YU' => __('Yugoslavia', true),
            'ZM' => __('Zambia', true),
            'ZW' => __('Zimbabwe', true)            
            ), $default, $attributes);
        $list .= '</div>';
        return $this->output($list);
    }

}