Diff for /loncom/interface/portfolio.pm between versions 1.106 and 1.107

version 1.106, 2006/06/20 03:02:33 version 1.107, 2006/06/20 03:13:08
Line 626  sub access_setting_table { Line 626  sub access_setting_table {
         if ($end == 0) {          if ($end == 0) {
             $pub_noend = 'checked="checked"';              $pub_noend = 'checked="checked"';
         }          }
         $pub_action = '<td><input type="checkbox" name="delete" value="'.$num.          $pub_action = '<td><label>
                       '" />'.&mt('Delete').'<br /><input type="checkbox" '.                           <input type="checkbox" name="delete" value="'.$num.
                       'name="update" value="'.$num.'" />'.&mt('Update').                        '" />'.&mt('Delete').'
                         </label> <br />
                         <label><input type="checkbox" name="update" value="'.
         $num.'" />'.&mt('Update').
         '</label>'.
                       '<input type="hidden" name="scope_'.$num.'"'.                        '<input type="hidden" name="scope_'.$num.'"'.
                       ' value="public" /></td>';                        ' value="public" /></td>';
         $pub_startdate = &Apache::lonhtmlcommon::date_setter('portform',          $pub_startdate = &Apache::lonhtmlcommon::date_setter('portform',
Line 637  sub access_setting_table { Line 641  sub access_setting_table {
         $pub_enddate = &Apache::lonhtmlcommon::date_setter('portform',          $pub_enddate = &Apache::lonhtmlcommon::date_setter('portform',
                           'enddate_'.$num,$end,undef,undef,undef,1,undef,                            'enddate_'.$num,$end,undef,undef,undef,1,undef,
                           undef,undef,1).                            undef,undef,1).
                        '&nbsp;&nbsp;<nobr><input type="checkbox" name="noend_'.                         '&nbsp;&nbsp;<nobr><label>
                        $num.'" '.$pub_noend.' />'.&mt('No end date').'</nobr>';                         <input type="checkbox" name="noend_'.
                          $num.'" '.$pub_noend.' />'.&mt('No end date').
          '</label></nobr>';
     } else {      } else {
         $pub_action = '<input type="checkbox" name="activate" value="0" />'.          $pub_action = '<label>'.
                       &mt('Activate').                '<input type="checkbox" name="activate" value="0" />'.
                         &mt('Activate').'</label>'.
                       '<input type="hidden" name="scope_0" value="public" />';                        '<input type="hidden" name="scope_0" value="public" />';
         $pub_startdate = &Apache::lonhtmlcommon::date_setter('portform',          $pub_startdate = &Apache::lonhtmlcommon::date_setter('portform',
                           'startdate_0',$now,undef,undef,undef,1,undef,                            'startdate_0',$now,undef,undef,undef,1,undef,
Line 649  sub access_setting_table { Line 656  sub access_setting_table {
         $pub_enddate = &Apache::lonhtmlcommon::date_setter('portform',          $pub_enddate = &Apache::lonhtmlcommon::date_setter('portform',
                           'enddate_0',$then,,undef,undef,undef,1,undef,                            'enddate_0',$then,,undef,undef,undef,1,undef,
                           undef,undef,1).                            undef,undef,1).
                        '&nbsp;&nbsp<nobr><input type="checkbox" '.                         '&nbsp;&nbsp<nobr><label><input type="checkbox" '.
                        'name="noend_0" />'.&mt('No end date').                         'name="noend_0" />'.&mt('No end date').
                        '</nobr>';                         '</label></nobr>';
   
     }      }
     $r->print('<td>'.$pub_action.'</td><td>'.&mt('Start: ').$pub_startdate.      $r->print('<td>'.$pub_action.'</td><td>'.&mt('Start: ').$pub_startdate.

Removed from v.1.106  
changed lines
  Added in v.1.107


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