0"; $_title .= "Sozialstipendiums-"; } $ds = ""; if (isset($_GET['ds'])) { $ds = "AND contracts.ls > 0"; $_title .= "Leistungstipendiums-"; } $ideell = ""; if (isset($_GET['ideell'])) { $ds = "AND (contracts.ls < 1 AND contracts.ss < 1)"; $_title .= "Ideellen-"; } $_title .= "Förderer im Förderjahr " . $_year . "/" . ($_year + 1) . " (anhand Verträge)"; $_constraint = "WHERE (contracts.valid_from >= '" . $_year . "-10-01' AND contracts.valid_from < '" . ($_year + 1) . "-10-01' AND contracts.id > 0) " . $social . " " . $ds . " " . $ideell . " GROUP BY Förderer.ID"; require_once __DIR__ . "/patrons_common.php";