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: 258: 259: 260: 261: 262: 263: 264: 265: 266: 267: 268: 269: 270: 271: 272: 273: 274: 275: 276: 277: 278: 279: 280: 281: 282: 283: 284: 285: 286: 287: 288: 289: 290: 291: 292: 293: 294: 295: 296: 297: 298: 299: 300: 301: 302: 303: 304: 305: 306: 307: 308: 309: 310: 311: 312: 313: 314: 315: 316: 317: 318: 319: 320: 321: 322: 323: 324: 325: 326: 327: 328: 329: 330: 331: 332: 333: 334: 335: 336: 337: 338: 339: 340: 341: 342:
<?php
defined('ICMS_ROOT_PATH') or die("ImpressCMS root path not defined");
class icms_form_elements_select_Country extends icms_form_elements_Select {
public function __construct($caption, $name, $value = null, $size = 1) {
parent::__construct($caption, $name, $value, $size);
$this->addOptionArray(self::getCountryList());
}
static public function getCountryList() {
icms_loadLanguageFile('core', 'countries');
$country_list = array (
"" => "-",
"AD" => _COUNTRY_AD,
"AE" => _COUNTRY_AE,
"AF" => _COUNTRY_AF,
"AG" => _COUNTRY_AG,
"AI" => _COUNTRY_AI,
"AL" => _COUNTRY_AL,
"AM" => _COUNTRY_AM,
"AN" => _COUNTRY_AN,
"AO" => _COUNTRY_AO,
"AQ" => _COUNTRY_AQ,
"AR" => _COUNTRY_AR,
"AS" => _COUNTRY_AS,
"AT" => _COUNTRY_AT,
"AU" => _COUNTRY_AU,
"AW" => _COUNTRY_AW,
"AX" => _COUNTRY_AX,
"AZ" => _COUNTRY_AZ,
"BA" => _COUNTRY_BA,
"BB" => _COUNTRY_BB,
"BD" => _COUNTRY_BD,
"BE" => _COUNTRY_BE,
"BF" => _COUNTRY_BF,
"BG" => _COUNTRY_BG,
"BH" => _COUNTRY_BH,
"BI" => _COUNTRY_BI,
"BJ" => _COUNTRY_BJ,
"BL" => _COUNTRY_BL,
"BM" => _COUNTRY_BM,
"BN" => _COUNTRY_BN,
"BO" => _COUNTRY_BO,
"BQ" => _COUNTRY_BQ,
"BR" => _COUNTRY_BR,
"BS" => _COUNTRY_BS,
"BT" => _COUNTRY_BT,
"BV" => _COUNTRY_BV,
"BW" => _COUNTRY_BW,
"BY" => _COUNTRY_BY,
"BZ" => _COUNTRY_BZ,
"CA" => _COUNTRY_CA,
"CC" => _COUNTRY_CC,
"CD" => _COUNTRY_CD,
"CF" => _COUNTRY_CF,
"CG" => _COUNTRY_CG,
"CH" => _COUNTRY_CH,
"CI" => _COUNTRY_CI,
"CK" => _COUNTRY_CK,
"CL" => _COUNTRY_CL,
"CM" => _COUNTRY_CM,
"CN" => _COUNTRY_CN,
"CO" => _COUNTRY_CO,
"CR" => _COUNTRY_CR,
"CU" => _COUNTRY_CU,
"CV" => _COUNTRY_CV,
"CX" => _COUNTRY_CX,
"CY" => _COUNTRY_CY,
"CZ" => _COUNTRY_CZ,
"DE" => _COUNTRY_DE,
"DJ" => _COUNTRY_DJ,
"DK" => _COUNTRY_DK,
"DM" => _COUNTRY_DM,
"DO" => _COUNTRY_DO,
"DZ" => _COUNTRY_DZ,
"EC" => _COUNTRY_EC,
"EE" => _COUNTRY_EE,
"EG" => _COUNTRY_EG,
"EH" => _COUNTRY_EH,
"ER" => _COUNTRY_ER,
"ES" => _COUNTRY_ES,
"ET" => _COUNTRY_ET,
"FI" => _COUNTRY_FI,
"FJ" => _COUNTRY_FJ,
"FK" => _COUNTRY_FK,
"FM" => _COUNTRY_FM,
"FO" => _COUNTRY_FO,
"FR" => _COUNTRY_FR,
"GA" => _COUNTRY_GA,
"GB" => _COUNTRY_GB,
"GD" => _COUNTRY_GD,
"GE" => _COUNTRY_GE,
"GF" => _COUNTRY_GF,
"GG" => _COUNTRY_GG,
"GH" => _COUNTRY_GH,
"GI" => _COUNTRY_GI,
"GL" => _COUNTRY_GL,
"GM" => _COUNTRY_GM,
"GN" => _COUNTRY_GN,
"GP" => _COUNTRY_GP,
"GQ" => _COUNTRY_GQ,
"GR" => _COUNTRY_GR,
"GS" => _COUNTRY_GS,
"GT" => _COUNTRY_GT,
"GU" => _COUNTRY_GU,
"GW" => _COUNTRY_GW,
"GY" => _COUNTRY_GY,
"HK" => _COUNTRY_HK,
"HM" => _COUNTRY_HM,
"HN" => _COUNTRY_HN,
"HR" => _COUNTRY_HR,
"HT" => _COUNTRY_HT,
"HU" => _COUNTRY_HU,
"ID" => _COUNTRY_ID,
"IE" => _COUNTRY_IE,
"IL" => _COUNTRY_IL,
"IM" => _COUNTRY_IM,
"IN" => _COUNTRY_IN,
"IO" => _COUNTRY_IO,
"IQ" => _COUNTRY_IQ,
"IR" => _COUNTRY_IR,
"IS" => _COUNTRY_IS,
"IT" => _COUNTRY_IT,
"JE" => _COUNTRY_JE,
"JM" => _COUNTRY_JM,
"JO" => _COUNTRY_JO,
"JP" => _COUNTRY_JP,
"KE" => _COUNTRY_KE,
"KG" => _COUNTRY_KG,
"KH" => _COUNTRY_KH,
"KI" => _COUNTRY_KI,
"KM" => _COUNTRY_KM,
"KN" => _COUNTRY_KN,
"KP" => _COUNTRY_KP,
"KR" => _COUNTRY_KR,
"KW" => _COUNTRY_KW,
"KY" => _COUNTRY_KY,
"KZ" => _COUNTRY_KZ,
"LA" => _COUNTRY_LA,
"LB" => _COUNTRY_LB,
"LC" => _COUNTRY_LC,
"LI" => _COUNTRY_LI,
"LK" => _COUNTRY_LK,
"LR" => _COUNTRY_LR,
"LS" => _COUNTRY_LS,
"LT" => _COUNTRY_LT,
"LU" => _COUNTRY_LU,
"LV" => _COUNTRY_LV,
"LY" => _COUNTRY_LY,
"MA" => _COUNTRY_MA,
"MC" => _COUNTRY_MC,
"MD" => _COUNTRY_MD,
"ME" => _COUNTRY_ME,
"MF" => _COUNTRY_MF,
"MG" => _COUNTRY_MG,
"MH" => _COUNTRY_MH,
"MK" => _COUNTRY_MK,
"ML" => _COUNTRY_ML,
"MM" => _COUNTRY_MM,
"MN" => _COUNTRY_MN,
"MO" => _COUNTRY_MO,
"MP" => _COUNTRY_MP,
"MQ" => _COUNTRY_MQ,
"MR" => _COUNTRY_MR,
"MS" => _COUNTRY_MS,
"MT" => _COUNTRY_MT,
"MU" => _COUNTRY_MU,
"MV" => _COUNTRY_MV,
"MW" => _COUNTRY_MW,
"MX" => _COUNTRY_MX,
"MY" => _COUNTRY_MY,
"MZ" => _COUNTRY_MZ,
"NA" => _COUNTRY_NA,
"NC" => _COUNTRY_NC,
"NE" => _COUNTRY_NE,
"NF" => _COUNTRY_NF,
"NG" => _COUNTRY_NG,
"NI" => _COUNTRY_NI,
"NL" => _COUNTRY_NL,
"NO" => _COUNTRY_NO,
"NP" => _COUNTRY_NP,
"NR" => _COUNTRY_NR,
"NU" => _COUNTRY_NU,
"NZ" => _COUNTRY_NZ,
"OM" => _COUNTRY_OM,
"PA" => _COUNTRY_PA,
"PE" => _COUNTRY_PE,
"PF" => _COUNTRY_PF,
"PG" => _COUNTRY_PG,
"PH" => _COUNTRY_PH,
"PK" => _COUNTRY_PK,
"PL" => _COUNTRY_PL,
"PM" => _COUNTRY_PM,
"PN" => _COUNTRY_PN,
"PR" => _COUNTRY_PR,
"PS" => _COUNTRY_PS,
"PT" => _COUNTRY_PT,
"PW" => _COUNTRY_PW,
"PY" => _COUNTRY_PY,
"QA" => _COUNTRY_QA,
"RE" => _COUNTRY_RE,
"RO" => _COUNTRY_RO,
"RS" => _COUNTRY_RS,
"RU" => _COUNTRY_RU,
"RW" => _COUNTRY_RW,
"SA" => _COUNTRY_SA,
"SB" => _COUNTRY_SB,
"SC" => _COUNTRY_SC,
"SD" => _COUNTRY_SD,
"SE" => _COUNTRY_SE,
"SG" => _COUNTRY_SG,
"SH" => _COUNTRY_SH,
"SI" => _COUNTRY_SI,
"SJ" => _COUNTRY_SJ,
"SK" => _COUNTRY_SK,
"SL" => _COUNTRY_SL,
"SM" => _COUNTRY_SM,
"SN" => _COUNTRY_SN,
"SO" => _COUNTRY_SO,
"SR" => _COUNTRY_SR,
"SS" => _COUNTRY_SS,
"ST" => _COUNTRY_ST,
"SV" => _COUNTRY_SV,
"SX" => _COUNTRY_SX,
"SY" => _COUNTRY_SY,
"SZ" => _COUNTRY_SZ,
"TC" => _COUNTRY_TC,
"TD" => _COUNTRY_TD,
"TF" => _COUNTRY_TF,
"TG" => _COUNTRY_TG,
"TH" => _COUNTRY_TH,
"TJ" => _COUNTRY_TJ,
"TK" => _COUNTRY_TK,
"TL" => _COUNTRY_TL,
"TM" => _COUNTRY_TM,
"TN" => _COUNTRY_TN,
"TO" => _COUNTRY_TO,
"TR" => _COUNTRY_TR,
"TT" => _COUNTRY_TT,
"TV" => _COUNTRY_TV,
"TW" => _COUNTRY_TW,
"TZ" => _COUNTRY_TZ,
"UA" => _COUNTRY_UA,
"UG" => _COUNTRY_UG,
"UK" => _COUNTRY_UK,
"UM" => _COUNTRY_UM,
"US" => _COUNTRY_US,
"UY" => _COUNTRY_UY,
"UZ" => _COUNTRY_UZ,
"VA" => _COUNTRY_VA,
"VC" => _COUNTRY_VC,
"VE" => _COUNTRY_VE,
"VG" => _COUNTRY_VG,
"VI" => _COUNTRY_VI,
"VN" => _COUNTRY_VN,
"VU" => _COUNTRY_VU,
"WF" => _COUNTRY_WF,
"WS" => _COUNTRY_WS,
"YE" => _COUNTRY_YE,
"YT" => _COUNTRY_YT,
"ZA" => _COUNTRY_ZA,
"ZM" => _COUNTRY_ZM,
"ZW" => _COUNTRY_ZW
);
asort($country_list);
reset($country_list);
return $country_list;
}
}