Diff for /rat/lonpageflip.pm between versions 1.81 and 1.83

version 1.81, 2013/05/10 12:49:39 version 1.83, 2013/11/28 02:23:25
Line 432  sub handler { Line 432  sub handler {
      'explain' =>       'explain' =>
      'You have reached the end of the sequence of materials.',       'You have reached the end of the sequence of materials.',
      'back' => 'Go Back',       'back' => 'Go Back',
      'nav' => 'Navigate Course Content',       'nav' => 'Course Contents',
      'wherenext' =>       'wherenext' =>
      'There are several possibilities of where to go next',       'There are several possibilities of where to go next',
      'pick' =>       'pick' =>
      'Please click on the the resource you intend to access',       'Please click on the the resource you intend to access',
      'titleheader' => 'Title',       'titleheader' => 'Title',
      'type' => 'Type');       'type' => 'Type');
                     if (&Apache::loncommon::course_type() eq 'Community') {
                         $lt{'nav'} = &mt('Community Contents');
                     }
                   if ($#possibilities>0) {                    if ($#possibilities>0) {
       my $start_page=        my $start_page=
   &Apache::loncommon::start_page('Multiple Resources');    &Apache::loncommon::start_page('Multiple Resources');
Line 464  ENDSTART Line 467  ENDSTART
                      }                       }
                      $r->print('</table>');                       $r->print('</table>');
                   } else {                    } else {
       my $start_page=                        $r->print(
   &Apache::loncommon::start_page('No Resource');                            &Apache::loncommon::start_page('No Resource')
       $r->print(<<ENDNONE);                           .'<h2>'.$lt{'title'}.'</h2>'
 $start_page                           .'<p>'.$lt{'explain'}.'</p>');
 <h3>$lt{'title'}</h3>                    }
 <p>$lt{'explain'}</p>                    $r->print(
 ENDNONE                        &Apache::lonhtmlcommon::actionbox(
   }                            ['<a href="/adm/flip?postdata=return:">'.$lt{'back'}.'</a></li>',
   $r->print(<<ENDMENU);                             '<a href="/adm/navmaps">'.$lt{'nav'}.'</a></li>'
 <ul>                            ])
 <li><a href="/adm/flip?postdata=return:">$lt{'back'}</a></li>                       .&Apache::loncommon::end_page());
 <li><a href="/adm/navmaps">$lt{'nav'}</a></li>  
 </ul>  
 ENDMENU  
                   $r->print(&Apache::loncommon::end_page());  
                   return OK;                    return OK;
       }        }
   } else {    } else {

Removed from v.1.81  
changed lines
  Added in v.1.83


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