first commit

This commit is contained in:
aschwarz
2023-04-25 13:25:59 +02:00
commit 086d1e1e9e
1774 changed files with 396049 additions and 0 deletions

37
func_lvs_exk_eintaegig.php Executable file
View File

@ -0,0 +1,37 @@
<?php
/*
##################################################################################
## Verwendet in erfassen_eingabe.php
##################################################################################
*/
#require_once("config.inc.php");
function lvs_exk_eintaegig($exk_stdanreise){
$db = dbconnect();
$result_fakt = $db->query("SELECT faktor, max_wert
FROM dep_kat_veranstaltungsart
WHERE verid = 5;
");
$row_fakt = $result_fakt->fetch_array();
$max_wert = $row_fakt['max_wert'];
$faktor = $row_fakt['faktor'];
#
$LVS_stdanreise = $exk_stdanreise*$faktor;
if($LVS_stdanreise >=$max_wert){
$LVS_stdanreise = $max_wert;
}
return $LVS_stdanreise;
}
#$exk_stdanreise = 5.5;
#echo lvs_exk_eintaegig($exk_stdanreise);
?>