--- loncom/interface/lonpickcourse.pm 2008/07/01 04:22:59 1.73.2.1
+++ loncom/interface/lonpickcourse.pm 2009/03/16 16:05:40 1.77
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Pick a course
#
-# $Id: lonpickcourse.pm,v 1.73.2.1 2008/07/01 04:22:59 raeburn Exp $
+# $Id: lonpickcourse.pm,v 1.77 2009/03/16 16:05:40 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -228,23 +228,19 @@ sub display_matched_courses {
$menuchk = ' checked="checked" ';
}
$r->print(
- '
'.
- '
');
+ ''
+ .'
'
+ );
}
}
my %by_descrip;
@@ -273,7 +269,7 @@ sub display_matched_courses {
$r->print(&Apache::loncommon::start_data_table());
$r->print(&Apache::loncommon::start_data_table_header_row());
$r->print(''.&mt('Select').' | '
- .''.&mt('Course Description').' | '
+ .''.&mt('Course Title').' | '
.''.&mt('Domain').' | '
.''.&mt('Course Code').' | '
.''.&mt('Owner/Co-owner(s)').' | '
@@ -436,12 +432,12 @@ sub build_filters {
'15552000','31104000']));
my %lt = (
- 'cac' => &mt('[_1] Activity',$type),
- 'cde' => &mt('[_1] Description',$type),
- 'cdo' => &mt('[_1] Domain',$type),
+ 'cac' => &mt("$type Activity"),
+ 'cde' => &mt("$type Title"),
+ 'cdo' => &mt("$type Domain"),
'cin' => &mt('Course Institutional Code'),
- 'cow' => &mt("[_1] Owner's Username",$type),
- 'cod' => &mt("[_1] Owner's Domain", $type),
+ 'cow' => &mt("$type Owner's Username"),
+ 'cod' => &mt("$type Owner's Domain"),
'cog' => &mt('Course Type')
);
@@ -481,34 +477,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;
@@ -701,7 +713,7 @@ Course Owner's Username - the username o
Course Owner's Domain - the domain of the owner of the course
=item *
-Course Description - text which appears in the Course Description (or title), as set in the Course Parameters.
+Course Title - text which appears in the Course Title, as set in the Course Parameters.
=item *
Course ID - the internal course number (course ID part after initial 'domain_') used by LON-CAPA (this criterion is only displayed to Domain Coordinators selecting a course in the same domain as their DC role).