--- loncom/interface/lonpickcourse.pm 2008/09/21 16:41:47 1.73.2.4
+++ loncom/interface/lonpickcourse.pm 2008/08/06 10:45:36 1.74
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Pick a course
#
-# $Id: lonpickcourse.pm,v 1.73.2.4 2008/09/21 16:41:47 raeburn Exp $
+# $Id: lonpickcourse.pm,v 1.74 2008/08/06 10:45:36 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -228,7 +228,7 @@ sub display_matched_courses {
$menuchk = ' checked="checked" ';
}
$r->print(
- '
'.
+ ''.&Apache::lonhtmlcommon::end_pick_box().
'
');
}
}
@@ -277,7 +277,7 @@ sub display_matched_courses {
.''.&mt('Domain').' | '
.''.&mt('Course Code').' | '
.''.&mt('Owner/Co-owner(s)').' | '
-# .''.&mt('Type').' | '
+ .''.&mt('Type').' | '
);
$r->print(&Apache::loncommon::end_data_table_header_row());
}
@@ -318,13 +318,13 @@ sub display_matched_courses {
}
$r->print('');
$r->print(''.$ownerstr.' | ');
-# $r->print('');
-# if ($ttype ne '') {
-# $r->print(&mt(&unescape($ttype)));
-# } else {
-# $r->print(' ');
-# }
-# $r->print(' | ');
+ $r->print('');
+ if ($ttype ne '') {
+ $r->print(&mt(&unescape($ttype)));
+ } else {
+ $r->print(' ');
+ }
+ $r->print(' | ');
if ($multiple) { $r->print("\n"); }
$r->print(&Apache::loncommon::end_data_table_row());
# $r->print("
\n");
@@ -481,34 +481,50 @@ $multelement
$output .= '';
}
}
+
+ $output .= "
\n".&Apache::lonhtmlcommon::start_pick_box();
if ($sincefilterform) {
- $output .= $lt{'cac'}.': '.$sincefilterform.'
'."\n";
+ $output .= &Apache::lonhtmlcommon::row_title($lt{'cac'})
+ .$sincefilterform
+ .&Apache::lonhtmlcommon::row_closure();
}
if ($domainselectform) {
- $output .= $lt{'cdo'}.': '.$domainselectform.'
'."\n";
+ $output .= &Apache::lonhtmlcommon::row_title($lt{'cdo'})
+ .$domainselectform
+ .&Apache::lonhtmlcommon::row_closure();
+ }
+ if ($typeselectform) {
+ $output .= &Apache::lonhtmlcommon::row_title($lt{'cog'})
+ .$typeselectform
+ .&Apache::lonhtmlcommon::row_closure();
}
-# if ($typeselectform) {
-# $output .= $lt{'cog'}.': '.$typeselectform.'
'."\n";
-# }
if ($instcodeform) {
- $output .= $lt{'cin'}.': '.$instcodeform.'
'."\n";
+ $output .= &Apache::lonhtmlcommon::row_title($lt{'cin'})
+ .$instcodeform
+ .&Apache::lonhtmlcommon::row_closure();
}
if (exists($filter->{'ownerfilter'})) {
- $output .= $lt{'cow'}.': '.
- '
'."\n".
- $lt{'cod'}.': '.$ownerdomselectform.'
'."\n";
+ $output .= &Apache::lonhtmlcommon::row_title($lt{'cow'})
+ .''
+ .&Apache::lonhtmlcommon::row_closure()
+ .&Apache::lonhtmlcommon::row_title($lt{'cod'})
+ .$ownerdomselectform
+ .&Apache::lonhtmlcommon::row_closure();
}
if (exists($filter->{'coursefilter'})) {
- $output .= &mt('LON-CAPA course ID').': '.
- '
';
+ $output .= &Apache::lonhtmlcommon::row_title(&mt('LON-CAPA course ID'))
+ .''
+ .&Apache::lonhtmlcommon::row_closure();
}
if (exists($filter->{'descriptfilter'})) {
- $output .=$lt{'cde'}.': '.
- ''."\n";
+ $output .= &Apache::lonhtmlcommon::row_title($lt{'cde'})
+ .''
+ .&Apache::lonhtmlcommon::row_closure(1);
}
+ $output .= &Apache::lonhtmlcommon::end_pick_box();
$output .= ''."\n".''."\n".'
'."\n";
return $output;