add service types to form and message
All checks were successful
Build and Deploy Hugo Site / buildAndDeploy (push) Successful in 1m2s

This commit is contained in:
betty 2026-01-12 13:35:49 +01:00
commit 590f920eb0
2 changed files with 24 additions and 4 deletions

View file

@ -131,21 +131,32 @@ function constructMessage()
}
// form inputs cantons - only FPP
$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" ];
if ( ! isset($organisation) && $lang == "DE" )
{
$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 .= "Kantone, in denen Sie eine Bewilligung (beantragt) haben";
$message .= "</b><br/>";
foreach ( $arrAllCantons as $abbreviation )
{
// if ( isset(filter_input(INPUT_POST, $abbreviation)) )
if (isset( $_POST[$abbreviation]) )
{
$message .= $_POST[$abbreviation] . "<br/>";
}
}
$message .= "</p>";
$arrServiceTyps = [ "SOM", "PSY", "AÜP" ];
$message .= "<hr/><p><b>";
$message .= "Leistungen, die Sie anbieten";
$message .= "</b><br/>";
foreach ( $arrServiceTyps as $abbreviation )
{
if (isset( $_POST[$abbreviation]) )
{
$message .= $_POST[$abbreviation] . "<br/>";
}
}
$message .= "</p>";
}