require_once('phplib/phplib.php'); require_once('common.php'); check_admin(); $db = mdb2_open($dsn); if (isset($_GET['period_id'])) { $period = mdb2_single_assoc($db, "SELECT * FROM periods JOIN $kldv.years USING (year_id) WHERE period_id = %i", $_GET['period_id']); if (!$period) error_user('Periode niet gevonden', 'Te bewerken periode niet gevonden :('); } else { error_system("period_id must be set"); } $afd = ''; $flags = ''; $max = ''; $period2maxflags_id = NULL; if (isset($_GET['period2maxflags_id'])) { $info = mdb2_single_assoc($db, "SELECT * FROM period2maxflags WHERE period2maxflags_id = %i", $_GET['period2maxflags_id']); if ($period['period_id'] != $info['period_id']) error_system("impossible"); $afd = $info['leerjr'].$info['target']; $flags = $info['flags']; $max = $info['max']; $period2maxflags_id = $info['period2maxflags_id']; } function radio_afd($afd, $default) { ?> value="=$afd?>"> =$afd?> } html_start(''); ?>