Diff for /loncom/interface/lonsyllabus.pm between versions 1.23 and 1.26

version 1.23, 2003/09/17 19:45:39 version 1.26, 2004/01/15 04:46:36
Line 39  use Apache::lonlocal; Line 39  use Apache::lonlocal;
   
 sub handler {  sub handler {
     my $r = shift;      my $r = shift;
     $r->content_type('text/html');      &Apache::loncommon::content_type($r,'text/html');
     $r->send_http_header;      $r->send_http_header;
     return OK if $r->header_only;      return OK if $r->header_only;
   
Line 176  ENDDOCUMENT Line 176  ENDDOCUMENT
 # ---------------------------------------------------------------- Get syllabus  # ---------------------------------------------------------------- Get syllabus
     if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) {      if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) {
        my $lastmod=$syllabus{'uploaded.lastmodified'};         my $lastmod=$syllabus{'uploaded.lastmodified'};
        $lastmod=($lastmod?localtime($lastmod):'never');         $lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never'));
          my $who = &Apache::loncommon::aboutmewrapper(
        $r->print('<table><tr><td>'.&mt('Uploaded').':</td><td>'.                      &Apache::loncommon::plainname($syllabus{'uploaded.name'},
  &Apache::loncommon::aboutmewrapper(  
  &Apache::loncommon::plainname($syllabus{'uploaded.name'},  
                      $syllabus{'uploaded.domain'}),$syllabus{'uploaded.name'},                       $syllabus{'uploaded.domain'}),$syllabus{'uploaded.name'},
                      $syllabus{'uploaded.domain'}).                       $syllabus{'uploaded.domain'});
  '</td></tr><tr><td>Last updated:</td><td>'.         $r->print('<table><tr><td>'.&mt('Last updated').':</td><td>'.
                      $lastmod.   $lastmod.'</td><td>'.&mt('by').' '.$who.
                      '</td></tr></table><p>');   '</td></tr></table><p>');
        if ($allowed) {         if ($allowed) {
    $r->print('<form method="post">');     $r->print('<form method="post">');
        }         }

Removed from v.1.23  
changed lines
  Added in v.1.26


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