--- loncom/homework/structuretags.pm 2004/02/10 22:11:37 1.233 +++ loncom/homework/structuretags.pm 2004/03/09 20:37:58 1.245 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.233 2004/02/10 22:11:37 www Exp $ +# $Id: structuretags.pm,v 1.245 2004/03/09 20:37:58 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -120,6 +120,7 @@ sub page_start { $body_tag_start.=$help; } } + $body_tag_start.=&Apache::lonxml::message_location(); } my $form_tag_start; if (!defined($found{'form'})) { @@ -158,8 +159,8 @@ sub setup_rndseed { $rndseed=$Apache::lonhomework::history{'rndseed'}; if (!$rndseed) { $rndseed=time; - $ENV{'form.rndseed'}=$rndseed; } + $ENV{'form.rndseed'}=$rndseed; } if ($ENV{'form.resetdata'} eq &mt('New Problem Variation') || $ENV{'form.newrandomization'} eq &mt('New Randomization')) { @@ -183,11 +184,11 @@ sub setup_rndseed { sub problem_edit_header { return ' - - -
- -
'. + + +
+ +
'. &Apache::loncommon::help_open_topic('Problem_Editor_XML_Index', 'Problem Editing Help').''. &Apache::loncommon::help_open_faq(5). @@ -200,13 +201,23 @@ sub problem_edit_footer { '; } +sub option { + my ($value,$name) = @_; + my $result ="