version 1.44, 2007/09/05 05:46:19
|
version 1.50, 2008/10/01 17:47:06
|
Line 99 sub print_request_form {
|
Line 99 sub print_request_form {
|
rdes => 'You must include a description', |
rdes => 'You must include a description', |
name => 'Name', |
name => 'Name', |
subm => 'Submit Request', |
subm => 'Submit Request', |
emad => 'E-mail address', |
emad => 'Your e-mail address', |
|
emac => 'Cc', |
unme => 'username', |
unme => 'username', |
doma => 'domain', |
doma => 'domain', |
entu => 'Enter the username you use to log-in to LON-CAPA', |
entu => 'Enter the username you use to log-in to LON-CAPA', |
Line 171 END
|
Line 172 END
|
my ($sec,$grp) = split(/:/,$section); |
my ($sec,$grp) = split(/:/,$section); |
$groupid{$sec} = $grp; |
$groupid{$sec} = $grp; |
} |
} |
my $codedom = $Apache::lonnet::perlvar{'lonDefDomain'}; |
|
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['codedom']); |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['codedom']); |
if (exists($env{'form.codedom'})) { |
my $codedom = &get_domain(); |
$codedom = $env{'form.codedom'}; |
|
} |
|
my $details_title; |
my $details_title; |
if ($codedom) { |
if ($codedom) { |
$details_title = '<br />('.$codedom.')'; |
$details_title = '<br />('.$codedom.')'; |
Line 197 function initialize_codes() {
|
Line 195 function initialize_codes() {
|
return; |
return; |
} |
} |
|; |
|; |
if ($cdom) { |
|
$codedom = $cdom; |
|
} |
|
if ($cnum) { |
if ($cnum) { |
$coursecodes{$cnum} = $ccode; |
$coursecodes{$cnum} = $ccode; |
if ($ccode eq '') { |
if ($ccode eq '') { |
Line 243 function initialize_codes() {
|
Line 238 function initialize_codes() {
|
if ($r->uri eq '/adm/helpdesk') { |
if ($r->uri eq '/adm/helpdesk') { |
&print_header($r,$origurl); |
&print_header($r,$origurl); |
} |
} |
|
my @css = ('LC_evenrow_value','LC_oddrow_value'); |
|
my $num = 1; |
|
my $i = $num%2; |
$r->print('<form method="post" name="logproblem" enctype="multipart/form-data">'."\n"); |
$r->print('<form method="post" name="logproblem" enctype="multipart/form-data">'."\n"); |
my $output = &Apache::lonhtmlcommon::start_pick_box(). |
my $output = &Apache::lonhtmlcommon::start_pick_box(). |
&Apache::lonhtmlcommon::row_title($lt{'name'},undef,'LC_oddrow_value')."\n"; |
&Apache::lonhtmlcommon::row_title($lt{'name'},undef,$css[$num])."\n"; |
my $fullname = ''; |
my $fullname = ''; |
if ((defined($lastname) && $lastname ne '') && (defined($firstname) && $firstname ne '')) { |
if ((defined($lastname) && $lastname ne '') && (defined($firstname) && $firstname ne '')) { |
$fullname = "$firstname $lastname"; |
$fullname = "$firstname $lastname"; |
Line 259 function initialize_codes() {
|
Line 257 function initialize_codes() {
|
$output .= '<input type="text" size="20" name="username" value="'.&HTML::Entities::encode($fullname,'"<>&').'" />'; |
$output .= '<input type="text" size="20" name="username" value="'.&HTML::Entities::encode($fullname,'"<>&').'" />'; |
} |
} |
$output .= ' <input type="button" value="'.$lt{'subm'}.'" onclick="validate()" /> '. |
$output .= ' <input type="button" value="'.$lt{'subm'}.'" onclick="validate()" /> '. |
&Apache::lonhtmlcommon::row_closure()."\n". |
&Apache::lonhtmlcommon::row_closure()."\n"; |
&Apache::lonhtmlcommon::row_title($lt{'emad'},undef,'LC_evenrow_value'). |
$num ++; |
'<input type="text" size="20" name="email" value="'. |
$i = $num%2; |
&HTML::Entities::encode($email,'"<>&').'" /><br />'."\n". |
$output .= &Apache::lonhtmlcommon::row_title($lt{'emad'},undef,$css[$i]). |
&Apache::lonhtmlcommon::row_closure(). |
'<input type="text" size="20" name="email" value="'. |
&Apache::lonhtmlcommon::row_title("$lt{'unme'}/$lt{'doma'}",undef,'LC_oddrow_value'); |
&HTML::Entities::encode($email,'"<>&').'" /><br />'."\n". |
|
&Apache::lonhtmlcommon::row_closure(); |
|
$num ++; |
|
$i = $num%2; |
|
if (defined($env{'user.name'})) { |
|
$output .= &Apache::lonhtmlcommon::row_title($lt{'emac'},undef,$css[$i]). |
|
'<input type="text" size="50" name="cc" value="" /><br />'."\n". |
|
&Apache::lonhtmlcommon::row_closure(); |
|
$num ++; |
|
$i = $num%2; |
|
} |
|
$output .= &Apache::lonhtmlcommon::row_title("$lt{'unme'}/$lt{'doma'}",undef,$css[$i]); |
my $udom_input = '<input type="hidden" name="udom" value="'. |
my $udom_input = '<input type="hidden" name="udom" value="'. |
&HTML::Entities::encode($udom,'"<>&').'" />'; |
&HTML::Entities::encode($udom,'"<>&').'" />'; |
my $uname_input = '<input type="hidden" name="uname" value="'. |
my $uname_input = '<input type="hidden" name="uname" value="'. |
Line 296 function initialize_codes() {
|
Line 305 function initialize_codes() {
|
} |
} |
$output .= $unameform.$udomform; |
$output .= $unameform.$udomform; |
} |
} |
$output .= &Apache::lonhtmlcommon::row_closure(). |
$output .= &Apache::lonhtmlcommon::row_closure(); |
&Apache::lonhtmlcommon::row_title("$lt{'urlp'}",undef,'LC_evenrow_value'). |
$num ++; |
|
$i = $num%2; |
|
$output .= &Apache::lonhtmlcommon::row_title("$lt{'urlp'}",undef,$css[$i]). |
$showserver.'<input type="hidden" name="sourceurl" value="'. |
$showserver.'<input type="hidden" name="sourceurl" value="'. |
&HTML::Entities::encode($server,'"<>&').'" />'. |
&HTML::Entities::encode($server,'"<>&').'" />'. |
&Apache::lonhtmlcommon::row_closure(). |
&Apache::lonhtmlcommon::row_closure(). |
&Apache::lonhtmlcommon::row_title("$lt{'phon'}",undef,'LC_oddrow_value'). |
&Apache::lonhtmlcommon::row_title("$lt{'phon'}",undef,'LC_evenrow_value'). |
'<input type="text" size="15" name="phone" /><br />'. |
'<input type="text" size="15" name="phone" /><br />'. |
&Apache::lonhtmlcommon::row_closure(). |
&Apache::lonhtmlcommon::row_closure(); |
&Apache::lonhtmlcommon::row_title("$lt{'crsd'}$details_title",undef,'LC_evenrow_value'); |
$num ++; |
if ($cnum) { |
$i = $num%2; |
|
$output .= &Apache::lonhtmlcommon::row_title("$lt{'crsd'}$details_title",undef,$css[$i]); |
|
if ($cnum) { |
if ($coursecodes{$cnum}) { |
if ($coursecodes{$cnum}) { |
foreach my $item (@codetitles) { |
foreach my $item (@codetitles) { |
$output .= '<i>'.$item.'</i>: '.$codes{$cnum}{$item}.'; '; |
$output .= '<i>'.$item.'</i>: '.$codes{$cnum}{$item}.'; '; |
Line 382 function initialize_codes() {
|
Line 395 function initialize_codes() {
|
$output .= '<br />'.$lt{'enct'}.': |
$output .= '<br />'.$lt{'enct'}.': |
<input type="text" name="title" size="25" value="" />'."\n"; |
<input type="text" name="title" size="25" value="" />'."\n"; |
} |
} |
$output .= &Apache::lonhtmlcommon::row_closure(). |
$output .= &Apache::lonhtmlcommon::row_closure(); |
&Apache::lonhtmlcommon::row_title($lt{'secn'},undef,'LC_oddrow_value'); |
$num ++; |
|
$i = $num%2; |
|
$output .= &Apache::lonhtmlcommon::row_title($lt{'secn'},undef,$css[$i]); |
if ($sectionlist) { |
if ($sectionlist) { |
$output .= "<select name=\"section\"\n>". |
$output .= "<select name=\"section\"\n>". |
" <option value=\"\" selected=\"selected\">$lt{'sele'}</option>\n"; |
" <option value=\"\" selected=\"selected\">$lt{'sele'}</option>\n"; |
Line 402 function initialize_codes() {
|
Line 417 function initialize_codes() {
|
} else { |
} else { |
$output .= '<input type="text" name="section" size="10" />'; |
$output .= '<input type="text" name="section" size="10" />'; |
} |
} |
$output .= &Apache::lonhtmlcommon::row_closure(). |
$output .= &Apache::lonhtmlcommon::row_closure(); |
&Apache::lonhtmlcommon::row_title($lt{'subj'},undef,'LC_evenrow_value'). |
$num ++; |
|
$i = $num%2; |
|
$output .= &Apache::lonhtmlcommon::row_title($lt{'subj'},undef,'LC_oddrow_value'). |
' <input type="text" size="40" name="subject" />'."\n". |
' <input type="text" size="40" name="subject" />'."\n". |
&Apache::lonhtmlcommon::row_closure(). |
&Apache::lonhtmlcommon::row_closure(). |
&Apache::lonhtmlcommon::row_title($lt{'detd'},undef,'LC_oddrow_value'). |
&Apache::lonhtmlcommon::row_title($lt{'detd'},undef,'LC_evenrow_value'). |
' <textarea rows="10" cols="45" name="description" wrap="virtual"></textarea>'. |
' <textarea rows="10" cols="45" name="description" wrap="virtual"></textarea>'. |
&Apache::lonhtmlcommon::row_closure(); |
&Apache::lonhtmlcommon::row_closure(); |
my $lastrow = 'LC_evenrow_value'; |
$num ++; |
|
$i = $num%2; |
if (defined($env{'user.name'})) { |
if (defined($env{'user.name'})) { |
$output .= &Apache::lonhtmlcommon::row_title($lt{'opfi'},undef,'LC_evenrow_value'). |
$output .= &Apache::lonhtmlcommon::row_title($lt{'opfi'},undef,$css[$i]). |
' <input type="file" name="screenshot" size="20" /><br />'.$lt{'uplf'}."\n". |
' <input type="file" name="screenshot" size="20" /><br />'.$lt{'uplf'}."\n". |
&Apache::lonhtmlcommon::row_closure(); |
&Apache::lonhtmlcommon::row_closure(); |
$lastrow = 'LC_oddrow_value'; |
$num ++; |
|
$i = $num%2; |
} |
} |
$output .= &Apache::lonhtmlcommon::row_title($lt{'fini'},undef,$lastrow); |
$output .= &Apache::lonhtmlcommon::row_title($lt{'fini'},undef,$css[$i]); |
$output .= <<END; |
$output .= <<END; |
<table border="0" cellpadding="8" cellspacing="0"> |
<table border="0" cellpadding="8" cellspacing="0"> |
<tr> |
<tr> |
Line 450 sub print_request_receipt {
|
Line 469 sub print_request_receipt {
|
my @cookievars = ('lonID'); |
my @cookievars = ('lonID'); |
|
|
my $admin = $Apache::lonnet::perlvar{'lonAdminMail'}; |
my $admin = $Apache::lonnet::perlvar{'lonAdminMail'}; |
my $to = $Apache::lonnet::perlvar{'lonSupportEMail'}; |
my $origmail = $Apache::lonnet::perlvar{'lonSupportEMail'}; |
|
my $defdom = &get_domain(); |
|
my $to = &Apache::loncommon::build_recipient_list(undef,'helpdeskmail', |
|
$defdom,$origmail); |
my $from = $admin; |
my $from = $admin; |
my $reporttime = &Apache::lonlocal::locallocaltime(time); |
my $reporttime = &Apache::lonlocal::locallocaltime(time); |
my @formvars = ('username','email','uname','udom','sourceurl','phone','section','coursecode','title','subject','description','screenshot'); |
my @formvars = ('username','email','uname','udom','sourceurl','phone','section','coursecode','title','subject','description','screenshot'); |
Line 474 sub print_request_receipt {
|
Line 496 sub print_request_receipt {
|
my %lt = &Apache::lonlocal::texthash ( |
my %lt = &Apache::lonlocal::texthash ( |
username => 'Name', |
username => 'Name', |
email => 'Email', |
email => 'Email', |
|
cc => 'Cc', |
user => 'Username/domain', |
user => 'Username/domain', |
phone => 'Phone', |
phone => 'Phone', |
crsi => 'Course Information', |
crsi => 'Course Information', |
Line 489 sub print_request_receipt {
|
Line 512 sub print_request_receipt {
|
info => 'Information supplied', |
info => 'Information supplied', |
adin => 'Additional information recorded', |
adin => 'Additional information recorded', |
); |
); |
|
|
|
my (@ok_ccs,@bad_ccs,$badccmsg,$okcclist); |
|
if ((defined($env{'user.name'})) && (defined($env{'form.cc'}))) { |
|
my @ccs; |
|
if ($env{'form.cc'} =~ /,/) { |
|
@ccs = split(/,/,$env{'form.cc'}); |
|
} else { |
|
$env{'form.cc'} =~ s/^\s+//; |
|
$env{'form.cc'} =~ s/\s+$//; |
|
@ccs = $env{'form.cc'}; |
|
} |
|
foreach my $cc (@ccs) { |
|
$cc =~ s/^\s+//g; |
|
$cc =~ s/\s+$//g; |
|
if ($cc =~ m/^[^\@]+\@[^\@]+$/) { |
|
if (!(grep(/^\Q$cc\E$/,@ok_ccs))) { |
|
push(@ok_ccs,$cc); |
|
} |
|
} else { |
|
if (!(grep(/^\Q$cc\E$/,@bad_ccs))) { |
|
push(@bad_ccs,$cc); |
|
} |
|
} |
|
} |
|
if (@ok_ccs > 0) { |
|
$okcclist = join(', ',@ok_ccs); |
|
} |
|
if (@bad_ccs == 1) { |
|
$badccmsg .= '<br />'.&mt('The following Cc e-mail address is invalid: ').$bad_ccs[0]; |
|
} elsif (@bad_ccs > 1) { |
|
my $bad_cc_string = join(', ',@bad_ccs); |
|
$badccmsg .= '<br />'.&mt('The following Cc e-mail addresses are invalid: ').$bad_cc_string; |
|
} |
|
} |
$env{'form.user'} = "'".$env{'form.uname'}.':'.$env{'form.udom'}."'"; |
$env{'form.user'} = "'".$env{'form.uname'}.':'.$env{'form.udom'}."'"; |
$env{'form.csri'} = $env{'form.title'}.' - '.$coursecode.' - '.$lt{'sect'}.': '.$env{'form.section'}; |
$env{'form.csri'} = $env{'form.title'}.' - '.$coursecode.' - '.$lt{'sect'}.': '.$env{'form.section'}; |
my $supportmsg = <<END; |
my $supportmsg = <<END; |
$lt{'username'}: $env{'form.username'} |
$lt{'username'}: $env{'form.username'} |
$lt{'email'}: $env{'form.email'} |
$lt{'email'}: $env{'form.email'} |
|
$lt{'cc'}: $okcclist |
$lt{'user'}: $env{'form.user'} |
$lt{'user'}: $env{'form.user'} |
$lt{'phone'}: $env{'form.phone'} |
$lt{'phone'}: $env{'form.phone'} |
$lt{'crsi'}: $env{'form.csri'} |
$lt{'crsi'}: $env{'form.csri'} |
Line 505 $lt{'date'}: $reporttime
|
Line 562 $lt{'date'}: $reporttime
|
|
|
END |
END |
my $displaymsg; |
my $displaymsg; |
foreach my $item ('username','email','user','phone','crsi','subject','description','sourceurl') { |
foreach my $item ('username','email','cc','user','phone','crsi','subject','description','sourceurl') { |
if ($env{'form.'.$item} ne '') { |
if ($env{'form.'.$item} ne '') { |
if ($item eq 'description') { |
if ($item eq 'description') { |
my $descrip = $env{'form.description'}; |
my $descrip = $env{'form.description'}; |
Line 519 END
|
Line 576 END
|
$displaymsg .= |
$displaymsg .= |
'<span class="LC_helpform_receipt_cat">'. |
'<span class="LC_helpform_receipt_cat">'. |
"$lt{$item}</span>: $showurl<br />\n"; |
"$lt{$item}</span>: $showurl<br />\n"; |
|
} elsif ($item eq 'cc') { |
|
$displaymsg .= |
|
'<span class="LC_helpform_receipt_cat">'. |
|
"$lt{$item}</span>: $okcclist<br />\n"; |
} else { |
} else { |
$displaymsg .= |
$displaymsg .= |
'<span class="LC_helpform_receipt_cat">'. |
'<span class="LC_helpform_receipt_cat">'. |
Line 547 END
|
Line 608 END
|
if ($r->uri eq '/adm/helpdesk') { |
if ($r->uri eq '/adm/helpdesk') { |
&print_header($r,$url,'process'); |
&print_header($r,$url,'process'); |
} |
} |
if ($to =~ m/^[^\@]+\@[^\@]+$/) { |
my $bad_email = 0; |
$r->print('<h3>'.$lt{'asup'}.' '.$to.'</h3>'); |
if ($to =~ /,/) { |
} else { |
my @ok_email; |
$to = $admin; |
foreach my $email (split(/,/,$to)) { |
if ($to =~ m/^[^\@]+\@[^\@]+$/) { |
if ($email =~ m/^[^\@]+\@[^\@]+$/) { |
$r->print('<h3>'.$lt{'asup'}.' '.$to.'</h3>'); |
if (!grep(/^\Q$email\E$/,@ok_email)) { |
|
push(@ok_email,$email); |
|
} |
|
} |
|
} |
|
if (@ok_email > 0) { |
|
$to = join(',',@ok_email); |
|
} elsif ($admin =~ m/^[^\@]+\@[^\@]+$/) { |
|
$to = $admin; |
} else { |
} else { |
$r->print(' |
$bad_email = 1; |
|
} |
|
} elsif ($to !~ m/^[^\@]+\@[^\@]+$/) { |
|
if ($admin =~ m/^[^\@]+\@[^\@]+$/) { |
|
$to = $admin; |
|
} else { |
|
$bad_email = 1; |
|
} |
|
} |
|
if ($bad_email) { |
|
$r->print(' |
<h3>'.$lt{'warn'}.'</h3>'. |
<h3>'.$lt{'warn'}.'</h3>'. |
&mt('As the e-mail address provided for this LON-CAPA server ([_1]) does not appear to be a valid e-mail address, your support request has <b>not</b> been sent to the LON-CAPA support staff or administrator at your institution.',$to).' '.&mt('Instead a copy has been sent to the LON-CAPA support team at Michigan State University.')); |
&mt('As the e-mail address provided for this LON-CAPA server ([_1]) does not appear to be a valid e-mail address, your support request has <b>not</b> been sent to the LON-CAPA support staff or administrator at your institution.',$to).' '.&mt('Instead a copy has been sent to the LON-CAPA support team at Michigan State University.')); |
$to = 'helpdesk@lon-capa.org'; |
$to = 'helpdesk@lon-capa.org'; |
} |
} else { |
|
$r->print('<h3>'.$lt{'asup'}.' '.$to.'</h3>'); |
} |
} |
if (defined($env{'form.email'})) { |
if (defined($env{'form.email'})) { |
|
$env{'form.email'} =~ s/^\s+//; |
|
$env{'form.email'} =~ s/\s+$//; |
if ($env{'form.email'} =~ m/^[^\@]+\@[^\@]+$/) { |
if ($env{'form.email'} =~ m/^[^\@]+\@[^\@]+$/) { |
$from = $env{'form.email'}; |
$from = $env{'form.email'}; |
} |
} |
} |
} |
|
|
|
if (defined($env{'form.cc'})) { |
|
if ($badccmsg) { |
|
$displaymsg .= $badccmsg; |
|
} |
|
} |
|
|
my $subject = $env{'form.subject'}; |
my $subject = $env{'form.subject'}; |
$subject =~ s/(`)/'/g; |
$subject =~ s/(`)/'/g; |
$subject =~ s/\$/\(\$\)/g; |
$subject =~ s/\$/\(\$\)/g; |
Line 616 END
|
Line 704 END
|
Type =>'TEXT', |
Type =>'TEXT', |
Data => $supportmsg, |
Data => $supportmsg, |
); |
); |
|
if (@ok_ccs > 0) { |
|
my $cc_string = join(', ',@ok_ccs); |
|
$msg->add("Cc" => $cc_string); |
|
} |
|
|
if ($attachmentpath) { |
if ($attachmentpath) { |
my ($type, $encoding) = MIME::Types::by_suffix($attachmentpath); |
my ($type, $encoding) = MIME::Types::by_suffix($attachmentpath); |
Line 691 sub print_header {
|
Line 783 sub print_header {
|
login => 'Log-in help', |
login => 'Log-in help', |
ask => 'Ask helpdesk', |
ask => 'Ask helpdesk', |
getst => 'Getting started guide', |
getst => 'Getting started guide', |
back => 'Back to last location' |
back => 'Back to last location', |
|
headline => 'help/support', |
); |
); |
my ($getstartlink,$getstarttext); |
my ($getstartlink,$reviewtext); |
if (-e $Apache::lonnet::perlvar{'lonDocRoot'}.'/adm/gettingstarted.html') { |
if (-e $Apache::lonnet::perlvar{'lonDocRoot'}.'/adm/gettingstarted.html') { |
$getstartlink = qq|<td align="center"> <b><a href="/adm/gettingstarted.html">$lt{'getst'}</a></td>|; |
$getstartlink = qq|<td align="center"> <b><a href="/adm/gettingstarted.html">$lt{'getst'}</a></td>|; |
$getstarttext = ' '.&mt('and the "Getting started" guide').' '; |
$reviewtext = &mt('Please review the information in "Log-in help" and the "Getting started" guide if you are unable to log-in.'); |
|
} else { |
|
$reviewtext = &mt('Please review the information in "Log-in help" if you are unable to log-in.'); |
} |
} |
$r->print(<<END); |
$r->print(<<END); |
<table width="620" border="0" cellspacing="0" cellpadding="0" height="55"> <tr height="50"> <td width='5'> </td> |
<table width="620" border="0" cellspacing="0" cellpadding="0" height="55"> <tr height="50"> <td width='5'> </td> |
<td> |
<td> |
<fieldset><legend><img src="$location/lonIcons/minilogo.gif" height='20' width='29' valign='bottom' /> <b><font size="+1">LON-CAPA help/support</font></b></legend> |
<fieldset><legend><img src="$location/lonIcons/minilogo.gif" height='20' width='29' valign='bottom' /> <b><font size="+1">LON-CAPA $lt{'headline'}</font></b></legend> |
<table id="LC_helpmenu_links"> |
<table id="LC_helpmenu_links"> |
<tr> |
<tr> |
<td align="center"><span class="LC_nobreak"><img src="$location/help/gif/smallHelp.gif" border="0" alt="($lt{'login'})" valign="middle" /> <b><a href="/adm/loginproblems.html">$lt{'login'}</a></b> </span></td> |
<td align="center"><span class="LC_nobreak"><img src="$location/help/help.png" border="0" alt="($lt{'login'})" valign="middle" /> <b><a href="/adm/loginproblems.html">$lt{'login'}</a></b> </span></td> |
<td align="center"><span class="LC_nobreak"> <b>$helpdesk_link<img src="$location/lonIcons/helpdesk.gif" border="0" alt="($lt{'ask'})" valign="middle" /> $lt{'ask'}</a></b> </span></td>$getstartlink |
<td align="center"><span class="LC_nobreak"> <b>$helpdesk_link<img src="$location/lonIcons/helpdesk.gif" border="0" alt="($lt{'ask'})" valign="middle" /> $lt{'ask'}</a></b> </span></td>$getstartlink |
<td align="center"><span class="LC_nobreak"> <b><a href="$origurl" target="_top"><img src="$location/lonIcons/move_up.gif" border="0" alt="($lt{'back'})" valign="middle" /> $lt{'back'}</a></b> </span></td> |
<td align="center"><span class="LC_nobreak"> <b><a href="$origurl" target="_top"><img src="$location/lonIcons/move_up.gif" border="0" alt="($lt{'back'})" valign="middle" /> $lt{'back'}</a></b> </span></td> |
</tr> |
</tr> |
Line 720 END
|
Line 815 END
|
if ($command ne 'process') { |
if ($command ne 'process') { |
$r->print(' |
$r->print(' |
<tr> |
<tr> |
<td colspan="3">'.&mt(' |
<td colspan="3">'.$reviewtext.' ' |
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').'.<br /><font size="-1"><b>'.&mt('Students').'</b>: '.&mt('Do <b>not</b> use this form to ask questions about course content.').' '.&mt('Contact your instructor instead.').'</font><br /><br /> |
.&mt('If your problem is still unresolved, the form below can be used to send a question to the LON-CAPA helpdesk.').'<br />' |
|
.'<font size="-1"><b>'.&mt('Students').'</b>: '.&mt('Do <b>not</b> use this form to ask questions about course content.').' ' |
|
.&mt('Contact your instructor instead.') |
|
.'</font><br /><br /> |
</td> |
</td> |
</tr>'); |
</tr>'); |
} |
} |
Line 730 Please review the information in "Log-in
|
Line 828 Please review the information in "Log-in
|
return; |
return; |
} |
} |
|
|
|
sub get_domain { |
|
my $codedom; |
|
if (exists($env{'form.codedom'})) { |
|
$codedom = $env{'form.codedom'}; |
|
} elsif ($env{'request.course.id'}) { |
|
$codedom = $env{'course.'.$env{'request.course.id'}.'.domain'}; |
|
} elsif ($env{'request.role.domain'}) { |
|
$codedom = $env{'request.role.domain'}; |
|
} else { |
|
$codedom = $Apache::lonnet::perlvar{'lonDefDomain'}; |
|
} |
|
return $codedom; |
|
} |
|
|
1; |
1; |