Diff for /loncom/interface/loncreateuser.pm between versions 1.379 and 1.382

version 1.379, 2013/07/03 04:04:13 version 1.382, 2013/12/09 21:33:32
Line 988  ENDSCRIPT Line 988  ENDSCRIPT
             $r->print('</h3>');              $r->print('</h3>');
         }          }
     }      }
     $r->print('<form name="usersrchform" method="post">'.      $r->print('<form name="usersrchform" method="post" action="">'.
               &Apache::loncommon::start_data_table()."\n".                &Apache::loncommon::start_data_table()."\n".
               &Apache::loncommon::start_data_table_header_row()."\n".                &Apache::loncommon::start_data_table_header_row()."\n".
               ' <th> </th>'."\n");                ' <th> </th>'."\n");
Line 3799  sub enroll_single_student { Line 3799  sub enroll_single_student {
             $startdate,'manual',undef,$env{'request.course.id'},'',$context,              $startdate,'manual',undef,$env{'request.course.id'},'',$context,
             $credits);              $credits);
     if ($enroll_result =~ /^ok/) {      if ($enroll_result =~ /^ok/) {
         $r->print(&mt('<b>[_1]</b> enrolled',$env{'form.ccuname'}.':'.$env{'form.ccdomain'}));          $r->print(&mt('[_1] enrolled','<b>'.$env{'form.ccuname'}.':'.$env{'form.ccdomain'}.'</b>'));
         if ($env{'form.sections'} ne '') {          if ($env{'form.sections'} ne '') {
             $r->print(' '.&mt('in section [_1]',$env{'form.sections'}));              $r->print(' '.&mt('in section [_1]',$env{'form.sections'}));
         }          }
Line 4124  sub custom_role_editor { Line 4124  sub custom_role_editor {
     $r->print('<br clear="all" />');      $r->print('<br clear="all" />');
   
     $r->print(<<ENDCCF);      $r->print(<<ENDCCF);
 <form name="form1" method="post">  <form name="form1" method="post" action="">
 <input type="hidden" name="phase" value="set_custom_roles" />  <input type="hidden" name="phase" value="set_custom_roles" />
 <input type="hidden" name="rolename" value="$rolename" />  <input type="hidden" name="rolename" value="$rolename" />
 ENDCCF  ENDCCF
Line 4320  sub set_custom_role { Line 4320  sub set_custom_role {
  $env{'user.name'},   $env{'user.name'},
  $rolename,undef,undef,undef,$context));   $rolename,undef,undef,undef,$context));
     }      }
     $r->print('<p><a href="javascript:backPage(document.customresult,'."'pickrole'".')">'.&mt('Create or edit another custom role').'</a></p><form name="customresult" method="post">');      $r->print(
     $r->print(&Apache::lonhtmlcommon::echo_form_input([]).'</form>');          '<p><a href="javascript:backPage(document.customresult,'."'pickrole'".')">'
          .&mt('Create or edit another custom role')
          .'</a></p>'
          .'<form name="customresult" method="post" action="">'
          .&Apache::lonhtmlcommon::echo_form_input([]).'</form>'
       );
 }  }
   
 # ================================================================ Main Handler  # ================================================================ Main Handler
Line 4799  function updateCols(caller) { Line 4804  function updateCols(caller) {
             document.getElementById('showcolrole').disabled = 'disabled';              document.getElementById('showcolrole').disabled = 'disabled';
         }          }
         if (context == 'domain') {          if (context == 'domain') {
               var quotausageshow = 0;
             if ((document.studentform.roletype.options[document.studentform.roletype.selectedIndex].value == 'course') ||              if ((document.studentform.roletype.options[document.studentform.roletype.selectedIndex].value == 'course') ||
                 (document.studentform.roletype.options[document.studentform.roletype.selectedIndex].value == 'community')) {                  (document.studentform.roletype.options[document.studentform.roletype.selectedIndex].value == 'community')) {
                 document.getElementById('showcolstatus').checked = false;                  document.getElementById('showcolstatus').checked = false;
Line 4818  function updateCols(caller) { Line 4824  function updateCols(caller) {
                 document.getElementById('showcolextent').checked = 'false';                  document.getElementById('showcolextent').checked = 'false';
                 document.getElementById('showextent').style.display='none';                  document.getElementById('showextent').style.display='none';
                 document.getElementById('showcoltextextent').innerHTML = '';                  document.getElementById('showcoltextextent').innerHTML = '';
                   if ((document.studentform.showrole.options[document.studentform.showrole.selectedIndex].value == 'au') ||
                       (document.studentform.showrole.options[document.studentform.showrole.selectedIndex].value == 'Any')) {
                       if (document.getElementById('showcolauthorusage')) {
                           document.getElementById('showcolauthorusage').disabled = '';
                       }
                       if (document.getElementById('showcolauthorquota')) {
                           document.getElementById('showcolauthorquota').disabled = '';
                       }
                       quotausageshow = 1;
                   }
             } else {              } else {
                 document.getElementById('showextent').style.display='block';                  document.getElementById('showextent').style.display='block';
                 document.getElementById('showextent').style.textAlign='left';                  document.getElementById('showextent').style.textAlign='left';
Line 4836  function updateCols(caller) { Line 4852  function updateCols(caller) {
                     }                      }
                 }                  }
             }              }
               if (quotausageshow == 0)  {
                   if (document.getElementById('showcolauthorusage')) {
                       document.getElementById('showcolauthorusage').checked = false;
                       document.getElementById('showcolauthorusage').disabled = 'disabled';
                   }
                   if (document.getElementById('showcolauthorquota')) {
                       document.getElementById('showcolauthorquota').checked = false;
                       document.getElementById('showcolauthorquota').disabled = 'disabled';
                   }
               }
         }          }
     }      }
     return;      return;

Removed from v.1.379  
changed lines
  Added in v.1.382


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