--- rat/lonratparms.pm 2008/11/11 16:40:38 1.25 +++ rat/lonratparms.pm 2009/04/23 17:26:27 1.28 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Set parameters inside of the RAT # -# $Id: lonratparms.pm,v 1.25 2008/11/11 16:40:38 jms Exp $ +# $Id: lonratparms.pm,v 1.28 2009/04/23 17:26:27 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -26,34 +26,6 @@ # http://www.lon-capa.org/ # -=head1 NAME - -Apache::lonratparams - -=head1 SYNOPSIS - -Handler to set resource parameters inside of -the RAT based on metadata. - -This is part of the LearningOnline Network with CAPA project -described at http://www.lon-capa.org. - -=head1 HANDLER SUBROUTINE - -handler() - -=head1 OTHER SUBROUTINES - -=over - -=item * - -none - -=back - -=cut - package Apache::lonratparms; use strict; @@ -108,7 +80,7 @@ sub handler { my %lt=&Apache::lonlocal::texthash('pa' => 'Parameter', 'de' => 'Default', 'va' => 'Value', - 'se' => 'Set'); + 'se' => 'Set?'); my $js = (< @@ -148,11 +120,11 @@ ENDHEADER $r->print(< - - - - - + + + +
$lt{'pa'}$lt{'de'}$lt{'va'}$lt{'se'}?
+ ENDDOCUMENT ### %display=&Apache::lonlocal::texthash(%display); @@ -162,17 +134,17 @@ ENDDOCUMENT # Should if(defined($value{$key})) be if(exists($value{$key})) ? if (defined($value{$key})) { $cur=$value{$key}; }; $r->print(<<"END"); - + -'); + if ($value{$key}) { $r->print(' checked="checked"'); } + $r->print(' />'); } $r->print('
$lt{'pa'}$lt{'de'}$lt{'va'}$lt{'se'}
$display{$key}
$key
$display{$key}
$key
 $content{$key}  +  $enter print(' checked'); } - $r->print('>

- '. + '. &Apache::loncommon::end_page()); return OK; } @@ -180,3 +152,33 @@ END 1; __END__ + + +=head1 NAME + +Apache::lonratparams + +=head1 SYNOPSIS + +Handler to set resource parameters inside of +the RAT based on metadata. + +This is part of the LearningOnline Network with CAPA project +described at http://www.lon-capa.org. + +=head1 HANDLER SUBROUTINE + +handler() + +=head1 OTHER SUBROUTINES + +=over + +=item * + +none + +=back + +=cut +