');
if ($multiple) { $r->print("\n"); }
- $r->print(" \n");
+ $r->print(&Apache::loncommon::end_data_table_row());
+ # $r->print(" \n");
}
}
+ if (%courses) {
+ $r->print(&Apache::loncommon::end_data_table());
+ }
+
if (!%courses) {
$r->print(&mt('None found'));
} elsif ($multiple) {
@@ -417,8 +443,8 @@ sub build_filters {
$list->{'instcodefilter'}.'" />';
}
foreach my $posstype ('Course','Non-standard Course') {
- $typeselectform.='\n";
+ $typeselectform.='\n";
}
$typeselectform.="";
my $output = qq|
@@ -452,9 +478,9 @@ $multelement
if ($domainselectform) {
$output .= $lt{'cdo'}.': '.$domainselectform.' '."\n";
}
-# if ($typeselectform) {
-# $output .= $lt{'cog'}.': '.$typeselectform.' '."\n";
-# }
+ if ($typeselectform) {
+ $output .= $lt{'cog'}.': '.$typeselectform.' '."\n";
+ }
if ($instcodeform) {
$output .= $lt{'cin'}.': '.$instcodeform.' '."\n";
}
@@ -483,7 +509,7 @@ sub search_courses {
my ($r,$type,$onlyown,$filter) = @_;
my %courses;
if (!$onlyown) {
- $r->print(&mt('Searching').' ...
');
+ $r->print(&mt('Searching ...').'
');
$r->rflush();
if (($filter->{'ownerfilter'} ne '') ||
($filter->{'ownerdomfilter'} ne '')) {
@@ -523,7 +549,7 @@ sub course_chooser {
if ($multiple) {
$output = '