X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fcountry_functions.php;h=2dfd60e3b0fbb08113cd346e5080970a9b70c22c;hb=77669502ccc2779d32a842f6d523fb68169fadda;hp=c5d341e8487ee1d776fcdfc16ff8aac1672fd9b3;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e;p=mailer.git diff --git a/inc/libs/country_functions.php b/inc/libs/country_functions.php index c5d341e848..2dfd60e3b0 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)", $content['descr'], $content['code']); @@ -66,5 +73,25 @@ function generateCountryInfo ($id) { 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] ?>