--- loncom/interface/lonparmset.pm 2005/06/18 17:23:25 1.229 +++ loncom/interface/lonparmset.pm 2005/10/03 20:21:24 1.257 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set parameters for assessments # -# $Id: lonparmset.pm,v 1.229 2005/06/18 17:23:25 www Exp $ +# $Id: lonparmset.pm,v 1.257 2005/10/03 20:21:24 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -525,7 +525,6 @@ sub plink { } } my ($parmname)=((split(/\&/,$marker))[1]=~/\_([^\_]+)$/); - &Apache::lonnet::logthis($marker.'-'.$parmname); my ($hour,$min,$sec,$val)=&preset_defaults($parmname); unless (defined($winvalue)) { $winvalue=$val; } return @@ -630,7 +629,10 @@ sub print_row { } else { $parm=~s|\[.*\]\s||g; } - + my $automatic=&rulescache(($which=~/\_([^\_]+)$/)[0].'_triggers'); + if ($automatic) { + $parm.='
'.&mt('Automatically sets').' '.join(', ',split(/\:/,$automatic)).'
'; + } $r->print(''.$parm.''); my $thismarker=$which; @@ -902,12 +904,12 @@ ENDSCRIPT $r->print("\n"); my $cnt=0; foreach $tempkey (&keysindisplayorder($allparms,$keyorder)) { - $r->print("\n'); + $r->print('>'.$$allparms{$tempkey}.''); $cnt++; if ($cnt==3) { $r->print("\n"); @@ -916,16 +918,16 @@ ENDSCRIPT } $r->print(' '); $r->print('
print("\n
-Select All
-Select Common Only +Select All
+Select Common Only
-Add Problem Dates -Add Content Dates
-Add Discussion Settings -Add Visibilities
-Add Part Parameters +Add Problem Dates +Add Content Dates
+Add Discussion Settings +Add Visibilities
+Add Part Parameters
-Unselect All +Unselect All
'); @@ -939,7 +941,9 @@ sub partmenu { $r->print('>'.&mt('All Parts').''); my %temphash=(); foreach (@{$psprt}) { $temphash{$_}=1; } - foreach my $tempkey (sort keys %{$allparts}) { + foreach my $tempkey (sort { + if ($a==$b) { return ($a cmp $b) } else { return ($a <=> $b); } + } keys(%{$allparts})) { unless ($tempkey =~ /\./) { $r->print('