X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fcountry_functions.php;h=7254ff1022ec98c242822250f3a7eeb7a1655f76;hp=5af9cbae10a7e787e3e1dba01d6906db1aea84c6;hb=155492a5b96cec674846973a8524238b0365a848;hpb=508228c85fba8448d00865b1639cb8cd7a69e457 diff --git a/inc/libs/country_functions.php b/inc/libs/country_functions.php index 5af9cbae10..7254ff1022 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] ?>