Diff for /loncom/interface/lonparmset.pm between versions 1.150 and 1.153

version 1.150, 2004/02/02 20:21:25 version 1.153, 2004/04/12 20:03:31
Line 587  sub extractResourceInformation { Line 587  sub extractResourceInformation {
     my $resid=$2;      my $resid=$2;
     my $id=$mapid.'.'.$resid;      my $id=$mapid.'.'.$resid;
     my $srcf=$$bighash{$_};      my $srcf=$$bighash{$_};
     if ($srcf=~/\.(problem|exam|quiz|assess|survey|form)$/) {  #    if ($srcf=~/\.(problem|exam|quiz|assess|survey|form)$/) {
       if (1) {
  $$ids[$#$ids+1]=$id;   $$ids[$#$ids+1]=$id;
  $$typep{$id}=$1;   $$typep{$id}=$1;
  $$keyp{$id}='';   $$keyp{$id}='';
Line 1151  ENDTABLEHEADFOUR Line 1152  ENDTABLEHEADFOUR
                 my $rid=$_;                  my $rid=$_;
                 my ($inmapid)=($rid=~/\.(\d+)$/);                  my ($inmapid)=($rid=~/\.(\d+)$/);
   
                 if (($pschp eq 'all') || ($allmaps{$pschp} eq $mapp{$rid}) ||                  if ((!$pssymb && 
                     ($pssymb eq $symbp{$rid})) {       (($pschp eq 'all') || ($allmaps{$pschp} eq $mapp{$rid})))
       ||
       ($pssymb && $pssymb eq $symbp{$rid})) {
 # ------------------------------------------------------ Entry for one resource  # ------------------------------------------------------ Entry for one resource
                     if ($defbgone eq '"E0E099"') {                      if ($defbgone eq '"E0E099"') {
                         $defbgone='"E0E0DD"';                          $defbgone='"E0E0DD"';
Line 1496  sub crsenv { Line 1499  sub crsenv {
         }          }
         #          #
         # Let the user know we made the changes          # Let the user know we made the changes
         if ($name) {          if ($name && defined($value)) {
             my $put_result = &Apache::lonnet::put('environment',              my $put_result = &Apache::lonnet::put('environment',
                                                   {$name=>$value},$dom,$crs);                                                    {$name=>$value},$dom,$crs);
             if ($put_result eq 'ok') {              if ($put_result eq 'ok') {
Line 1589  sub crsenv { Line 1592  sub crsenv {
          => '<b>'.&mt('Randomization algorithm used').'</b> <br />'.           => '<b>'.&mt('Randomization algorithm used').'</b> <br />'.
                     '<font color="red">'.&mt('Modifying this will make problems').' '.                      '<font color="red">'.&mt('Modifying this will make problems').' '.
                     &mt('have different numbers and answers').'</font>',                      &mt('have different numbers and answers').'</font>',
        'receiptalg'
            => '<b>'.&mt('Receipt algorithm used').'</b> <br />'.
                       &mt('This controls how receipt numbers are generated.'),
              'problem_stream_switch'               'problem_stream_switch'
                  => '<b>'.&mt('Allow problems to be split over pages').'</b><br />'.                   => '<b>'.&mt('Allow problems to be split over pages').'</b><br />'.
                     ' ("<tt>'.&mt('yes').'</tt>" '.&mt('if allowed, anything else if not').')',                      ' ("<tt>'.&mt('yes').'</tt>" '.&mt('if allowed, anything else if not').')',
Line 1615  sub crsenv { Line 1621  sub crsenv {
                              'languages',                               'languages',
      'nothideprivileged',       'nothideprivileged',
                              'rndseed',                               'rndseed',
                                'receiptalg',
                              'problem_stream_switch',                               'problem_stream_switch',
                              'disable_receipt_display',                               'disable_receipt_display',
                              'spreadsheet_default_classcalc',                               'spreadsheet_default_classcalc',
Line 1769  ENDOVER Line 1776  ENDOVER
  push (@deldata,$thiskey);   push (@deldata,$thiskey);
     } elsif ($cmd eq 'datepointer') {      } elsif ($cmd eq 'datepointer') {
  my $data=&Apache::lonhtmlcommon::get_date_from_form($ENV{$_});   my $data=&Apache::lonhtmlcommon::get_date_from_form($ENV{$_});
  if ($olddata{$thiskey} ne $data) { $newdata{$thiskey}=$data; }   if (defined($data) and $olddata{$thiskey} ne $data) { $newdata{$thiskey}=$data; }
     }      }
  }   }
     }      }

Removed from v.1.150  
changed lines
  Added in v.1.153


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>