diff --git a/static/php/message.php b/static/php/message.php index f104112..0a9648e 100644 --- a/static/php/message.php +++ b/static/php/message.php @@ -134,29 +134,40 @@ function constructMessage() if ( ! isset($organisation) && $lang == "DE" ) { $arrServiceTyps = [ "SOM", "PSY", "AÜP" ]; - $message .= "
";
- $message .= "Leistungen, die Sie anbieten";
- $message .= "
";
+ $strServiceTyps = "";
foreach ( $arrServiceTyps as $abbreviation )
{
if (isset( $_POST[$abbreviation]) )
{
- $message .= $_POST[$abbreviation] . "
";
+ $strServiceTyps .= $_POST[$abbreviation] . "
";
}
}
- $message .= "
";
+ $message .= "Leistungen, die Sie anbieten";
+ $message .= $strServiceTyps;
+ $message .= "
";
+ $message .= "
";
- $message .= "Kantone, in denen Sie eine Bewilligung (beantragt) haben";
- $message .= "
";
+ $strCantons = "";
foreach ( $arrAllCantons as $abbreviation )
{
if (isset( $_POST[$abbreviation]) )
{
- $message .= $_POST[$abbreviation] . "
";
+ $strCantons .= $_POST[$abbreviation] . "
";
}
}
- $message .= "
";
+ $message .= "Kantone, in denen Sie eine Bewilligung (beantragt) haben";
+ $message .= "
";
+ $message .= $strCantons;
+ $message .= "