--- loncom/homework/structuretags.pm 2003/11/04 14:46:28 1.222 +++ loncom/homework/structuretags.pm 2004/03/02 20:59:25 1.243 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.222 2003/11/04 14:46:28 sakharuk Exp $ +# $Id: structuretags.pm,v 1.243 2004/03/02 20:59:25 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -37,6 +37,7 @@ use Apache::lonnet; use Apache::File(); use Apache::lonmenu; use Apache::lonlocal; +use Apache::lonxml; BEGIN { &Apache::lonxml::register('Apache::structuretags',('block','languageblock','instructorcomment','while','randomlist','problem','library','web','tex','part','preduedate','postanswerdate','solved','notsolved','startouttext','endouttext', @@ -157,8 +158,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')) { @@ -182,12 +183,16 @@ 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). + &Apache::loncommon::help_open_bug('Authoring').'
'. + '
'; } sub problem_edit_footer { @@ -195,21 +200,63 @@ sub problem_edit_footer { '; } +sub option { + my ($value,$name) = @_; + my $result ="