From cdea8caa5617f0cb77bcbc9803759abd2df50644 Mon Sep 17 00:00:00 2001 From: Niklas Olmes Date: Fri, 24 Apr 2026 19:30:00 +0200 Subject: stipcrm --- patronspersons_by_year.php | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 patronspersons_by_year.php (limited to 'patronspersons_by_year.php') diff --git a/patronspersons_by_year.php b/patronspersons_by_year.php new file mode 100644 index 0000000..ad3ae4c --- /dev/null +++ b/patronspersons_by_year.php @@ -0,0 +1,42 @@ + + 0"; + $fragment .= "Sozialstipendiums-"; +} + +$ds = ""; +if (isset($_GET['ds'])) { + $ds = "AND contracts.ls > 0"; + $fragment .= "Leistungstipendiums-"; +} + +$ideell = ""; +if (isset($_GET['ideell'])) { + $ds = "AND (contracts.ls < 1 AND contracts.ss < 1)"; + $fragment .= "Idellen-"; +} + +$_title = "Alle Personen bei " . $fragment . "Förderern des Förderjahres " . $_year . "/" . ($_year + 1) . " (anhand Verträge)"; + +$_constraint = "WHERE Förderer.ID IN (SELECT contracts.patron FROM contracts WHERE (contracts.valid_from >= '" . $_year . "-10-01') AND (contracts.valid_from < '" . ($_year + 1) . "-10-01') " . $social . " " . $ds . " " . $ideell . ")"; + +require __DIR__ . "/patronspersons_common.php"; -- cgit v1.3.1