Diff for /loncom/interface/lonwhatsnew.pm between versions 1.46 and 1.47

version 1.46, 2006/01/06 22:50:29 version 1.47, 2006/01/06 23:56:05
Line 564  sub display_discussion_config { Line 564  sub display_discussion_config {
     if ($current eq '') {      if ($current eq '') {
         $current = 'on';          $current = 'on';
     }      }
     my %status = ( $current => 'checked="checked"');      my %opposite = ( 
                         'on' => 'off',
     $r->print('<br />'.&mt('Choose whether or not to display a count of the number of new posts for each resource or bulletin board which has unread posts.').'<br />'.&mt('This can increase the time taken to gather data for the [_1] page by a few seconds.',"<i>What's New?</i>").'&nbsp;&nbsp;');                        'off' => 'on',
                       );
       $r->print('<script type="text/javascript">
   function toggle_countunread(choice) {
       if (choice == "unchanged") {
           document.discussionswitch.command.value = "";
       }
       document.discussionswitch.submit();
   }
   </script>');
       $r->print('<br />'.&mt('Choose whether or not to display a count of the number of new posts for each resource or bulletin board which has unread posts.').'<br />'.&mt('This can increase the time taken to gather data for the [_1] page by a few seconds.',"<i>What's New?</i>").'&nbsp;&nbsp;'.&mt('Currently set to [_1].','<b>'.$current.'</b>'));
     $r->print('<br /><br />      $r->print('<br /><br />
 <form method="post" name="discussionswitch" action="/adm/whatsnew">'.  <form method="post" name="discussionswitch" action="/adm/whatsnew">
 &mt('Display of unread post counts?').'&nbsp;  
 <input type="hidden" name="command" value="newdiscconf" />  <input type="hidden" name="command" value="newdiscconf" />
 <input type="hidden" name="refpage" value="'.$refpage.'" />  <input type="hidden" name="refpage" value="'.$refpage.'" />
 <label><input type ="radio" '.$status{'on'}.' name="countunread" value="on">on</label>  <input type="hidden" name="countunread" value="'.$opposite{$current}.'" />
 &nbsp;&nbsp;&nbsp;  
 <label><input type ="radio" '.$status{'off'}.' name="countunread" value="off">off</label>  
 ');  ');
     $r->print('<br/><br />      $r->print('<br/>
                <input type="submit" name="display" value="'.                 <input type="button" name="display" value="'.
                &mt('Make changes').'" /></form>');                 &mt('Change to [_1]',$opposite{$current}).'" 
                  onclick="javascript:toggle_countunread('."'change'".')" />
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;
                  <input type="button" name="nochange" value="'.
                  &mt("No change").'" 
                  onclick="javascript:toggle_countunread('."'unchanged'".')" />
                  </form>');
     return;      return;
 }  }
   

Removed from v.1.46  
changed lines
  Added in v.1.47


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