- '.&mt($item->{'header'}->[0]->{'col1'}).' |
+ '.&mt($item->{'header'}->[0]->{'col1'}).' |
'.&mt($item->{'header'}->[0]->{'col2'}).' |
';
$rowtotal ++;
@@ -852,7 +896,7 @@ sub print_config_box {
($action eq 'usermodification') || ($action eq 'defaults') || ($action eq 'coursedefaults') ||
($action eq 'selfenrollment') || ($action eq 'usersessions') || ($action eq 'ssl') ||
($action eq 'directorysrch') || ($action eq 'trust') || ($action eq 'helpsettings') ||
- ($action eq 'contacts') || ($action eq 'privacy')) {
+ ($action eq 'contacts') || ($action eq 'privacy') || ($action eq 'wafproxy')) {
$output .= $item->{'print'}->('top',$dom,$settings,\$rowtotal);
} elsif ($action eq 'passwords') {
$output .= $item->{'print'}->('top',$dom,$confname,$settings,\$rowtotal);
@@ -956,7 +1000,7 @@ sub print_config_box {
- '.&mt($item->{'header'}->[3]->{'col1'}).' |
+ '.&mt($item->{'header'}->[3]->{'col1'}).' |
'.&mt($item->{'header'}->[3]->{'col2'}).' | '."\n";
if ($action eq 'passwords') {
$output .= $item->{'print'}->('bottom',$dom,$confname,$settings,\$rowtotal);
@@ -975,7 +1019,7 @@ sub print_config_box {
$rowtotal ++;
} elsif (($action eq 'usermodification') || ($action eq 'coursedefaults') ||
($action eq 'defaults') || ($action eq 'directorysrch') ||
- ($action eq 'helpsettings')) {
+ ($action eq 'helpsettings') || ($action eq 'wafproxy')) {
$output .= $item->{'print'}->('bottom',$dom,$settings,\$rowtotal);
} elsif ($action eq 'scantron') {
$output .= $item->{'print'}->($r,'bottom',$dom,$confname,$settings,\$rowtotal);
@@ -1158,7 +1202,8 @@ sub print_config_box {
$output .= &print_quotas($dom,$settings,\$rowtotal,$action);
} elsif (($action eq 'autoenroll') || ($action eq 'autocreate') ||
($action eq 'serverstatuses') || ($action eq 'loadbalancing') ||
- ($action eq 'ltitools') || ($action eq 'lti')) {
+ ($action eq 'ltitools') || ($action eq 'lti') ||
+ ($action eq 'proctoring')) {
$output .= $item->{'print'}->($dom,$settings,\$rowtotal);
}
}
@@ -2799,6 +2844,102 @@ function toggleLTITools(form,setting,ite
ENDSCRIPT
}
+sub proctoring_javascript {
+ my ($settings) = @_;
+ my (%ordered,$total,%jstext);
+ $total = 0;
+ if (ref($settings) eq 'HASH') {
+ foreach my $item (keys(%{$settings})) {
+ if (ref($settings->{$item}) eq 'HASH') {
+ my $num = $settings->{$item}{'order'};
+ $ordered{$num} = $item;
+ }
+ }
+ $total = scalar(keys(%{$settings}));
+ } else {
+ %ordered = (
+ 0 => 'proctorio',
+ 1 => 'examity',
+ );
+ $total = 2;
+ }
+ my @jsarray = ();
+ foreach my $item (sort {$a <=> $b } (keys(%ordered))) {
+ push(@jsarray,$ordered{$item});
+ }
+ my $jstext = ' var proctors = Array('."'".join("','",@jsarray)."'".');'."\n";
+ return <<"ENDSCRIPT";
+
+
+ENDSCRIPT
+}
+
+
sub lti_javascript {
my ($settings) = @_;
my $togglejs = <i_toggle_js();
@@ -2905,7 +3046,7 @@ function toggleLTI(form,setting,item) {
}
}
}
- } else if ((setting == 'user') || (setting == 'crs') || (setting == 'passback')) {
+ } else if ((setting == 'user') || (setting == 'crs') || (setting == 'passback') || (setting == 'callback')) {
var radioname = '';
var divid = '';
if (setting == 'user') {
@@ -2914,6 +3055,9 @@ function toggleLTI(form,setting,item) {
} else if (setting == 'crs') {
radioname = 'lti_mapcrs_'+item;
divid = 'lti_crsfield_'+item;
+ } else if (setting == 'callback') {
+ radioname = 'lti_callback_'+item;
+ divid = 'lti_callbackfield_'+item;
} else {
radioname = 'lti_passback_'+item;
divid = 'lti_passback_'+item;
@@ -2923,7 +3067,7 @@ function toggleLTI(form,setting,item) {
var setvis = '';
for (var i=0; i'.
- $lt{'crs'.$item}.''.(' ' x2)."\n";
+ $lt{'crs'.$item}.' '."\n";
}
$datatable .= ''.
''.
+ 'value="'.$userfield.'" />'.
'';
foreach my $ltirole (@lticourseroles) {
my ($selected,$selectnone);
@@ -5256,7 +6044,17 @@ sub lti_options {
''.(' 'x2).
''.
+ &mt('Outcomes Extension (1.0)').''.
+ ''.
+ ''.&mt('Callback on logout').': '.
+ ''.(' 'x2).
+ ' '.
+ ''.
+ ''.&mt('Parameter').': '.
+ ''.
+ ' '.
''.
''.$lt{'topmenu'}.': '.
' ';
+ $itemcount ++;
+ }
}
}
} else {
@@ -6014,7 +6831,7 @@ sub print_passwords {
$datatable .= ''.
- ' ';
+ ' ';
}
}
my $checkedcase;
@@ -6118,7 +6935,7 @@ sub print_passwords {
&mt('(If you use the same account ... reset a password from this page.)').'
'.
&mt('Include custom text:');
if ($customurl) {
- my $link = &Apache::loncommon::modal_link($customurl,&mt('Custom text file'),600,500,
+ my $link = &Apache::loncommon::modal_link($customurl,&mt('custom text'),600,500,
undef,undef,undef,undef,'background-color:#ffffff');
$datatable .= ' '.$link.
'
| |