Diff for /loncom/interface/loncreateuser.pm between versions 1.295.2.4 and 1.295.2.5

version 1.295.2.4, 2009/08/14 14:21:00 version 1.295.2.5, 2009/08/14 14:45:50
Line 246  sub build_tools_display { Line 246  sub build_tools_display {
             &Apache::lonnet::usertools_access($ccuname,$ccdomain,$item,undef,              &Apache::lonnet::usertools_access($ccuname,$ccdomain,$item,undef,
                                               $context);                                                $context);
         if ($userenv{$context.'.'.$item} eq '') {          if ($userenv{$context.'.'.$item} eq '') {
             $custom_access = 'default';              $custom_access = 
                   &mt('Availability determined currently from default setting.');
             if (!$curr_access) {              if (!$curr_access) {
                 $tool_off = 'checked="checked" ';                  $tool_off = 'checked="checked" ';
                 $tool_on = '';                  $tool_on = '';
             }              }
         } else {          } else {
             $custom_access = 'custom';              $custom_access = 
                   &mt('Availability determined currently from custom setting.');
             $cust_on = ' checked="checked" ';              $cust_on = ' checked="checked" ';
             $cust_off = '';              $cust_off = '';
             if ($userenv{$context.'.'.$item} == 0) {              if ($userenv{$context.'.'.$item} == 0) {
Line 264  sub build_tools_display { Line 266  sub build_tools_display {
                    '   <td>'.$lt{$item}.'</td>'."\n".                     '   <td>'.$lt{$item}.'</td>'."\n".
                    '  </tr>'."\n".                     '  </tr>'."\n".
                    &Apache::loncommon::start_data_table_row()."\n".                     &Apache::loncommon::start_data_table_row()."\n".
                    '  <td>'.&mt('Availability determined currently from [_1] setting.',$custom_access).                     '  <td>'.$custom_access.('&nbsp;'x5).$lt{'avai'}.': '.
                    '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$lt{'avai'}.': '.  
                    ($curr_access?&mt('Yes'):&mt('No')).'</td>'."\n".                     ($curr_access?&mt('Yes'):&mt('No')).'</td>'."\n".
                    &Apache::loncommon::end_data_table_row()."\n".                     &Apache::loncommon::end_data_table_row()."\n".
                    &Apache::loncommon::start_data_table_row()."\n".                     &Apache::loncommon::start_data_table_row()."\n".
Line 879  $lt{'hs'}: $home_server_pick Line 880  $lt{'hs'}: $home_server_pick
         } else {          } else {
             $r->print($home_server_pick);              $r->print($home_server_pick);
         }          }
           if (&Apache::lonnet::allowed('ccc',$env{'request.role.domain'})) {
               $r->print('<br /><h3>'.&mt('User Can Request Creation of Courses in this Domain?').'</h3>'.
                         &Apache::loncommon::start_data_table().
                         &build_tools_display($ccuname,$ccdomain,
                                              'requestcourses').
                         &Apache::loncommon::end_data_table());
           }
         $r->print('</div>'."\n".'<div class="LC_left_float"><h3>'.          $r->print('</div>'."\n".'<div class="LC_left_float"><h3>'.
                   $lt{'lg'}.'</h3>');                    $lt{'lg'}.'</h3>');
         my ($fixedauth,$varauth,$authmsg);           my ($fixedauth,$varauth,$authmsg); 

Removed from v.1.295.2.4  
changed lines
  Added in v.1.295.2.5


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