--- loncom/interface/lonpickcourse.pm 2008/09/21 16:41:47 1.73.2.4 +++ 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.4 2008/09/21 16:41:47 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( - ''. - ''. - ''. - ''. - ''. - '
'.&mt('Action').''. - ''.(' 'x3).''. - '
'. - ''. - '
'. - '
'); + '
' + .''.&mt('Action').'' + .'
' + .'
' + .'
' + .'
' + ); } } my %by_descrip; @@ -273,11 +269,11 @@ 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)').'' -# .''.&mt('Type').'' + .''.&mt('Type').'' ); $r->print(&Apache::loncommon::end_data_table_header_row()); } @@ -318,13 +314,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"); @@ -437,7 +433,7 @@ sub build_filters { my %lt = ( 'cac' => &mt("$type Activity"), - 'cde' => &mt("$type Description"), + 'cde' => &mt("$type Title"), 'cdo' => &mt("$type Domain"), 'cin' => &mt('Course Institutional Code'), 'cow' => &mt("$type Owner's Username"), @@ -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).