<?php require_once('includes/requirecompere.inc.php'); $CMD_TMPL_NAME='coursegroup.compose'; $op=TGET('op'); $mb_id_owner=current_mb_id(); $dataset['MODIFY']=array(0); if ($op=='revise' && $_SESSION['reserv.inputcache.domain']=='coursegroup.modify') { $dataset+=$_SESSION['reserv.inputcache.errorareas']; $dataset+=$_SESSION['reserv.inputcache.data']; } else { $DBConn->connect(true); $cg_id=TGET('cg_id'); if ($cg_id) { $coursegroup=db_load_course_group($DBConn,$cg_id,$mb_id_owner); if ($coursegroup) $dataset+=$coursegroup; else redirect("qx-cmd-coursegroup.manage.html"); } else redirect("qx-cmd-coursegroup.manage.html"); } $dataset['MODIFIED-OK']=$op=='modified'?array(0):array(); ?>