X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fcountry_functions.php;h=80a4c1ef856f82d70cab876c1654112fe2f8d473;hb=ab5ff5126ef56b08f5130a9e110b53c00d0a2761;hp=6da1d355a5e29a36ea0e8546fc415872d11805d8;hpb=7b0f17cd637e388049d2167811e4332cec1e979b;p=mailer.git diff --git a/inc/libs/country_functions.php b/inc/libs/country_functions.php index 6da1d355a5..80a4c1ef85 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); + sqlFreeResult($result); // 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] ?>