END
- } else {
- $r->print(<print(<
+
+ LON-CAPA support request recorded
+
+$bodytag
+
A support request has been sent to $to
+END
+ } else {
+ $r->print(<LON-CAPA support request recorded
$bodytag
Warning: Problem with support e-mail address
-As the e-mail address provided for this LON-CAPA server ($to) does not appear to be a valid e-mail address, your support request has not been sent to the LON-CAPA support staff at your institution. Instead a copy has been sent to the LON-CAPA support team at Michigan State University.
+As the e-mail address provided for this LON-CAPA server ($to) does not appear to be a valid e-mail address, your support request has not been sent to the LON-CAPA support staff or administrator at your institution. Instead a copy has been sent to the LON-CAPA support team at Michigan State University.
END
- $to = 'helpdesk@lon-capa.org';
+ $to = 'helpdesk@lon-capa.org';
+ }
}
if (defined($ENV{'form.email'})) {
if ($ENV{'form.email'} =~ m/^[^\@]+\@[^\@]+$/) {
@@ -706,9 +768,9 @@ END
sub retrieve_instcodes {
my ($coursecodes,$codedom,$totcodes) = @_;
- my %courses = &Apache::lonnet::courseiddump($codedom,'.',1);
+ my %courses = &Apache::lonnet::courseiddump($codedom,'.',1,'.','.');
foreach my $course (keys %courses) {
- if ($courses{$course} =~ m/^[^:]*:([^:]+)$/) {
+ if ($courses{$course} =~ m/^[^:]*:([^:]+)/) {
$$coursecodes{$course} = &Apache::lonnet::unescape($1);
$totcodes ++;
}
@@ -911,18 +973,25 @@ sub recurse_list {
sub javascript_code_selections {
my ($numcats,$script_tag,$idlist,$idnums,$idlist_titles,$codetitles) = @_;
+ my $numtitles = @{$codetitles};
+ my @seltitles = ();
+ for (my $j=0; $j<$numtitles; $j++) {
+ $seltitles[$j] = 'id'.$$codetitles[$j];
+ }
+ my $seltitle_str = join('","',@seltitles);
$$script_tag .= <