Diff for /loncom/interface/lonsyllabus.pm between versions 1.35 and 1.38

version 1.35, 2004/06/11 15:41:36 version 1.38, 2004/07/27 23:35:34
Line 37  use Apache::lonfeedback; Line 37  use Apache::lonfeedback;
 use Apache::lonannounce;  use Apache::lonannounce;
 use Apache::lonlocal;  use Apache::lonlocal;
 use Apache::lonhtmlcommon;  use Apache::lonhtmlcommon;
   use Apache::lonspeller();
   
 sub handler {  sub handler {
     my $r = shift;      my $r = shift;
Line 122  ENDDOCUMENT Line 123  ENDDOCUMENT
     if ($target ne 'tex') {      if ($target ne 'tex') {
  $r->print('<table border="2">');   $r->print('<table border="2">');
     } else {      } else {
  $r->print('\begin{tabular}{|c|c|}\hline');   $r->print('\begin{tabular}{|p{0.45\textwidth}|p{0.45\textwidth}|}\hline');
     }      }
     foreach (sort keys %coursepersonnel) {      foreach my $element (sort keys %coursepersonnel) {
  if ($target ne 'tex') {   if ($target ne 'tex') {
     $r->print('<tr><td>'.$_.'</td><td>');      $r->print('<tr><td>'.$element.'</td><td>');
  } else {   } else {
     $r->print(' '.$_.'\\\\  ');       $r->print(' '.&Apache::lonxml::xmlparse($r,'tex',$element).' & '); 
  }   }
         foreach (split(/\,/,$coursepersonnel{$_})) {          foreach (split(/\,/,$coursepersonnel{$element})) {
     my ($puname,$pudom)=split(/\:/,$_);      my ($puname,$pudom)=split(/\:/,$_);
     if ($target ne 'tex') {      if ($target ne 'tex') {
  $r->print(' '.&Apache::loncommon::aboutmewrapper(   $r->print(' '.&Apache::loncommon::aboutmewrapper(
Line 286  ENDDOCUMENT Line 287  ENDDOCUMENT
                  $message=~s/\n/\<br \/\>/g;                   $message=~s/\n/\<br \/\>/g;
                  $message                   $message
            =~s/(https*\:\/\/[^\s]+)/\<a href=\"$1\"\>\<tt\>$1\<\/tt\>\<\/a\>/g;             =~s/(https*\:\/\/[^\s]+)/\<a href=\"$1\"\>\<tt\>$1\<\/tt\>\<\/a\>/g;
    if ($allowed) {
        $message=&Apache::lonspeller::markeduptext($message);
    }
          $message=&Apache::lontexconvert::msgtexconverted($message);           $message=&Apache::lontexconvert::msgtexconverted($message);
  if ($target ne 'tex') {   if ($target ne 'tex') {
      $r->print('<h3>'.$syllabusfields{$_}.'</h3><blockquote>'.       $r->print('<h3>'.$syllabusfields{$_}.'</h3><blockquote>'.
Line 310  ENDDOCUMENT Line 314  ENDDOCUMENT
        }         }
        if ($target ne 'tex') {$r->print('</p>');} else {$r->print('\\\\');}         if ($target ne 'tex') {$r->print('</p>');} else {$r->print('\\\\');}
     } else {      } else {
        $r->print('<p>No syllabus information provided.</p>');   if ($target ne 'tex') {$r->print('<p>');} else {$r->print('\par ');} 
    $r->print('No syllabus information provided.');
    if ($target ne 'tex') {$r->print('</p>');}
     }      }
     if ($target ne 'tex') {$r->print('</body></html>');} else {$r->print('\end{document}');}      if ($target ne 'tex') {$r->print('</body></html>');} else {$r->print('\end{document}');}
     return OK;      return OK;

Removed from v.1.35  
changed lines
  Added in v.1.38


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