Added new xml field in Standortcode in container Lehrgangmeldung

Added xml field Standortcode in container Lehrgangmeldung > Lehrgang > StudentIn.
The default value should be set in config-file.

Signed-off-by: Cris <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2020-07-13 14:34:03 +02:00
parent 3ccc0eb753
commit 638c095e86
2 changed files with 16 additions and 0 deletions
+3
View File
@@ -249,4 +249,7 @@ define('BIS_FUNKTIONSCODE_6_ARR', array(
'Team'
));
// Standortcode fuer Lehrgaenge
define('BIS_STANDORTCODE_LEHRGAENGE', '0');
?>
+13
View File
@@ -93,6 +93,18 @@ if(isset($_GET['plausi']))
{
$plausi=$_GET['plausi'];
}
// Standortcode
if (defined('BIS_STANDORTCODE_LEHRGAENGE') && BIS_STANDORTCODE_LEHRGAENGE != '0')
{
$standortcode = BIS_STANDORTCODE_LEHRGAENGE;
}
else
{
echo "<H2>Standortcode f&uuml;r Lehrg&auml;nge fehlt.</H2>";
exit;
}
$datumobj=new datum();
//Lehrgangsdaten auslesen
@@ -672,6 +684,7 @@ if($result = $db->db_query($qry))
}
$datei.="
<StudStatusCode>".$status."</StudStatusCode>
<StandortCode>" .$standortcode. "</StandortCode>
</StudentIn>";
}
}