--- loncom/interface/lonpickcourse.pm 2008/05/31 00:50:00 1.72
+++ 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.72 2008/05/31 00:50:00 raeburn Exp $
+# $Id: lonpickcourse.pm,v 1.74 2008/08/06 10:45:36 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -228,14 +228,23 @@ sub display_matched_courses {
$menuchk = ' checked="checked" ';
}
$r->print(
+ &Apache::lonhtmlcommon::start_pick_box().
+ '
'.
+ ''.&mt('Action').' | '.
+ ''.
''.(' 'x3).' '.
+ ''.(' 'x3).''.
+ ' |
'.
+ ''.
+ ''.
'
');
+ ''.
+ ' |
'.&Apache::lonhtmlcommon::end_pick_box().
+ '
');
}
}
my %by_descrip;
@@ -427,12 +436,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 Description"),
+ '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')
);
@@ -444,7 +453,7 @@ sub build_filters {
}
foreach my $posstype ('Course','Non-standard Course') {
$typeselectform.='\n";
+ ($posstype eq $type ? ' selected="selected" ' : ''). ">".&mt($posstype)."\n";
}
$typeselectform.="";
my $output = qq|
@@ -472,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 .= $lt{'cog'}.': '.$typeselectform.'
'."\n";
+ $output .= &Apache::lonhtmlcommon::row_title($lt{'cog'})
+ .$typeselectform
+ .&Apache::lonhtmlcommon::row_closure();
}
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;