version 1.21.4.13.2.12, 2024/08/22 20:18:08
|
version 1.71, 2023/06/04 00:06:10
|
Line 35 use Apache::lonnet;
|
Line 35 use Apache::lonnet;
|
use Apache::loncommon(); |
use Apache::loncommon(); |
use Apache::lonhtmlcommon(); |
use Apache::lonhtmlcommon(); |
use Apache::lonlocal; |
use Apache::lonlocal; |
|
use Apache::lonparmset(); |
use Apache::courseclassifier(); |
use Apache::courseclassifier(); |
use LONCAPA qw(:DEFAULT :match); |
use LONCAPA qw(:DEFAULT :match); |
use File::Copy; |
use File::Copy; |
Line 288 $jscript
|
Line 289 $jscript
|
if (grep(/^wafproxy$/,@actions)) { |
if (grep(/^wafproxy$/,@actions)) { |
$onload .= "toggleWAF();checkWAF();updateWAF();"; |
$onload .= "toggleWAF();checkWAF();updateWAF();"; |
} |
} |
|
if (grep(/^proctoring$/,@actions)) { |
|
$onload .= "toggleProctoring(document.display,'proctorio');". |
|
"toggleProctoring(document.display,'examity');"; |
|
} |
if (grep(/^scantron$/,@actions)) { |
if (grep(/^scantron$/,@actions)) { |
$onload .= "toggleScantron(document.display);"; |
$onload .= "toggleScantron(document.display);"; |
} |
} |
Line 385 $jscript
|
Line 390 $jscript
|
if (grep(/^localization$/,@actions)) { |
if (grep(/^localization$/,@actions)) { |
$onload .= "toggleTimeZone();"; |
$onload .= "toggleTimeZone();"; |
} |
} |
if (grep(/^grading$/,@actions)) { |
|
$onload .= 'toggleGrading(document.display);toggleHiddenTotalsSec(document.display);'; |
|
} |
|
if ($onload) { |
if ($onload) { |
my %loaditems = ( |
my %loaditems = ( |
'onload' => $onload, |
'onload' => $onload, |
Line 405 $jscript
|
Line 407 $jscript
|
<input type="hidden" name="pres_value" /> |
<input type="hidden" name="pres_value" /> |
</form> |
</form> |
'); |
'); |
|
if ($container) { |
|
&Apache::lonparmset::startSettingsScreen($r,$container,$crstype); |
|
} |
$r->print('<form method="post" name="'.$phase.'" action="'.$action.'"'. |
$r->print('<form method="post" name="'.$phase.'" action="'.$action.'"'. |
' enctype="multipart/form-data">'); |
' enctype="multipart/form-data">'); |
return; |
return; |
Line 569 sub print_footer {
|
Line 574 sub print_footer {
|
} |
} |
if ($phase eq 'process') { |
if ($phase eq 'process') { |
$r->print('</form>'); |
$r->print('</form>'); |
|
if ($container) { |
|
&Apache::lonparmset::endSettingsScreen($r); |
|
} |
$r->print(&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
} |
} |
return; |
return; |
Line 645 sub make_changes {
|
Line 653 sub make_changes {
|
if ($context eq 'course') { |
if ($context eq 'course') { |
$footer_text = 'Back to display/edit settings'; |
$footer_text = 'Back to display/edit settings'; |
} |
} |
$r->print('</p>'); |
|
&print_footer($r,$phase,'display',$footer_text,\@actions,$container,$parm_permission); |
&print_footer($r,$phase,'display',$footer_text,\@actions,$container,$parm_permission); |
|
$r->print('</p>'); |
return \%lastact; |
return \%lastact; |
} |
} |
|
|
Line 676 sub display_settings {
|
Line 684 sub display_settings {
|
if (ref($values) eq 'HASH') { |
if (ref($values) eq 'HASH') { |
$settings = $values->{$item}; |
$settings = $values->{$item}; |
} |
} |
if ($item eq 'usersessions') { |
if (($item eq 'usersessions') || ($item eq 'ssl')) { |
$r->print('<script type="text/javascript">'."\n". |
unless ($got_check_uncheck) { |
'// <![CDATA['."\n". |
$r->print('<script type="text/javascript">'."\n". |
&Apache::loncommon::check_uncheck_jscript()."\n". |
'// <![CDATA['."\n". |
'// ]]>'."\n". |
&Apache::loncommon::check_uncheck_jscript()."\n". |
'</script>'."\n"); |
'// ]]>'."\n". |
|
'</script>'."\n"); |
|
$got_check_uncheck = 1; |
|
} |
} elsif ($item eq 'selfcreation') { |
} elsif ($item eq 'selfcreation') { |
if (ref($values) eq 'HASH') { |
if (ref($values) eq 'HASH') { |
$settings = $values->{'usercreation'}; |
$settings = $values->{'usercreation'}; |
Line 767 sub display_settings {
|
Line 778 sub display_settings {
|
} |
} |
$r->print('</form>'); |
$r->print('</form>'); |
} |
} |
|
if ($container) { |
|
&Apache::lonparmset::endSettingsScreen($r); |
|
} |
$r->print(&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
return; |
return; |
} |
} |
Line 829 sub display_choices {
|
Line 843 sub display_choices {
|
$r->print('</div><div style="padding:0;clear:both;margin:0;border:0"></div>'); |
$r->print('</div><div style="padding:0;clear:both;margin:0;border:0"></div>'); |
$r->print(&print_footer($r,$phase,'display','Display',undef,$container,$parm_permission)); |
$r->print(&print_footer($r,$phase,'display','Display',undef,$container,$parm_permission)); |
$r->print('</form>'); |
$r->print('</form>'); |
|
if ($container) { |
|
&Apache::lonparmset::endSettingsScreen($r); |
|
} |
$r->print(&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
return; |
return; |
} |
} |