-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-END
+ my @css = ('LC_evenrow_value','LC_oddrow_value');
+ my $num = 1;
+ my $i = $num%2;
+ my $formtype;
+ if ($homeserver) {
+ $formtype = ' enctype="multipart/form-data"';
+ }
+ $r->print(' |
-
-
- |
-
-
-
-
- |
-
-
-
-
-
- E-mail address:
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
-
- username/domain:
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
-
- Course Details:$details_title
- |
-
-
- |
-
-
-
-
-END
- if ($cnum) {
+ $output .= &Apache::lonhtmlcommon::row_closure();
+ $num ++;
+ $i = $num%2;
+ $output .= &Apache::lonhtmlcommon::row_title("$html_lt{'urlp'}",undef,$css[$i]).
+ $server."\n".'&').'" />'."\n".
+ &Apache::lonhtmlcommon::row_closure().
+ &Apache::lonhtmlcommon::row_title("$html_lt{'phon'}",undef,'LC_evenrow_value').
+ ' '."\n".
+ &Apache::lonhtmlcommon::row_closure();
+ $num ++;
+ $i = $num%2;
+ $output .= &Apache::lonhtmlcommon::row_title("$html_lt{'crsd'}$details_title",undef,$css[$i]);
+ if ($cnum) {
if ($coursecodes{$cnum}) {
- foreach (@codetitles) {
- $r->print(''.$_.': '.$codes{$cnum}{$_}.'; ');
+ foreach my $item (@codetitles) {
+ $output .= ''.$item.': '.$codes{$cnum}{$item}.'; ';
}
- $r->print(' ');
+ $output .= ' &').'" />'."\n";
} else {
- $r->print('Enter institutional course code:
- ');
+ $output .= $html_lt{'enin'}.':
+ '."\n";
}
} else {
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.'');
+ $output .= ' '.$html_lt{'titl'}.': '.$ctitle.
+ '&').'" />'."\n";
} else {
- $r->print(' Enter course title:
- ');
+ $output .= ' '.$html_lt{'enct'}.':
+ '."\n";
}
- $r->print(<
- |
-
- |
-
-
-
-
- |
-
-
-
-
-
- Section Number:
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
-
- Detailed description:
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-END
- if (defined($env{'user.name'})) {
- $r->print(<
-
-
-
- Optional file upload:
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-END
+ $output .= &Apache::lonhtmlcommon::row_closure();
+ $num ++;
+ $i = $num%2;
+ $output .= &Apache::lonhtmlcommon::row_title(
+ ''.
+ $html_lt{'subj'}.' *'
+ ,undef,'LC_oddrow_value').
+ ''."\n".
+ &Apache::lonhtmlcommon::row_closure().
+ &Apache::lonhtmlcommon::row_title(
+ ''.
+ $html_lt{'detd'}.' *'
+ ,undef,'LC_evenrow_value').
+ ''."\n".
+ &Apache::lonhtmlcommon::row_closure();
+ $num ++;
+ $i = $num%2;
+ if ($knownuser) {
+ if ($homeserver) {
+ $output .= &Apache::lonhtmlcommon::row_title($html_lt{'opfi'},undef,$css[$i])
+ .' '
+ .''
+ .' '."\n".$html_lt{'uplf'}."\n"
+ .&Apache::lonhtmlcommon::row_closure();
+ $num ++;
+ $i = $num%2;
+ }
+ } else {
+ 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 .= <
-
-
+
+
|
|
-
+
|
|
- |
-
-
- |
-
-
- |
-
-