Diff for /loncom/interface/lonmsgdisplay.pm between versions 1.100 and 1.102

version 1.100, 2008/12/05 19:38:32 version 1.102, 2008/12/11 14:55:15
Line 1108  ENDDISHEADER Line 1108  ENDDISHEADER
     }      }
             my $localsenttime = &Apache::lonlocal::locallocaltime($sendtime);              my $localsenttime = &Apache::lonlocal::locallocaltime($sendtime);
             my $count = $n +1;              my $count = $n +1;
     $r->print('<td align="right"><nobr>'.(($status eq 'new')?'<b>':'').      $r->print('<td align="right"><span class="LC_nobreak">'.(($status eq 'new')?'<b>':'').
                       $count.'.'.(($status eq 'new')?'</b>':'').'&nbsp;'.                        $count.'.'.(($status eq 'new')?'</b>':'').'&nbsp;'.
                       '<input type="checkbox" name="delmark"'.                         '<input type="checkbox" name="delmark"'. 
                       ' value="'.$origID.'" /></nobr></td>');                        ' value="'.$origID.'" /></span></td>');
             foreach my $item ($localsenttime,$dis_name,$dis_domain,$shortsubj) {              foreach my $item ($localsenttime,$dis_name,$dis_domain,$shortsubj) {
                 $r->print('<td>'.(($status eq 'new')?'<b>':'').                  $r->print('<td>'.(($status eq 'new')?'<b>':'').
                           '<a href="/adm/email?display='.$origID.$sqs.'">'.                            '<a href="/adm/email?display='.$origID.$sqs.'">'.
Line 2263  sub displaymessage { Line 2263  sub displaymessage {
 # start output  # start output
     &printheader($r,'/adm/email?display='.&escape($msgid),'Display a Message','',$content{'baseurl'});      &printheader($r,'/adm/email?display='.&escape($msgid),'Display a Message','',$content{'baseurl'});
     my %courseinfo=&Apache::lonnet::coursedescription($content{'courseid'});      my %courseinfo=&Apache::lonnet::coursedescription($content{'courseid'});
 # Functions  
     $r->print('<table border="2" width="100%"><tr bgcolor="#FFFFAA"><td>'.&mt('Functions').':</td>');  # Functions and Actions
       my $li_start='<span class="LC_nobreak">&bull; ';
       my $li_end='</span> ';
   
   # Prepare available functions
       my $functionlist='';
     if (!$content{'noreplies'}) {      if (!$content{'noreplies'}) {
         $r->print('<td><a href="/adm/email?replyto='.&escape($msgid).$sqs.          $functionlist.=$li_start
           '"><b>'.&mt('Reply').'</b></a></td>');                       .'<a href="/adm/email?replyto='.&escape($msgid).$sqs.'">'
     }                       .&mt('Reply')
     $r->print('<td><a href="/adm/email?forward='.&escape($msgid).$sqs.                       .'</a>'
       '"><b>'.&mt('Forward').'</b></a></td>'.                       .$li_end;
       '<td><a href="/adm/email?markunread='.&escape($msgid).$sqs.      }
       '"><b>'.&mt('Mark Unread').'</b></a></td>'.      $functionlist.=$li_start
       '<td><a href="/adm/email?markdel='.&escape($msgid).$sqs.                    .'<a href="/adm/email?forward='.&escape($msgid).$sqs.'">'
       '"><b>'.&mt('Delete').'</b></a></td>'.                    .&mt('Forward')
       '<td><a href="/adm/email?'.$sqs.                    .'</a>'
       '"><b>'.&mt('Back to Folder Display').'</b></a></td>');                    .$li_end;
       $functionlist.=$li_start
                     .'<a href="/adm/email?markunread='.&escape($msgid).$sqs.'">'
                     .&mt('Mark Unread')
                     .'</a>'
                     .$li_end;
       $functionlist.=$li_start
                     .'<a href="/adm/email?markdel='.&escape($msgid).$sqs.'">'
                     .&mt('Delete')
                     .'</a>'
                     .$li_end;
       $functionlist.=$li_start
                     .'<a href="/adm/email?'.$sqs.'">'
                     .&mt('Back to Folder Display')
                     .'</a>'
                     .$li_end;
     if ($counter > 0){      if ($counter > 0){
  $r->print('<td><a href="/adm/email?display='.$messages[$counter-1]->[5].$sqs.          $functionlist.=$li_start
   '"><b>'.&mt('Previous').'</b></a></td>');                .'<a href="/adm/email?display='.$messages[$counter-1]->[5].$sqs.'">'
                 .&mt('Previous')
                 .'</a>'
                 .$li_end;
     }      }
     if ($counter < $number_of_messages - 1){      if ($counter < $number_of_messages - 1){
  $r->print('<td><a href="/adm/email?display='.$messages[$counter+1]->[5].$sqs.          $functionlist.=$li_start
   '"><b>'.&mt('Next').'</b></a></td>');                .'<a href="/adm/email?display='.$messages[$counter+1]->[5].$sqs.'">'
     }                .&mt('Next')
     $r->print('</tr></table>');                .'</a>'
                 .$li_end;
       }
   # Print functions
       $r->print('<div>'
                .'<fieldset>'
                .'<legend>'
                .&mt('Functions')
                .'</legend>'
                .$functionlist
                .'</fieldset>'
                .'</div>'
       );
   
   # Prepare available actions
     my $symb;      my $symb;
     if (defined($content{'symb'})) {      if (defined($content{'symb'})) {
         $symb = $content{'symb'};          $symb = $content{'symb'};
Line 2294  sub displaymessage { Line 2331  sub displaymessage {
     }      }
     if ($env{'user.adv'}) {      if ($env{'user.adv'}) {
         my $actionlist='';          my $actionlist='';
   
  if (&Apache::lonnet::allowed('vgr',$env{'request.course.id'})) {   if (&Apache::lonnet::allowed('vgr',$env{'request.course.id'})) {
  $actionlist.='<td><b>'   $actionlist.=$li_start
                             .&Apache::loncommon::track_student_link(                              .&Apache::loncommon::track_student_link(
                                  &mt('View recent activity'),$content{'sendername'},$content{'senderdomain'},'check')                                   &mt('View recent activity'),$content{'sendername'},$content{'senderdomain'},'check')
                             .'</b></td>';                              .$li_end;
  }   }
  if (&Apache::lonnet::allowed('opa',$env{'request.course.id'}) && $symb) {   if (&Apache::lonnet::allowed('opa',$env{'request.course.id'}) && $symb) {
     $actionlist.='<td><b>'      $actionlist.=$li_start
                         .&Apache::loncommon::pprmlink(                          .&Apache::loncommon::pprmlink(
                              &mt('Set/Change parameters'),$content{'sendername'},$content{'senderdomain'},$symb,'check')                               &mt('Set/Change parameters'),$content{'sendername'},$content{'senderdomain'},$symb,'check')
                         .'</b></td>';                          .$li_end;
  }   }
  if (&Apache::lonnet::allowed('mgr',$env{'request.course.id'}) && $symb) {   if (&Apache::lonnet::allowed('mgr',$env{'request.course.id'}) && $symb) {
     $actionlist.='<td><b>'      $actionlist.=$li_start
                        .&Apache::loncommon::pgrdlink(                         .&Apache::loncommon::pgrdlink(
                             &mt('Set/Change grades'),$content{'sendername'},$content{'senderdomain'},$symb,'check')                              &mt('Set/Change grades'),$content{'sendername'},$content{'senderdomain'},$symb,'check')
                        .'</b></td>';                         .$li_end;
  }   }
   
   # Print actions
         if ($actionlist) {          if ($actionlist) {
             $r->print('<table border="2" width="100%">'              $r->print('<div>'
                      .'<tr bgcolor="#FFAAAA"><td>'                       .'<fieldset>'
                        .'<legend>'
                      .&mt('Currently available actions (will open extra window):')                       .&mt('Currently available actions (will open extra window):')
                      .'</td>'                       .'</legend>'
                      .$actionlist                       .$actionlist
                      .'</tr></table>');                       .'</fieldset>'
                        .'</div>'
               );
         }          }
     }      }
   
     my ($tonum,$tolist,$cclist,$bcclist,$groupcclist,%recipients);      my ($tonum,$tolist,$cclist,$bcclist,$groupcclist,%recipients);
     if ($content{'recipid'}) {      if ($content{'recipid'}) {
         $tonum = &retrieve_recips('display',\%content,\%recipients);          $tonum = &retrieve_recips('display',\%content,\%recipients);

Removed from v.1.100  
changed lines
  Added in v.1.102


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