Diff for /loncom/interface/lonsyllabus.pm between versions 1.28 and 1.31

version 1.28, 2004/05/03 17:36:47 version 1.31, 2004/05/10 14:12:14
Line 45  sub handler { Line 45  sub handler {
   
 # ------------------------------------------------------------ Print the screen  # ------------------------------------------------------------ Print the screen
     my $target=$ENV{'form.grade_target'};      my $target=$ENV{'form.grade_target'};
     &Apache::lonnet::logthis("NOW TARGET IS DEFINIED AS $target");  
     if ($target ne 'tex') {      if ($target ne 'tex') {
  $r->print(<<ENDDOCUMENT);   $r->print(<<ENDDOCUMENT);
 <html>  <html>
Line 104  ENDDOCUMENT Line 103  ENDDOCUMENT
  $r->print('<h1>'.$courseenv{'description'}.'</h1><h3>'.   $r->print('<h1>'.$courseenv{'description'}.'</h1><h3>'.
                  $Apache::lonnet::domaindescription{$cdom}.'</h3>');                   $Apache::lonnet::domaindescription{$cdom}.'</h3>');
     } else {      } else {
  $r->print('\noindent\large\textbf{'.$courseenv{'description'}.'}}\\\\\\\\\textbf{'.   $r->print('\noindent{\large\textbf{'.$courseenv{'description'}.'}}\\\\\\\\\textbf{'.
                  $Apache::lonnet::domaindescription{$cdom}.'}\\\\');                   $Apache::lonnet::domaindescription{$cdom}.'}\\\\');
     }      }
 # -------------------------------------------------------------- Announcements?  # -------------------------------------------------------------- Announcements?
Line 160  ENDDOCUMENT Line 159  ENDDOCUMENT
   if (($syllabus{'uploaded.lastmodified'}) && (!$forceedit)) {    if (($syllabus{'uploaded.lastmodified'}) && (!$forceedit)) {
       $forcestudent='student';        $forcestudent='student';
   }    }
           if ($forcestudent) { $allowed=0; }            if ($forcestudent or $target eq 'tex') { $allowed=0; }
        }         }
        if ($allowed) {         if ($allowed) {
           $r->print('<p>'.            $r->print('<p>'.
Line 277  ENDDOCUMENT Line 276  ENDDOCUMENT
                                $message.'</blockquote>');                                 $message.'</blockquote>');
  } else {   } else {
      $r->print('\\\\\textbf{'.$syllabusfields{$_}.'}\\\\'.       $r->print('\\\\\textbf{'.$syllabusfields{$_}.'}\\\\'.
        &Apache::lonxml::xmlparse($r,' ',$message).'\\\\');         &Apache::lonxml::xmlparse($r,'tex',$message).'\\\\');
  }   }
      }       }
               if ($allowed) {                if ($allowed) {

Removed from v.1.28  
changed lines
  Added in v.1.31


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