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

version 1.23, 2004/05/10 14:10:03 version 1.26, 2004/07/28 18:53:38
Line 42  sub handler { Line 42  sub handler {
     $r->send_http_header;      $r->send_http_header;
     return OK if $r->header_only;      return OK if $r->header_only;
     my $target=$ENV{'form.grade_target'};      my $target=$ENV{'form.grade_target'};
     &Apache::lonnet::logthis("MY TARGET IS DEFINED AS $target");  
   
   
 #    &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['previous']);  
 # ------------------------------------------------------------ Print the screen  # ------------------------------------------------------------ Print the screen
     if ($target ne 'tex') {      if ($target ne 'tex') {
  $r->print(<<ENDDOCUMENT);   $r->print(<<ENDDOCUMENT);
Line 81  ENDDOCUMENT Line 78  ENDDOCUMENT
   
 # ------------------------------------------------------------ Get Query String  # ------------------------------------------------------------ Get Query String
     &Apache::loncommon::get_unprocessed_cgi      &Apache::loncommon::get_unprocessed_cgi
                 ($ENV{'QUERY_STRING'},['forcestudent','forceedit','register']);                  ($ENV{'QUERY_STRING'},['forcestudent','forceedit','register','origpage']);
 # ----------------------------------------------------- Force menu registration  # ----------------------------------------------------- Force menu registration
     my $addentries='';      my $addentries='';
     if ($ENV{'form.register'}) {      if ($ENV{'form.register'}) {
        $addentries=' onLoad="'.&Apache::lonmenu::loadevents().         $addentries=' onLoad="'.&Apache::lonmenu::loadevents();
    '" onUnload="'.&Apache::lonmenu::unloadevents().'"';         if ($ENV{'form.origpage'}) {
              $addentries .= "document.location='#newpost';";
          }
          $addentries .= '" onUnload="'.&Apache::lonmenu::unloadevents().'"';
        $r->print(&Apache::lonmenu::registerurl(1));         $r->print(&Apache::lonmenu::registerurl(1));
       } elsif ($ENV{'form.origpage'}) {
            $addentries = "onLoad=\"document.location='#newpost';\"";
     }      }
 # --------------------------------------------------------------- Force Student  # --------------------------------------------------------------- Force Student
     my $forcestudent='';      my $forcestudent='';
Line 170  ENDDOCUMENT Line 172  ENDDOCUMENT
               $message                $message
         =~s/(https*\:\/\/[^\s]+)/\<a href=\"$1\"\>\<tt\>$1\<\/tt\>\<\/a\>/g;          =~s/(https*\:\/\/[^\s]+)/\<a href=\"$1\"\>\<tt\>$1\<\/tt\>\<\/a\>/g;
       $message=&Apache::lontexconvert::msgtexconverted($message);        $message=&Apache::lontexconvert::msgtexconverted($message);
             unless ($_ eq 'aaa_title') {        if ($allowed) {
     $message=&Apache::lonspeller::markeduptext($message);
         }
         unless ($_ eq 'aaa_title') {
  if (($_ ne 'bbb_content') || ($allowed)) {   if (($_ ne 'bbb_content') || ($allowed)) {
     if ($target ne 'tex') {      if ($target ne 'tex') {
  $r->print('<h3>'.$syllabusfields{$_}.'</h3>');   $r->print('<h3>'.$syllabusfields{$_}.'</h3>');

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


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