--- loncom/interface/lonparmset.pm 2003/06/23 21:42:07 1.109
+++ loncom/interface/lonparmset.pm 2003/08/06 18:08:02 1.119
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set parameters for assessments
#
-# $Id: lonparmset.pm,v 1.109 2003/06/23 21:42:07 albertel Exp $
+# $Id: lonparmset.pm,v 1.119 2003/08/06 18:08:02 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -488,9 +488,15 @@ sub print_row {
sub print_td {
my ($r,$which,$defbg,$result,$outpar,$mprefix,$value,$typeoutpar,$display)=@_;
$r->print('
'.
- &plink($$typeoutpar[$which],$$display{$value},$$outpar[$which],
- $mprefix."$which",'parmform.pres','psub').' | '."\n");
+ ' align="center">');
+ if ($which<10) {
+ $r->print(&plink($$typeoutpar[$which],
+ $$display{$value},$$outpar[$which],
+ $mprefix."$which",'parmform.pres','psub'));
+ } else {
+ $r->print(&valout($$outpar[$which],$$typeoutpar[$which]));
+ }
+ $r->print(''."\n");
}
sub get_env_multiple {
@@ -852,7 +858,7 @@ sub assessparms {
$message.="Write Error: $1";
}
# ---------------------------------------------------------------- Done storing
- $message.='Changes can take up to 10 minutes before being active for all students
';
+ $message.='Changes can take up to 10 minutes before being active for all students.'.&Apache::loncommon::help_open_topic('Caching').'
';
}
# --------------------------------------------- Devalidate cache for this child
&Apache::lonnet::devalidatecourseresdata(
@@ -892,7 +898,11 @@ sub assessparms {
&startpage($r,$id,$udom,$csec,$uname,$have_assesments);
- if (!$have_assesments) { return ''; }
+ if (!$have_assesments) {
+ untie(%bighash);
+ untie(%parmhash);
+ return '';
+ }
# if ($ENV{'form.url'}) {
# $r->print('');
@@ -907,7 +917,7 @@ sub assessparms {
$r->print(''.$message.'
');
- my $submitmessage;
+ my $submitmessage = 'Update Section or Specific User';
if (!$pssymb) {
$r->print('Select Parameter Level | ');
$r->print(' |