version 1.49, 2003/05/06 11:54:08
|
version 1.52, 2003/05/13 20:48:12
|
Line 386 sub insert_radiobuttonhint {
|
Line 386 sub insert_radiobuttonhint {
|
</radiobuttonhint>'; |
</radiobuttonhint>'; |
} |
} |
|
|
|
sub insert_optionhint { |
|
return ' |
|
<optionhint> |
|
</optionhint>'; |
|
} |
|
|
sub insert_startouttext { |
sub insert_startouttext { |
return "<startouttext />\n<endouttext />"; |
return "<startouttext />\n<endouttext />"; |
} |
} |
Line 454 sub get_new_args {
|
Line 460 sub get_new_args {
|
my $element=&html_element_name($arg); |
my $element=&html_element_name($arg); |
my $newvalue=$ENV{"form.$element"}; |
my $newvalue=$ENV{"form.$element"}; |
&Apache::lonxml::debug(" for:$arg: cur is :$value: new is :$newvalue:"); |
&Apache::lonxml::debug(" for:$arg: cur is :$value: new is :$newvalue:"); |
if ($value ne $newvalue) { |
if (defined($newvalue) && $value ne $newvalue) { |
$token->[2]->{$arg}=$newvalue; |
$token->[2]->{$arg}=$newvalue; |
$rebuild=1; |
$rebuild=1; |
} |
} |
Line 621 sub entercoordpair {
|
Line 627 sub entercoordpair {
|
$formwidth='&formwidth='.$width.'_'.$Apache::edit::bgimgsrccurdepth; |
$formwidth='&formwidth='.$width.'_'.$Apache::edit::bgimgsrccurdepth; |
} |
} |
my $result = <<"ENDBUTTON"; |
my $result = <<"ENDBUTTON"; |
<a href="/cgi-bin/imagechoice.pl?mode=pair&formname=$form&file=$bgfile$formheight$formwidth" |
<a href="/cgi-bin/imagechoice.pl?mode=pair&formname=$form&file=$bgfile$formheight$formwidth&formcoord=$element" |
target="imagechoice">Click Coordinate Pair</a> |
target="imagechoice">Click Coordinate Pair</a> |
ENDBUTTON |
ENDBUTTON |
return $result; |
return $result; |