Diff for /loncom/interface/lontrackstudent.pm between versions 1.27 and 1.30

version 1.27, 2009/03/26 16:30:58 version 1.30, 2009/08/28 22:47:07
Line 119  sub get_data { Line 119  sub get_data {
  $text = 'View more activity by this student';   $text = 'View more activity by this student';
  $inc  = $num_records;   $inc  = $num_records;
  $r->print(&Apache::loncommon::track_student_link($text,$sname,$sdom,undef,   $r->print(&Apache::loncommon::track_student_link($text,$sname,$sdom,undef,
  ($env{'form.start'}+$inc)   ($env{'form.start'}+$inc),
                                                            $env{'form.only_body'}
  ));   ));
  $r->print('<br />');   $r->print('<br />');
     }      }
     $r->print('<hr />');      $r->print('<hr />');
     $text = 'Resubmit last request to check for newer data';      $text = 'Resubmit last request to check for newer data';
     $r->print(&Apache::loncommon::track_student_link($text,$sname,$sdom,undef,      $r->print(&Apache::loncommon::track_student_link($text,$sname,$sdom,undef,
      $env{'form.start'}));       $env{'form.start'},
                                                        $env{'form.only_body'}));
   
     &Apache::lonhtmlcommon::Update_PrgWin($r,$prog_state,&mt('Finished!'));      &Apache::lonhtmlcommon::Update_PrgWin($r,$prog_state,&mt('Finished!'));
     return;      return;
Line 554  sub handler { Line 556  sub handler {
     #      #
     # Extract form elements from query string      # Extract form elements from query string
     &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},      &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},
                                             ['selected_student','start']);                        ['selected_student','start','only_body']);
     #      #
     # We will almost always need this...      # We will almost always need this...
     my $navmap = Apache::lonnavmaps::navmap->new();      my $navmap = Apache::lonnavmaps::navmap->new();
Line 572  sub handler { Line 574  sub handler {
                                             bug=>'instructor interface'});                                              bug=>'instructor interface'});
     #      #
     # Give the LON-CAPA page header      # Give the LON-CAPA page header
     $r->print(&Apache::loncommon::start_page('Student Activity',&styles()).      my $args;
       if ($env{'form.only_body'}) {
           $args = { only_body => 1, };
       }
       $r->print(&Apache::loncommon::start_page('Student Activity',&styles(),$args).
               &Apache::lonhtmlcommon::breadcrumbs('Student Activity'));                &Apache::lonhtmlcommon::breadcrumbs('Student Activity'));
     $r->rflush();      $r->rflush();
     #      #
Line 580  sub handler { Line 586  sub handler {
     $r->print('<form name="trackstudent" method="post" action="/adm/trackstudent">');      $r->print('<form name="trackstudent" method="post" action="/adm/trackstudent">');
     $r->print('<br />');      $r->print('<br />');
     $r->print('<div name="statusline">'.      $r->print('<div name="statusline">'.
               &mt('Status:[_1]',                &mt('Status: [_1]',
                   '<input type="text" name="status" size="60" value="" />').                    '<input type="text" name="status" size="60" value="" readonly="readonly" />').
               '</div>');                '</div>');
     $r->rflush();      $r->rflush();
     my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin      my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin
Line 600  sub handler { Line 606  sub handler {
         if ($sname =~ /^$LONCAPA::username_re$/           if ($sname =~ /^$LONCAPA::username_re$/ 
     && $sdom =~ /^$LONCAPA::domain_re$/) {      && $sdom =~ /^$LONCAPA::domain_re$/) {
             $r->print('<h2>'.              $r->print('<h2>'.
                       &mt('Recent activity of [_1]:[_2]',$sname,$sdom).                        &mt('Recent activity of [_1]',$sname.':'.$sdom).
                       '</h2>');                        '</h2>');
             $r->print('<p class="LC_info">'              $r->print('<p class="LC_info">'
                      .&mt('Compiling student activity data can take a long time.'                       .&mt('Compiling student activity data can take a long time.'

Removed from v.1.27  
changed lines
  Added in v.1.30


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