Index: temp_moodle_dev/moodle/mod/assignment/assignment_types.php =================================================================== diff -u --- temp_moodle_dev/moodle/mod/assignment/assignment_types.php (revision 0) +++ temp_moodle_dev/moodle/mod/assignment/assignment_types.php (revision 21cf27b89e4e70127748b1edcff1355fcee20722) @@ -0,0 +1,56 @@ +libdir.'/gradelib.php'); + + require_login(); + + $add = optional_param('add', 0, PARAM_ALPHA); + $update = optional_param('update', PARAM_INT); + $return = optional_param('return', 0, PARAM_BOOL); //return to course/view.php if false or mod/modname/view.php if true + $course = optional_param('course', '', PARAM_ALPHANUM); + $type = optional_param('type', '', PARAM_ALPHANUM); + $section = optional_param('section', '', PARAM_ALPHANUM); + $is_learner = optional_param('is_learner', 0, PARAM_INT); + $returnurl = urlencode(optional_param('returnUrl', PARAM_TEXT)); + $id = optional_param('id',0, PARAM_INT); + $nexturl = "../../course/modedit-lams.php?add=".$add."&course=".$course."§ion=".$section."&return=".$return."&editing=1"; + + if($id!=0){ + redirect($nexturl."&type=".$type."&update=".$update); + + }else{ + print(""); + print(""); + print(""); + print("Untitled Document"); + print(""); + print(""); + print("



"); + print(""); + print("
Choose the type of Assignment you prefer

"); + print("
"); + + print(""); + print(" "); + print(""); + print("
"); + print("
"); + print("
"); + print(""); + print(""); + } + + + + + + +?> \ No newline at end of file