Diff for /loncom/interface/lonbulletin.pm between versions 1.11 and 1.17

version 1.11, 2003/07/10 10:53:18 version 1.17, 2003/09/29 16:09:20
Line 33  use Apache::Constants qw(:common); Line 33  use Apache::Constants qw(:common);
 use Apache::loncommon;  use Apache::loncommon;
 use Apache::lonnet;  use Apache::lonnet;
 use Apache::lontexconvert;  use Apache::lontexconvert;
 use Apache::lonxml;  
 use Apache::lonfeedback;  use Apache::lonfeedback;
   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 66  ENDDOCUMENT Line 66  ENDDOCUMENT
     my $crs = $ENV{'course.'.$ENV{'request.course.id'}.'.num'};      my $crs = $ENV{'course.'.$ENV{'request.course.id'}.'.num'};
   
 # --------------------------------------------------------- The syllabus fields  # --------------------------------------------------------- The syllabus fields
     my %syllabusfields=(      my %syllabusfields=&Apache::lonlocal::texthash(
        'aaa_title'         => 'Topic',         'aaa_title'         => 'Topic',
        'bbb_content'       => 'Task',         'bbb_content'       => 'Task',
        'ccc_webreferences' => 'Web References');         'ccc_webreferences' => 'Web References');
Line 93  ENDDOCUMENT Line 93  ENDDOCUMENT
             ("Bulletin Board/Discussion",$forcestudent,$addentries,'',$dom,              ("Bulletin Board/Discussion",$forcestudent,$addentries,'',$dom,
              $ENV{'form.register'}));               $ENV{'form.register'}));
   
     my $allowed=&Apache::lonnet::allowed('srm',$ENV{'request.course.id'});      my $allowed=&Apache::lonnet::allowed('mdc',$ENV{'request.course.id'});
   
        if ($forcestudent) { $allowed=0; }         if ($forcestudent) { $allowed=0; }
     
Line 174  ENDDOCUMENT Line 174  ENDDOCUMENT
     } else {      } else {
        $r->print('<p>No page information provided.</p>');         $r->print('<p>No page information provided.</p>');
     }      }
     $r->print(&Apache::lonxml::xmlend(1,'bulletin___'.$marker.'___'.      $r->print(&Apache::lonfeedback::list_discussion
              'adm/wrapper'.$r->uri).'</body></html>');        ('board','OPEN','bulletin___'.$marker.'___'.
          'adm/wrapper'.$r->uri).'</body></html>');
     return OK;      return OK;
 }   } 
   

Removed from v.1.11  
changed lines
  Added in v.1.17


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