-
- LON-CAPA support request
-
-
-$bodytag
-ENDHEAD
+ $format_reply = &Apache::lonnet::auto_instcode_format($caller,$codedom,\%coursecodes,\%codes,\@codetitles,\%cat_titles,\%cat_order);
+ if ($format_reply eq 'ok') {
+ my $numtypes = @codetitles;
+ &build_code_selections(\%codes,\@codetitles,\%cat_titles,\%cat_order,\%idlist,\%idnums,\%idlist_titles);
+ &javascript_code_selections($formname,$numtypes,\%cat_titles,\$jscript,\%idlist,\%idnums,\%idlist_titles,\@codetitles);
+ $loaditems = '';
+ }
+ }
+ }
+
+ my $js = '';
+ my %add_entries = (topmargin => "0",
+ marginheight => "0",
+ onLoad =>"initialize_codes()",);
+
+ my $start_page =
+ &Apache::loncommon::start_page('Support Request',$js,
+ { 'function' => $function,
+ 'add_entries' => \%add_entries,
+ 'only_body' => 1,});
+ $r->print($start_page);
+
if ($r->uri eq '/adm/helpdesk') {
&print_header($r,$origurl);
}
@@ -298,7 +348,7 @@ END
- http://$server$origurl
+ $server
|
@@ -337,7 +387,7 @@ END
- Course Details:
+ | Course Details:$details_title
|
@@ -384,6 +434,11 @@ END
} else {
$longitems[0] = $idlist_titles{$codetitles[0]};
}
+ for (my $i=0; $i<@longitems; $i++) {
+ if ($longitems[$i] eq '') {
+ $longitems[$i] = $items[$i];
+ }
+ }
} else {
@longitems = @items;
}
@@ -444,12 +499,13 @@ END
|
END
if ($sectionlist) {
- $r->print(" |
END
- if (defined($ENV{'user.name'})) {
+ if (defined($env{'user.name'})) {
$r->print(<
@@ -544,6 +600,7 @@ END
END
}
+
$r->print(<
@@ -580,18 +637,18 @@ END
- | |