-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-END
+ my @css = ('LC_evenrow_value','LC_oddrow_value');
+ my $num = 1;
+ my $i = $num%2;
+ $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("$lt{'urlp'}",undef,$css[$i]).
+ $showserver.'&').'" />'.
+ &Apache::lonhtmlcommon::row_closure().
+ &Apache::lonhtmlcommon::row_title("$lt{'phon'}",undef,'LC_evenrow_value').
+ ' '.
+ &Apache::lonhtmlcommon::row_closure();
+ $num ++;
+ $i = $num%2;
+ $output .= &Apache::lonhtmlcommon::row_title("$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 .= ' &').'" />';
} else {
- $r->print('Enter institutional course code:
- ');
+ $output .= $lt{'enin'}.':
+ ';
}
} else {
if ($totcodes > 0) {
my $numtitles = @codetitles;
if ($numtitles == 0) {
- $r->print('Enter institutional course code:
- ');
+ $output .= $lt{'enin'}.':
+ ';
} else {
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 .= $lt{'enin'}.':
+ ';
}
}
if ($ctitle) {
- $r->print(' Title: '.$ctitle.'');
+ $output .= ' '.$lt{'titl'}.': '.$ctitle.
+ '&').'" />'."\n";
} else {
- $r->print(' Enter course title:
- ');
+ $output .= ' '.$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($lt{'subj'},undef,'LC_oddrow_value').
+ ' '."\n".
+ &Apache::lonhtmlcommon::row_closure().
+ &Apache::lonhtmlcommon::row_title($lt{'detd'},undef,'LC_evenrow_value').
+ ' '.
+ &Apache::lonhtmlcommon::row_closure();
+ $num ++;
+ $i = $num%2;
+ if (defined($env{'user.name'})) {
+ $output .= &Apache::lonhtmlcommon::row_title($lt{'opfi'},undef,$css[$i]).
+ ' '.$lt{'uplf'}."\n".
+ &Apache::lonhtmlcommon::row_closure();
+ $num ++;
+ $i = $num%2;
}
- $r->print(<
-
-
- |
-
+ $output .= &Apache::lonhtmlcommon::row_title($lt{'fini'},undef,$css[$i]);
+ $output .= <
-
-
+
+
|
|
-
+
|
|
- |
-
-
- |
-
-
- |
-
-