Diff for /loncom/interface/lonmsgdisplay.pm between versions 1.87 and 1.88

version 1.87, 2008/06/06 17:46:15 version 1.88, 2008/06/06 22:50:41
Line 741  sub discrit { Line 741  sub discrit {
     foreach my $key (sort(keys(%what))) {      foreach my $key (sort(keys(%what))) {
         my %content=&Apache::lonmsg::unpackagemsg($what{$key});          my %content=&Apache::lonmsg::unpackagemsg($what{$key});
         next if ($content{'senderdomain'} eq '');          next if ($content{'senderdomain'} eq '');
         $result.='<hr />'.&mt('From').': <b>'.          $result .= &Apache::lonhtmlcommon::start_pick_box()
 &Apache::loncommon::aboutmewrapper(                    .&Apache::lonhtmlcommon::row_title(&mt('From'),undef,'LC_oddrow_value')
  &Apache::loncommon::plainname($content{'sendername'},$content{'senderdomain'}),$content{'sendername'},$content{'senderdomain'}).'</b> ('.                    .'<b>'.&Apache::loncommon::aboutmewrapper(
 $content{'sendername'}.':'.                     &Apache::loncommon::plainname($content{'sendername'},$content{'senderdomain'}),$content{'sendername'},$content{'senderdomain'}).'</b>'
             $content{'senderdomain'}.') '.$content{'time'}.                    .' ('.$content{'sendername'}.':'.$content{'senderdomain'}.')'
             '<br />'.&mt('Subject').': '.$content{'subject'}.                    .&Apache::lonhtmlcommon::row_closure(1)
             '<br /><pre>'.                    .&Apache::lonhtmlcommon::row_title(&mt('Date'),undef,'LC_evenrow_value')
               &Apache::lontexconvert::msgtexconverted($content{'message'}).                    .$content{'time'}
             '</pre><div class="LC_error">';                    .&Apache::lonhtmlcommon::row_closure(1)
                     .&Apache::lonhtmlcommon::row_title(&mt('Subject'),undef,'LC_oddrow_value')
                     .$content{'subject'}
                     .&Apache::lonhtmlcommon::row_closure(1)
                     .&Apache::lonhtmlcommon::row_title(&mt('Message'),undef,'LC_evenrow_value')
                     .'<pre>'.&Apache::lontexconvert::msgtexconverted($content{'message'}).'</pre>'
                     .&Apache::lonhtmlcommon::row_closure()
                     .&Apache::lonhtmlcommon::row_title('',undef,'LC_oddrow_value')
                     .'<div class="LC_warning">';
         my ($rec_button,$reprec_button);          my ($rec_button,$reprec_button);
         $rec_button = &mt('Move to Inbox');          $rec_button = &mt('Move to Inbox');
         if (!$content{'noreplies'}) {          if (!$content{'noreplies'}) {
Line 764  $content{'sendername'}.':'. Line 772  $content{'sendername'}.':'.
         } else {          } else {
             $result .= &mt('Access to other pages will be prevented until you have moved the message to your inbox.');               $result .= &mt('Access to other pages will be prevented until you have moved the message to your inbox.'); 
         }          }
         $result .= '</div><br />'.          $result .= '</div>'
             '<input type="submit" name="rec_'.$key.'" value="'.$rec_button.'" />';                    .&Apache::lonhtmlcommon::row_closure(1)
                     .&Apache::lonhtmlcommon::row_title('',undef,'LC_evenrow_value')
                     .'<input type="submit" name="rec_'.$key.'" value="'.$rec_button.'" />';
         if (!$content{'noreplies'}) {          if (!$content{'noreplies'}) {
             $result .= '<input type="submit" name="reprec_'.$key.'" '.              $result .= '<input type="submit" name="reprec_'.$key.'" '
                   'value="'.$reprec_button.'" />';                        .'value="'.$reprec_button.'" />'
         }          }
           $result .= &Apache::lonhtmlcommon::row_closure(1)
                     .&Apache::lonhtmlcommon::end_pick_box()
                     .'<br />';
     }      }
     # Check to see if there were any messages.      # Check to see if there were any messages.
     if ($result eq '') {      if ($result eq '') {

Removed from v.1.87  
changed lines
  Added in v.1.88


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