version 1.449, 2018/03/23 01:01:21
|
version 1.450, 2018/12/08 18:30:15
|
Line 1484 ENDAUTH
|
Line 1484 ENDAUTH
|
$inst_results{$ccuname.':'.$ccdomain})); |
$inst_results{$ccuname.':'.$ccdomain})); |
if ((&Apache::lonnet::allowed('ccc',$env{'request.role.domain'})) || |
if ((&Apache::lonnet::allowed('ccc',$env{'request.role.domain'})) || |
(&Apache::lonnet::allowed('udp',$env{'request.role.domain'}))) { |
(&Apache::lonnet::allowed('udp',$env{'request.role.domain'}))) { |
$r->print('<br /><h3>'.&mt('User Can Request Creation of Courses/Communities in this Domain?').'</h3>'. |
$r->print('<br /><h3>'.&mt('User Can Request Creation of Courses/Communities in this Domain?').'</h3>'."\n"); |
&Apache::loncommon::start_data_table()); |
if (($env{'request.role.domain'} eq $ccdomain) || |
if ($env{'request.role.domain'} eq $ccdomain) { |
(&Apache::lonnet::will_trust('reqcrs',$ccdomain,$env{'request.role.domain'}))) { |
$r->print(&build_tools_display($ccuname,$ccdomain,'requestcourses')); |
$r->print(&Apache::loncommon::start_data_table()); |
} else { |
if ($env{'request.role.domain'} eq $ccdomain) { |
if (&Apache::lonnet::will_trust('reqcrs',$ccdomain,$env{'request.role.domain'})) { |
$r->print(&build_tools_display($ccuname,$ccdomain,'requestcourses')); |
|
} else { |
$r->print(&coursereq_externaluser($ccuname,$ccdomain, |
$r->print(&coursereq_externaluser($ccuname,$ccdomain, |
$env{'request.role.domain'})); |
$env{'request.role.domain'})); |
} |
} |
|
$r->print(&Apache::loncommon::end_data_table()); |
|
} else { |
|
$r->print(&mt('Domain configuration for this domain prohibits course creation by users from domain: "[_1]"', |
|
&Apache::lonnet::domain($ccdomain,'description'))); |
} |
} |
$r->print(&Apache::loncommon::end_data_table()); |
|
} |
} |
$r->print('</div>'); |
$r->print('</div>'); |
my @order = ('auth','quota','tools','requestauthor'); |
my @order = ('auth','quota','tools','requestauthor'); |