version 1.17, 2000/11/29 00:51:57
|
version 1.18, 2000/12/01 00:44:48
|
Line 36 sub start_problem {
|
Line 36 sub start_problem {
|
} |
} |
my $name = &Apache::run::run("{$args;".'return $name}',$safeeval); |
my $name = &Apache::run::run("{$args;".'return $name}',$safeeval); |
$Apache::inputtags::part='0'; |
$Apache::inputtags::part='0'; |
|
@Apache::inputtags::responselist = (); |
my $expression='$external::part='.$Apache::inputtags::part.';'; |
my $expression='$external::part='.$Apache::inputtags::part.';'; |
$safeeval->share_from('Apache::inputtags',['@part']); |
$safeeval->share_from('Apache::inputtags',['@part']); |
&Apache::run::run($expression,$safeeval); |
&Apache::run::run($expression,$safeeval); |
Line 47 sub end_problem {
|
Line 48 sub end_problem {
|
my ($target,$token,$parstack,$parser,$safeeval)=@_; |
my ($target,$token,$parstack,$parser,$safeeval)=@_; |
my $result=''; |
my $result=''; |
unless ($target eq 'meta') { |
unless ($target eq 'meta') { |
$result="</form></body>\n"; |
if ( $target eq 'web' && $Apache::inputtags::part eq '0') { |
|
$result.=&Apache::inputtags::grade; |
|
} |
|
$result.="</form></body>\n"; |
} else { |
} else { |
if ($Apache::inputtags::part ne '0') { |
if ($Apache::inputtags::part eq '0') { |
$result=&Apache::response::mandatory_part_meta; |
$result=&Apache::response::mandatory_part_meta; |
} |
} |
} |
} |
Line 165 sub start_part {
|
Line 169 sub start_part {
|
if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } |
if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } |
my $id = &Apache::run::run("{$args;".'return $id}',$safeeval); |
my $id = &Apache::run::run("{$args;".'return $id}',$safeeval); |
$Apache::inputtags::part=$id; |
$Apache::inputtags::part=$id; |
|
@Apache::inputtags::responselist = (); |
if ($target eq 'meta') { |
if ($target eq 'meta') { |
return &Apache::response::mandatory_part_meta; |
return &Apache::response::mandatory_part_meta; |
} |
} |
Line 172 sub start_part {
|
Line 177 sub start_part {
|
|
|
sub end_part { |
sub end_part { |
my ($target,$token,$parstack,$parser,$safeeval)=@_; |
my ($target,$token,$parstack,$parser,$safeeval)=@_; |
|
&Apache::lonxml::debug("in end_part $target "); |
|
if ( $target eq 'meta' ) { |
|
return ''; |
|
} |
|
my $result=&Apaceh::inputtags::grade; |
|
return $result; |
} |
} |
|
|
1; |
1; |