Diff for /loncom/interface/lonsyllabus.pm between versions 1.32 and 1.33

version 1.32, 2004/06/02 00:42:15 version 1.33, 2004/06/03 14:28:39
Line 182  ENDDOCUMENT Line 182  ENDDOCUMENT
        if (($allowed) && ($ENV{'form.storesyl'})) {         if (($allowed) && ($ENV{'form.storesyl'})) {
    foreach (keys %syllabusfields) {     foreach (keys %syllabusfields) {
                my $field=$ENV{'form.'.$_};                 my $field=$ENV{'form.'.$_};
          chomp($field);
                $field=~s/\s+$//s;                 $field=~s/\s+$//s;
                $field=&Apache::lonfeedback::clear_out_html($field,1);         $field=~s/^\s+//s;
          $field=~s/\<br\s*\/*\>$//s;
          $field=&Apache::lonfeedback::clear_out_html($field,1);
        $syllabus{$_}=$field;         $syllabus{$_}=$field;
                if ($_ eq 'lll_includeurl') { # clean up included URLs                 if ($_ eq 'lll_includeurl') { # clean up included URLs
                   my $field='';                    my $field='';
Line 240  ENDDOCUMENT Line 243  ENDDOCUMENT
    $r->print('<form method="post">'.     $r->print('<form method="post">'.
      '<input type="hidden" name="forceedit" value="edit" />');       '<input type="hidden" name="forceedit" value="edit" />');
        }         }
          my @htmlids=();
        foreach (sort keys %syllabusfields) {         foreach (sort keys %syllabusfields) {
           if (($syllabus{$_}=~/\w/) || ($allowed)) {            if (($syllabus{$_}=~/\w/) || ($allowed)) {
               my $message=$syllabus{$_};                my $message=$syllabus{$_};
Line 280  ENDDOCUMENT Line 284  ENDDOCUMENT
      $r->print('\\\\\textbf{'.$syllabusfields{$_}.'}\\\\'.       $r->print('\\\\\textbf{'.$syllabusfields{$_}.'}\\\\'.
        &Apache::lonxml::xmlparse($r,'tex',$message).'\\\\');         &Apache::lonxml::xmlparse($r,'tex',$message).'\\\\');
  }   }
    push @htmlids,$_;
      }       }
               if ($allowed) {                if ($allowed) {
                  $r->print('<br /><textarea cols="80" rows="6" name="'.$_.'">'.                   $r->print(
      '<br /><textarea cols="80" rows="12" name="'.$_.'" id="'.$_.'">'.
    $syllabus{$_}.     $syllabus{$_}.
            '</textarea><input type="submit" name="storesyl" value="Store" />');             '</textarea> <input type="submit" name="storesyl" value="Store" />');
       }        }
   }    }
        }         }
        if ($allowed) {         if ($allowed) {
    $r->print('</form>'.     $r->print('</form>'.
      &Apache::lonhtmlcommon::htmlareaactive());       &Apache::lonhtmlcommon::htmlareaselectactive(@htmlids));
        }         }
        if ($target ne 'tex') {$r->print('</p>');} else {$r->print('\\\\');}         if ($target ne 'tex') {$r->print('</p>');} else {$r->print('\\\\');}
     } else {      } else {

Removed from v.1.32  
changed lines
  Added in v.1.33


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