-
- 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;
+ &Apache::courseclassifier::build_code_selections(\%codes,\@codetitles,\%cat_titles,\%cat_order,\%idlist,\%idnums,\%idlist_titles);
+ my ($scripttext,$longtitles) = &Apache::courseclassifier::javascript_definitions(\@codetitles,\%idlist,\%idlist_titles,\%idnums,\%cat_titles);
+ my $longtitles_str = join('","',@{$longtitles});
+ my $allidlist = $idlist{$codetitles[0]};
+ $jscript .= &Apache::courseclassifier::courseset_js_start($formname,$longtitles_str,$allidlist);
+ $jscript .= $scripttext;
+ $jscript .= &Apache::courseclassifier::javascript_code_selections($formname,@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 +354,7 @@ END
- http://$server$origurl
+ $server
|
@@ -337,7 +393,7 @@ END
- Course Details:
+ | Course Details:$details_title
|
@@ -384,6 +440,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 +505,13 @@ END
|
END
if ($sectionlist) {
- $r->print(" |
END
- if (defined($ENV{'user.name'})) {
+ if (defined($env{'user.name'})) {
$r->print(<
@@ -544,6 +606,7 @@ END
END
}
+
$r->print(<
@@ -580,18 +643,18 @@ END
- | |