call('getSupportedCountries', array());
$output = "";
if(checkWsError($client)) {
// Check for errors from enrico
if(strlen($result["error"]) > 0) {
die("Error from Enrico: " . $result["error"]);
}
}
else {
die("ERROR: calling webservice failed");
}
$year = date("Y");
?>
Public holidays - List of supported countries and its regions
|
Public holidays - List of supported countries and its regions
No. |
Country Name |
Country Code |
Available from |
Available until |
Regions |
0) {
$regions = "";
for($j = 0; $j < count($result["supportedCountries"][$i]["regions"]); $j++) {
if($j == 0 && strcmp($result["supportedCountries"][$i]["countryCode"], "fra") != 0) {
$firstRegion = $result["supportedCountries"][$i]["regions"][$j];
}
$regions .= "" . $result["supportedCountries"][$i]["regions"][$j] . "";
if($j % 5 == 4) $regions .= " ";
}
}
$href = "public_holidays.php?country=" . $result["supportedCountries"][$i]["countryCode"] . "&year=" . $year;
if(strlen($firstRegion) > 0) {
$href .= "®ion=" . urlencode($firstRegion);
}
$txt = "" . $result["supportedCountries"][$i]["fullName"] . "";
print "" . ($i+1) . ". | " . $txt . " | " . $result["supportedCountries"][$i]["countryCode"] .
" | " . convertDateToString($result["supportedCountries"][$i]["fromDate"]) . " | " .
convertDateToString($result["supportedCountries"][$i]["toDate"]) . " | " . $regions . " | ";
}
?>
|