version 1.19, 2010/03/16 15:12:36
|
version 1.23, 2016/03/05 21:49:52
|
Line 1
|
Line 1
|
<helper title="Course Parameter Helper" requiredpriv='opa'> |
<helper title="Course Parameter Helper" requiredpriv='opa&S'> |
|
|
<exec> |
<exec> |
# 'dateTypeHash' should really be renamed now that we have tries... |
# 'dateTypeHash' should really be renamed now that we have tries... |
Line 53
|
Line 53
|
<choice computer="whole_course" nextstate="CHOOSE_ACTION"> |
<choice computer="whole_course" nextstate="CHOOSE_ACTION"> |
Course default for all problems |
Course default for all problems |
</choice> |
</choice> |
|
<condition> |
|
<clause>return 1 if (&Apache::lonnet::get_server_loncaparev($env{'course.'.$env{'request.course.id'}.'.home'}) >= 2.12)</clause> |
|
<choice computer="maprecurse" nextstate="CHOOSE_FOLDER"> |
|
Every problem in a particular folder and (recursively) for sub-folders |
|
(overrides course default) |
|
</choice> |
|
<condition> |
<choice computer="map" nextstate="CHOOSE_FOLDER"> |
<choice computer="map" nextstate="CHOOSE_FOLDER"> |
Every problem in a particular folder (overrides course default) |
Every problem in a particular folder (overrides course default) |
</choice> |
</choice> |
Line 144
|
Line 151
|
' for ...'); |
' for ...'); |
</eval> |
</eval> |
<choices variable="TARGETS"> |
<choices variable="TARGETS"> |
<choice computer="course" nextstate="FINISH"> |
<condition> |
. . . for <b>all students</b> in the course</choice> |
<clause>return 1 if ($env{'request.course.sec'} eq '')</clause> |
|
<choice computer="course" nextstate="FINISH"> |
|
. . . for <b>all students</b> in the course</choice> |
|
</condition> |
<choice computer="section" nextstate="CHOOSE_SECTION"> |
<choice computer="section" nextstate="CHOOSE_SECTION"> |
. . . for a particular <b>section</b></choice> |
. . . for a particular <b>section</b></choice> |
<condition> |
<condition> |
<clause>return 1 if (&Apache::longroup::coursegroups())</clause> |
<clause>return 1 if (($env{'request.course.groups'} ne '') || (&Apache::lonnet::allowed('mdg',$env{'request.course.id'}) && (&Apache::longroup::coursegroups())))</clause> |
<choice computer="group" nextstate="CHOOSE_GROUP"> |
<choice computer="group" nextstate="CHOOSE_GROUP"> |
. . . for a particular <b>group</b></choice> |
. . . for a particular <b>group</b></choice> |
</condition> |
</condition> |
<choice computer="student" nextstate="CHOOSE_STUDENT"> |
<choice computer="student" nextstate="CHOOSE_STUDENT"> |
. . . for an individual <b>student</b></choice> |
. . . for an individual <b>student</b> or <b>user</b></choice> |
</choices> |
</choices> |
</state> |
</state> |
|
|
Line 163
|
Line 173
|
return &mt('Please select the section you wish to set the ' . |
return &mt('Please select the section you wish to set the ' . |
&{$helper->{DATA}->{'dateType'}}() . |
&{$helper->{DATA}->{'dateType'}}() . |
' for:').'<br />';</eval> |
' for:').'<br />';</eval> |
<section variable="SECTION_NAME" nextstate="FINISH" /> |
<section variable="SECTION_NAME" nextstate="FINISH" onlysections="1" /> |
</state> |
</state> |
|
|
<state name="CHOOSE_GROUP" title="Select Group"> |
<state name="CHOOSE_GROUP" title="Select Group"> |
Line 171
|
Line 181
|
return &mt('Please select the group you wish to set the ' . |
return &mt('Please select the group you wish to set the ' . |
&{$helper->{DATA}->{'dateType'}}() . |
&{$helper->{DATA}->{'dateType'}}() . |
' for:').'<br />';</eval> |
' for:').'<br />';</eval> |
<group variable="GROUP_NAME" nextstate="FINISH" /> |
<group variable="GROUP_NAME" nextstate="FINISH" grouponly="1" /> |
</state> |
</state> |
|
|
|
|
<state name="CHOOSE_STUDENT" title="Select Student"> |
<state name="CHOOSE_STUDENT" title="Select User"> |
<eval> |
<eval> |
return &mt('Please select the student you wish to set the ' . |
return &mt('Please select the person you wish to set the ' . |
&{$helper->{DATA}->{'dateType'}}() . |
&{$helper->{DATA}->{'dateType'}}() . |
' for:').'<br />';</eval> |
' for:').'<br />';</eval> |
<student variable="USER_NAME" nextstate="FINISH" coursepersonnel='1'/> |
<student variable="USER_NAME" nextstate="FINISH" coursepersonnel="1" sectiononly="1" /> |
</state> |
</state> |
|
|
<state name="FINISH" title="Verify Selection"> |
<state name="FINISH" title="Verify Selection"> |