Merge branch 'dev'
All checks were successful
Build and Deploy Hugo Site / buildAndDeploy (push) Successful in 1m4s

This commit is contained in:
betty 2026-01-29 16:31:05 +01:00
commit 67f58e195f

View file

@ -134,30 +134,41 @@ function constructMessage()
if ( ! isset($organisation) && $lang == "DE" ) if ( ! isset($organisation) && $lang == "DE" )
{ {
$arrServiceTyps = [ "SOM", "PSY", "AÜP" ]; $arrServiceTyps = [ "SOM", "PSY", "AÜP" ];
$message .= "<hr/><p><b>"; $strServiceTyps = "";
$message .= "Leistungen, die Sie anbieten";
$message .= "</b><br/>";
foreach ( $arrServiceTyps as $abbreviation ) foreach ( $arrServiceTyps as $abbreviation )
{ {
if (isset( $_POST[$abbreviation]) ) if (isset( $_POST[$abbreviation]) )
{ {
$message .= $_POST[$abbreviation] . "<br/>"; $strServiceTyps .= $_POST[$abbreviation] . "<br/>";
} }
} }
$message .= "</p>"; if ( $strServiceTyps != "" )
$arrAllCantons = [ "AG", "AI", "AR", "BE", "BL", "BS", "FR", "GE", "GL", "GR", "JU", "LU", "NE", "NW", "OW", "SG", "SH", "SO", "SZ", "TG", "UR", "VD", "VS", "ZG", "ZH" ]; {
$message .= "<hr/><p><b>"; $message .= "<hr/><p><b>";
$message .= "Kantone, in denen Sie eine Bewilligung (beantragt) haben"; $message .= "Leistungen, die Sie anbieten";
$message .= $strServiceTyps;
$message .= "</b><br/>"; $message .= "</b><br/>";
$message .= "</p>";
}
$arrAllCantons = [ "AG", "AI", "AR", "BE", "BL", "BS", "FR", "GE", "GL", "GR", "JU", "LU", "NE", "NW", "OW", "SG", "SH", "SO", "SZ", "TG", "UR", "VD", "VS", "ZG", "ZH" ];
$strCantons = "";
foreach ( $arrAllCantons as $abbreviation ) foreach ( $arrAllCantons as $abbreviation )
{ {
if (isset( $_POST[$abbreviation]) ) if (isset( $_POST[$abbreviation]) )
{ {
$message .= $_POST[$abbreviation] . "<br/>"; $strCantons .= $_POST[$abbreviation] . "<br/>";
} }
} }
if ( $strCantons != "" )
{
$message .= "<hr/><p><b>";
$message .= "Kantone, in denen Sie eine Bewilligung (beantragt) haben";
$message .= "</b><br/>";
$message .= $strCantons;
$message .= "</p>"; $message .= "</p>";
} }
}
$modulpop2 = filter_input(INPUT_POST, 'modulpop2'); $modulpop2 = filter_input(INPUT_POST, 'modulpop2');
if (isset($modulpop2)) if (isset($modulpop2))