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";