my %dateTypeHash = ('open_date' => "opening date", 'due_date' => "due date", 'answer_date' => "answer open date"); my %levelTypeHash = ('whole_course' => "all problems in the course", 'map' => 'the selected folder', 'resource' => 'the selected problem'); $helper->{DATA}->{'dateTypeHash'} = \%dateTypeHash; $helper->{DATA}->{'levelTypeHash'} = \%levelTypeHash; $helper->{DATA}->{'levelType'} = sub { return $helper->{DATA}->{'levelTypeHash'}->{$helper->{VARS}->{GRANULARITY}}; }; $helper->{DATA}->{'dateType'} = sub { return $helper->{DATA}->{'dateTypeHash'}->{$helper->{VARS}->{ACTION_TYPE}}; };

This wizard will allow you to set open, due, and answer dates for problems. You will be asked to select a problem, what kind of date you want to set, and for whom the date should be effective.

After the wizard is done, you will be shown where in the advanced interface you would have gone to change the parameter you have chosen, so in the future you can do it directly.

Press Next -> to begin, or select <- Previous to go back to the previous screen.

Which problems do you wish to change a date for? Every problem in the course Every problem in a particular folder One particular problem Select the folder you wish to set the date for: CHOOSE_ACTION return $res->is_map() return $res->map_pc(); Select the problem you wish to change the date for: CHOOSE_ACTION return $res->is_map || $res->is_problem() return $res->is_problem() return 'What parameters do you want to set for ' . &{$helper->{DATA}->{'levelType'}}() . '?'; CHOOSE_DATE Set an open date Set a due date Set an answer open date return 'What should the ' . &{$helper->{DATA}->{'dateType'}}() . ' be set to?

';
CHOOSE_STUDENT_LEVEL
return 'Set ' . &{$helper->{DATA}->{'dateType'}}() . ' of ' . &{$helper->{DATA}->{'levelType'}}() . ' for. . .'; . . . for all students in the course . . . for a particular section . . . for an individual student return 'Please select the section you wish to set the ' . &{$helper->{DATA}->{'dateType'}}() . ' for:
';
return 'Please select the student you wish to set the ' . &{$helper->{DATA}->{'dateType'}}() . ' for:
';