version 1.18, 2001/06/26 21:41:58
|
version 1.22, 2001/08/06 20:33:23
|
Line 40 sub end_optionresponse {
|
Line 40 sub end_optionresponse {
|
return $result; |
return $result; |
} |
} |
|
|
sub insert_optionresponse { |
|
return ' |
|
<optionresponse max="10"> |
|
<foilgroup options=\"\"> |
|
</foilgroup> |
|
</optionresponse>'; |
|
} |
|
|
|
%Apache::response::foilgroup={}; |
%Apache::response::foilgroup={}; |
sub start_foilgroup { |
sub start_foilgroup { |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; |
Line 274 sub start_foil {
|
Line 266 sub start_foil {
|
if ($$tagstack['-2'] eq 'conceptgroup') { $level = '-3'; } |
if ($$tagstack['-2'] eq 'conceptgroup') { $level = '-3'; } |
my @opt; |
my @opt; |
eval '@opt ='.&Apache::lonxml::get_param('options',$parstack,$safeeval,$level); |
eval '@opt ='.&Apache::lonxml::get_param('options',$parstack,$safeeval,$level); |
$result.=&Apache::edit::text_arg('Name:','name',$token). |
$result.=&Apache::edit::text_arg('Name:','name',$token); |
&Apache::edit::select_arg('Correct Option:','value',['unused',(@opt)],$token). |
$result.= &Apache::edit::select_or_text_arg('Correct Option:','value',['unused',(@opt)],$token,'15'); |
'</td></tr><tr><td colspan="3">'; |
$result .= '</td></tr><tr><td colspan="3">'; |
} |
} |
if ($target eq 'modified') { |
if ($target eq 'modified') { |
my $constructtag=&Apache::edit::get_new_args($token,$parstack,$safeeval,'value','name'); |
my $constructtag=&Apache::edit::get_new_args($token,$parstack,$safeeval,'value','name'); |