version 1.204, 2005/04/07 06:56:21
|
version 1.206, 2005/05/03 00:05:41
|
Line 85 sub get_target {
|
Line 85 sub get_target {
|
return ($env{'form.grade_target'}); |
return ($env{'form.grade_target'}); |
} elsif ( defined($env{'form.grade_target'} ) |
} elsif ( defined($env{'form.grade_target'} ) |
&& ($Apache::lonhomework::viewgrades eq 'F' )) { |
&& ($Apache::lonhomework::viewgrades eq 'F' )) { |
return ($env{'form.grade_target'}); |
if ($env{'form.grade_target'} eq 'webgrade') { |
|
if ($Apache::lonhomework::modifygrades eq 'F' ) { |
|
return ($env{'form.grade_target'}); |
|
} |
|
} else { |
|
return ($env{'form.grade_target'}); |
|
} |
} |
} |
|
|
if ( defined($env{'form.submitted'}) && |
if ( defined($env{'form.submitted'}) && |
( !defined($env{'form.resetdata'})) && |
( !defined($env{'form.resetdata'})) && |
( !defined($env{'form.newrandomization'}))) { |
( !defined($env{'form.newrandomization'}))) { |
Line 240 sub check_task_access {
|
Line 245 sub check_task_access {
|
# return ($status,$datemsg); |
# return ($status,$datemsg); |
# } |
# } |
my $slotstatus='NOT_IN_A_SLOT'; |
my $slotstatus='NOT_IN_A_SLOT'; |
my $returned_slot; |
my ($returned_slot,$slot_name); |
foreach my $slot (@slots) { |
foreach my $slot (@slots) { |
&Apache::lonxml::debug("getting $slot"); |
&Apache::lonxml::debug("getting $slot"); |
my %slot=&Apache::lonnet::get_slot($slot); |
my %slot=&Apache::lonnet::get_slot($slot); |
Line 251 sub check_task_access {
|
Line 256 sub check_task_access {
|
&Apache::lonxml::debug("$slot is good"); |
&Apache::lonxml::debug("$slot is good"); |
$slotstatus='NEEDS_CHECKIN'; |
$slotstatus='NEEDS_CHECKIN'; |
$returned_slot=\%slot; |
$returned_slot=\%slot; |
|
$slot_name=$slot; |
last; |
last; |
} |
} |
} |
} |
Line 259 sub check_task_access {
|
Line 265 sub check_task_access {
|
&Apache::lonxml::debug("protoctor checked in"); |
&Apache::lonxml::debug("protoctor checked in"); |
$slotstatus='CAN_ANSWER'; |
$slotstatus='CAN_ANSWER'; |
} |
} |
return ($slotstatus,$datemsg,$returned_slot); |
return ($slotstatus,$datemsg,$slot_name,$returned_slot); |
} |
} |
|
|
# JB, 9/24/2002: Any changes in this function may require a change |
# JB, 9/24/2002: Any changes in this function may require a change |
Line 479 sub setuppermissions {
|
Line 485 sub setuppermissions {
|
&Apache::lonnet::devalidatecourseresdata($env{"course.$courseid.num"}, |
&Apache::lonnet::devalidatecourseresdata($env{"course.$courseid.num"}, |
$env{"course.$courseid.domain"}); |
$env{"course.$courseid.domain"}); |
} |
} |
return '' |
my $modifygrades = &Apache::lonnet::allowed('mgr',$env{'request.course.id'}); |
|
if (! $modifygrades && |
|
exists($env{'request.course.sec'}) && |
|
$env{'request.course.sec'} !~ /^\s*$/) { |
|
$modifygrades = |
|
&Apache::lonnet::allowed('mgr',$env{'request.course.id'}. |
|
'/'.$env{'request.course.sec'}); |
|
} |
|
$Apache::lonhomework::modifygrades = $modifygrades; |
|
return ''; |
} |
} |
|
|
sub setupheader { |
sub setupheader { |