From 5db8710a5f5fa30ad78e42eb38c0898cf2ec7bba Mon Sep 17 00:00:00 2001
From: betty
Date: Mon, 12 Jan 2026 10:32:33 +0100
Subject: [PATCH] edit messages from form-data
---
static/php/message.php | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/static/php/message.php b/static/php/message.php
index a1208d6..ca70307 100644
--- a/static/php/message.php
+++ b/static/php/message.php
@@ -130,6 +130,24 @@ function constructMessage()
$message .= $servername . "
";
}
+ // 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" )
+ {
+ $message .= "
";
+ $message .= "Kantone, in denen Sie eine Bewilligung (beantragt) haben";
+ $message .= "
";
+ foreach ( $arrAllCantons as $abbreviation )
+ {
+ if ( isset(filter_input(INPUT_POST, $abbreviation)) )
+ {
+ $message .= filter_input(INPUT_POST, $abbreviation) . "
";
+ }
+ }
+
+ $message .= "
";
+ }
+
$modulpop2 = filter_input(INPUT_POST, 'modulpop2');
if (isset($modulpop2))
{