-
-
-
-
-
-
-
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
-
- E-mail address:
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
-
- username/domain:
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
-
- Course Details:$details_title
- |
-
-
- |
-
-
-
-
-END
- if ($cnum) {
- if ($coursecodes{$cnum}) {
- foreach (@codetitles) {
- $r->print(''.$_.': '.$codes{$cnum}{$_}.'; ');
- }
- $r->print(' ');
+ unless (($helpform{'user'} eq 'no') || ($env{'request.lti.login'})) {
+ $output .= &Apache::lonhtmlcommon::row_title("$html_lt{'unme'}/$html_lt{'doma'}",undef,$css[$i]);
+ my $udom_input = '&').'" />'."\n";
+ my $uname_input = '&').'" />'."\n";
+ if ($knownuser) {
+ $output .= ''.$html_lt{'unme'}.': '.$uname.' '.$html_lt{'doma'}.': '.$udom.$udom_input.$uname_input;
} else {
- $r->print('Enter institutional course code:
- ');
+ my $udomform = '';
+ my $unameform = '';
+ if (($env{'user.domain'} =~ /^$match_domain$/) && (!$public)) {
+ $output .= $html_lt{'entu'};
+ } elsif (($env{'user.name'} =~ /^$match_username$/) && (!$public)) {
+ $output .= $html_lt{'chdo'};
+ } else {
+ $output .= $html_lt{'entr'};
+ }
+ $output .= ' '."\n";
+ if (!$public) {
+ if ($env{'user.domain'} =~ /^$match_domain$/) {
+ $udomform = ''.$html_lt{'doma'}.': '.$udom.$udom_input;
+ } elsif ($env{'user.name'} =~ /^$match_username$/) {
+ $unameform = ''.$html_lt{'unme'}.': '.$uname.' '.$uname_input;
+ }
+ }
+ if ($udomform eq '') {
+ $udomform = ''.$html_lt{'doma'}.': ';
+ $udomform .= &Apache::loncommon::select_dom_form($codedom,'udom')."\n";
+ }
+ if ($unameform eq '') {
+ $unameform= ''.$html_lt{'unme'}.': ';
+ }
+ $output .= $unameform.$udomform;
}
- } else {
+ $output .= &Apache::lonhtmlcommon::row_closure();
+ $num ++;
+ $i = $num%2;
+ }
+ unless ($env{'request.lti.login'}) {
+ $output .= &Apache::lonhtmlcommon::row_title("$html_lt{'urlp'}",undef,$css[$i]).
+ $server."\n".'&').'" />'."\n".
+ &Apache::lonhtmlcommon::row_closure();
+ }
+ unless ($helpform{'phone'} eq 'no') {
+ my $reqd;
+ if ($helpform{'phone'} eq 'req') {
+ $reqd = '*';
+ }
+ $output .= &Apache::lonhtmlcommon::row_title($html_lt{'phon'}.$reqd,undef,'LC_evenrow_value').
+ ' '."\n".
+ &Apache::lonhtmlcommon::row_closure();
+ $num ++;
+ $i = $num%2;
+ }
+ unless (($helpform{'course'} eq 'no') || ($env{'request.lti.login'})) {
+ $output .= &Apache::lonhtmlcommon::row_title("$html_lt{'crsd'}$details_title",undef,$css[$i]);
if ($totcodes > 0) {
my $numtitles = @codetitles;
if ($numtitles == 0) {
- $r->print('Enter institutional course code:
- ');
+ $output .= $html_lt{'enin'}.':
+ '."\n";
} else {
+ my @standardnames = &Apache::loncommon::get_standard_codeitems();
my $lasttitle = $numtitles;
if ($numtitles > 4) {
$lasttitle = 4;
- }
- $r->print(''.$codetitles[0].' '."\n".
- ' | ';
if ($numtitles > 4) {
- $r->print('
'.$codetitles[$numtitles].' '."\n".
- ''."\n".
- ''."\n".
- ''."\n");
+ $output .= '
'.$codetitles[$numtitles].' '."\n".
+ ''."\n".
+ ''."\n".
+ ''."\n";
}
}
} else {
- $r->print('Enter institutional course code:
- ');
+ $output .= $html_lt{'enin'}.':
+ '."\n";
}
- }
- if ($ctitle) {
- $r->print(' Title: '.$ctitle.'');
- } else {
- $r->print(' Enter course title:
- ');
- }
- $r->print(<
- |
-
- |
-
-
-
-
- |
-
-
-
-
-
- Section Number:
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
-
- Detailed description:
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-END
- if (defined($env{'user.name'})) {
- $r->print(<
-
-
-
- Optional file upload:
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-END
+ if ($captcha_form) {
+ $output .= &Apache::lonhtmlcommon::row_title(
+ ''.
+ &mt('Validation').
+ ' *'
+ ,undef,$css[$i]).
+ $captcha_form."\n".
+ &Apache::lonhtmlcommon::row_closure();
+ $num ++;
+ $i = $num%2;
+ }
}
- $r->print(<
-
-
- |
-
+ $output .= &Apache::lonhtmlcommon::row_title($html_lt{'fini'},undef,$css[$i]);
+ $output .= <
-
-
+
+
|
|
-
+
|
|
- |
-
-
- |
-
-
- |
-
-