version 1.378, 2013/07/02 19:04:37
|
version 1.382, 2013/12/09 21:33:32
|
Line 219 END_SCRIPT
|
Line 219 END_SCRIPT
|
' <td><span class="LC_nobreak">'.$lt{'chqu'}. |
' <td><span class="LC_nobreak">'.$lt{'chqu'}. |
': <label>'. |
': <label>'. |
'<input type="radio" name="custom_'.$name.'quota" id="custom_'.$name.'quota_off" '. |
'<input type="radio" name="custom_'.$name.'quota" id="custom_'.$name.'quota_off" '. |
'value="0" '.$custom_off.' onchange="javascript:quota_changes('."'custom','$name'".')"'. |
'value="0" '.$custom_off.' onchange="javascript:quota_changes('."'custom','$name'".');"'. |
' />'.$lt{'defa'}.' ('.$defquota.' Mb).</label> '. |
' />'.$lt{'defa'}.' ('.$defquota.' Mb).</label> '. |
' <label><input type="radio" name="custom_'.$name.'quota" id="custom_'.$name.'quota_on" '. |
' <label><input type="radio" name="custom_'.$name.'quota" id="custom_'.$name.'quota_on" '. |
'value="1" '.$custom_on.' onchange="javascript:quota_changes('."'custom'".')";'. |
'value="1" '.$custom_on.' onchange="javascript:quota_changes('."'custom','$name'".');"'. |
' />'.$lt{'cust'}.':</label> '. |
' />'.$lt{'cust'}.':</label> '. |
'<input type="text" name="'.$name.'quota" size ="5" value="'. |
'<input type="text" name="'.$name.'quota" id="'.$name.'quota" size ="5" '. |
$showquota.'" onfocus="javascript:quota_changes('."'quota','$name'".')"'. |
'value="'.$showquota.'" onfocus="javascript:quota_changes('."'quota','$name'".');"'. |
' /> Mb</span></td>'."\n". |
' /> Mb</span></td>'."\n". |
&Apache::loncommon::end_data_table_row()."\n"; |
&Apache::loncommon::end_data_table_row()."\n"; |
} |
} |
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; |