include("include/init.php");
check_login();
if ($_SESSION['type'] == 'ouder') throw new Exception('ouders kunnen geen groepsnotities maken');
$reload = 0;
$week_options = gen_week_select($_GET['week'], 0, &$week);
$dag_options = gen_dag_select($_GET['dag'], 0, &$dag, 0, 0);
$lesuur_options = gen_lesuur_select($_GET['lesuur'], 0, &$lesuur, 0);
$grp2vak_options =
sprint_grp2vak_select($_GET['grp2vak_id'], 0, &$grp2vak_id, 0);
if (!$grp2vak_options) throw new Exception('ingelogd persoon heeft geen lesgroepen en kan dus ook geen groepsnotities maken', 2);
if ($reload) {
header("Location: new.php?index=$week&dag=$dag&".
"lesuur=$lesuur&doelgroep=lesgroep&grp2vak_id=$grp2vak_id");
exit;
}
$table = get_list_of_files();
$tags .= 'voor cijfer: ';
$tags .= sprint_tag_checkbox('tags[]', 'repetitie');
$tags .= ' '.sprint_tag_checkbox('tags[]', 'so');
$tags .= ' '.sprint_tag_checkbox('tags[]', 'vt');
$tags .= ' '.sprint_tag_checkbox('tags[]', 'st');
$tags .= ' '.sprint_tag_checkbox('tags[]', 'inleveren').' periode:
';
$tags .= 'huiswerk: ';
$tags .= sprint_tag_checkbox('tags[]', 'maken');
$tags .= ' '.sprint_tag_checkbox('tags[]', 'nakijken');
$tags .= ' '.sprint_tag_checkbox('tags[]', 'leren').'
';
$tags .= 'planning: ';
$tags .= sprint_tag_checkbox('tags[]', 'in de les').'
';
$result = mysql_query_safe("SELECT vaksite, vaksite_id FROM grp2vak2vaksite JOIN vaksites USING (vaksite_id) WHERE grp2vak_id = '$grp2vak_id'");
if (mysql_numrows($result)) {
$vaksite = mysql_result($result, 0, 0);
//$rownr = sprint_singular("SELECT cur FROM ppl2vaksiteprefs WHERE ppl_id = '{$_SESSION['ppl_id']}' AND vaksite_id = '%s'",
// mysql_escape_safe(mysql_result($result, 0, 1)));
}
gen_html_header("Nieuwe Notitie", '$("textarea:visible:first").focus();');
?>