-
- 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);
}
@@ -264,10 +317,10 @@ END
}
if ($udomform eq '') {
$udomform = 'domain: ';
- $udomform .= &Apache::loncommon::select_dom_form($defdom,'udom');
+ $udomform .= &Apache::loncommon::select_dom_form($codedom,'udom');
}
if ($unameform eq '') {
- $unameform= 'username: ';
+ $unameform= 'username: ';
}
$r->print($unameform.$udomform.'
Enter the username you use to log-in to your LON-CAPA system, and choose your domain.');
}
@@ -295,7 +348,7 @@ END
- http://$server$origurl
+ $server
|
@@ -334,7 +387,7 @@ END
- Course Details:
+ | Course Details:$details_title
|
@@ -369,13 +422,28 @@ END
' | ');
for (my $i=1; $i<$numtitles; $i++) {
@@ -431,12 +499,13 @@ END
END
if ($sectionlist) {
- $r->print(" |
END
- if (defined($ENV{'user.name'})) {
+ if (defined($env{'user.name'})) {
$r->print(<
@@ -531,6 +600,7 @@ END
END
}
+
$r->print(<
@@ -567,18 +637,18 @@ END
- | |