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

@ -91,7 +91,16 @@ kommentar = 'age und hobbies sind honeypots'
<input type="text" id="servername" name="servername" placeholder="name" required > <input type="text" id="servername" name="servername" placeholder="name" required >
</div> </div>
<div> <div>
<h5>In welchen Kantonen haben Sie eine Bewilligung oder haben eine Bewilligung beantragt?</h5> **Welche Leistungen bieten Sie an?**
<input type="checkbox" id="SOM" name="SOM" value="SOM: Somatische Leistungen" checked />
<label for="SOM">Somatische Leistungen</label>&nbsp;&nbsp;&nbsp;&nbsp;
<input type="checkbox" id="PSY" name="PSY" value="PSY: Psychiatrische Leistungen" />
<label for="PSY">Psychiatrische Leistungen</label>&nbsp;&nbsp;&nbsp;&nbsp;
<input type="checkbox" id="AÜP" name="AÜP" value="AÜP: Akut- und Übergangspflege" />
<label for="AÜP">Akut- und Übergangspflege</label>&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<div>
**In welchen Kantonen haben Sie eine Bewilligung oder haben eine Bewilligung beantragt?**
<table cellpadding="3"> <table cellpadding="3">
<tr> <tr>
<td> <td>

View file

@ -131,21 +131,32 @@ function constructMessage()
} }
// form inputs cantons - only FPP // 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" ) 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 .= "<hr/><p><b>";
$message .= "Kantone, in denen Sie eine Bewilligung (beantragt) haben"; $message .= "Kantone, in denen Sie eine Bewilligung (beantragt) haben";
$message .= "</b><br/>"; $message .= "</b><br/>";
foreach ( $arrAllCantons as $abbreviation ) foreach ( $arrAllCantons as $abbreviation )
{ {
// if ( isset(filter_input(INPUT_POST, $abbreviation)) )
if (isset( $_POST[$abbreviation]) ) if (isset( $_POST[$abbreviation]) )
{ {
$message .= $_POST[$abbreviation] . "<br/>"; $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>"; $message .= "</p>";
} }