function get_german_country_options() { $options = ""; foreach (get_countries_german() as $key => $val) { $options .= '<option value="' . $key . '">' . $val . '</option>'; } return $options; }
function getSpecialTags($row) { $cols = array(); $ger = get_countries_german(); $en = get_countries_english(); if ($row["origin"] != "") { $tag_column = array(); $tag_column["tagGroupingUid"] = "Country of origin"; $tag_column["tagGroupingName de_DE"] = "Herkunftsland"; $tag_column["tagGroupingTagNumericalRequired"] = "No"; $tag_column["tagUid"] = "Country of origin : " . $en[$row["origin"]]; $tag_column["tagName de_DE"] = $ger[$row["origin"]]; $tag_column["tagType"] = "ArticleDescribing"; array_push($cols, $tag_column); } if ($row["store"] != "") { $tag_column = array(); $label_de = "Normal"; $label_en = "Normal"; switch ($row["store"]) { case "cooled": $label_de = "Kühl"; $label_en = "Cooled"; break; case "frozen": $label_de = "Tiefgekühlt"; $label_en = "Deep frozen"; break; case "not_cooled": $label_de = "Zimmertemperatur"; $label_en = "Room temperature"; break; } $tag_column["tagGroupingUid"] = "Storage"; $tag_column["tagGroupingName de_DE"] = "Lagerung"; $tag_column["tagGroupingTagNumericalRequired"] = "No"; $tag_column["tagUid"] = "Storage : " . $label_en; $tag_column["tagName de_DE"] = $label_de; $tag_column["tagType"] = "ArticleDescribing"; array_push($cols, $tag_column); } if ($row["container"] != "") { $tag_column = array(); $tag_column["tagGroupingUid"] = "Packaging"; $tag_column["tagGroupingName de_DE"] = "Verpackung"; $tag_column["tagGroupingTagNumericalRequired"] = "No"; $tag_column["tagUid"] = "Packaging : " . _replToAscii($row["container"]); $tag_column["tagName de_DE"] = $row["container"]; $tag_column["tagType"] = "ArticleDescribing"; array_push($cols, $tag_column); } return $cols; }