X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fcountry_functions.php;h=5f54e8211c69f648565d0a4d5c6d9667a23cb37f;hb=d7d40e177e09a7161b79bfc95a1d2e91fdff4691;hp=38026b038f6a2e31b2fbb710e1b7285ef9dba36e;hpb=e01fcf1ca8ddeb72af76465df3ef72301a1cdae7;p=mailer.git diff --git a/inc/libs/country_functions.php b/inc/libs/country_functions.php index 38026b038f..5f54e8211c 100644 --- a/inc/libs/country_functions.php +++ b/inc/libs/country_functions.php @@ -1,7 +1,7 @@ '.print_r($content, TRUE).''); // Construct human-readable description - $ret = sprintf("%s (%s)", $descr, $code); - } else { - // Not found! - $ret = COUNTRY_NOT_FOUND; - } + $ret = sprintf("%s (%s)", $content['descr'], $content['code']); + } // END - if // Free the result SQL_FREERESULT($result); @@ -66,5 +72,26 @@ function COUNTRY_GENERATE_INFO ($id) { // Return info return $ret; } -// + +// Adds a country code selection box +function addCountryCodeSelectionBox ($countryCode = NULL) { + // The admin may see all + $whereStatement = "WHERE `is_active`='Y'"; + + // Is admin? + if (isAdmin()) { + // Then display all codes + $whereStatement = ''; + } // END - if + + // Generate the HTML code + $OUT = ''; + + // Return it + return $OUT; +} + +// [EOF] ?>