-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-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) {
- if ($coursecodes{$cnum}) {
- foreach (@codetitles) {
- $r->print(''.$_.': '.$codes{$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();
+ if (&Apache::loncommon::check_for_gci_dc()) {
+ $output .= &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 my $item (@codetitles) {
+ $output .= ''.$item.': '.$codes{$cnum}{$item}.'; ';
+ }
+ $output .= ' &').'" />';
+ } else {
+ $output .= $lt{'enin'}.':
+ ';
}
- $r->print(' ');
} else {
- $r->print('Enter institutional course code:
- ');
- }
- } else {
- if ($totcodes > 0) {
- my $numtitles = @codetitles;
- if ($numtitles == 0) {
- $r->print('Enter institutional course code:
- ');
- } else {
- my $lasttitle = $numtitles;
- if ($numtitles > 4) {
- $lasttitle = 4;
- }
- $r->print(''.$codetitles[0].' '."\n".
- ' | ');
- for (my $i=1; $i<$numtitles; $i++) {
- $r->print(''.$codetitles[$i].' '."\n".
- ''."\n".
- ''."\n".
- ''."\n".
- ' | '
- );
- }
- $r->print(' ');
- if ($numtitles > 4) {
- $r->print('
'.$codetitles[$numtitles].' '."\n".
- ''."\n".
- ''."\n".
- ''."\n");
}
+ } else {
+ $output .= $lt{'enin'}.':
+ ';
}
+ }
+ $output .= ' ';
+ if ($ctitle) {
+ $output .= ''.$lt{'titl'}.': '.$ctitle.
+ '&').'" />'."\n";
} else {
- $r->print('Enter institutional course code:
- ');
+ $output .= $lt{'enct'}.':
+ '."\n";
}
- }
- if ($ctitle) {
- $r->print(' Title: '.$ctitle.'');
- } else {
- $r->print(' Enter course title:
- ');
- }
- $r->print(<
- |
-
- |
-
-
-
-
- |
-
-
-
-
-
- Section Number:
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
-
- Detailed description:
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-END
+ $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'})) {
- $r->print(<
-
-
-
- Optional file upload:
- |
-
-
- |
-
-
- |
-
-
-
-
- |
-
-END
+ $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 .= <
-
-
+
+
|
|
-
+
|
|
- |
-
-
- |
-
-
- |
-
-