--- loncom/interface/lonsupportreq.pm 2004/12/30 21:16:38 1.20 +++ loncom/interface/lonsupportreq.pm 2004/12/31 02:46:18 1.21 @@ -52,7 +52,11 @@ sub print_request_form { $urole = $ENV{'request.role'}; $usec = $ENV{'request.course.sec'}; $cid = $ENV{'request.course.id'}; - $server = $ENV{'SERVER_NAME'}; + if ($origurl =~ m-^http://-) { + $server = $origurl; + } else { + $server = 'http://'.$ENV{'SERVER_NAME'}.$origurl; + } my $scripttag = (<<'END'); function validate() { if (validmail(document.logproblem.email) == false) { @@ -115,6 +119,10 @@ END if (exists($ENV{'form.codedom'})) { $codedom = $ENV{'form.codedom'}; } + my $details_title; + if ($codedom) { + $details_title = '
('.$codedom.')'; + } my %coursecodes = (); my %codes = (); my @codetitles = (); @@ -298,7 +306,7 @@ END
- http://$server$origurl + $server
@@ -337,7 +345,7 @@ END -
Course Details: + Course Details:$details_title
@@ -834,7 +842,12 @@ sub print_header { ask => 'Ask helpdesk', getst => 'Getting started guide', back => 'Back to last location' - ); + ); + my ($getstartlink,$getstarttext); + if (-e $Apache::lonnet::perlvar{'lonDocRoot'}.'/adm/gettingstarted.html') { + $getstartlink = qq| $lt{'getst'}|; + $getstarttext = ' '.&mt('and the "Getting started" guide').' '; + } $r->print(<   @@ -851,8 +864,7 @@ sub print_header { - - + $getstartlink
(Login help) $lt{'login'} $helpdesk_link(Ask helpdesk) $lt{'ask'}  $lt{'getst'} $helpdesk_link(Ask helpdesk) $lt{'ask'}  (Back to last location) $lt{'back'} 
@@ -877,7 +889,7 @@ END $r->print(' '.&mt(' -Please read the "Log-in help" and "Getting started guide" if you can not log-in').'. '.&mt('If your problem is still unresolved, the form below can be used to send a question to the LON-CAPA helpdesk').'.
'.&mt('Note').': '.&mt('Student questions about course content should be directed to the course instructor').'.

+Please review the information in "Log-in help"').$getstarttext.' '.&mt('if you are unable to log-in').'. '.&mt('If your problem is still unresolved, the form below can be used to send a question to the LON-CAPA helpdesk').'.
'.&mt('Note').': '.&mt('Student questions about course content should be directed to the course instructor').'.

'); }