-
-
-
-
-
-
+
END
return $output;
}
@@ -1377,69 +1479,81 @@ END
sub end_pick_box {
my $output = <<"END";
-
-
-
- |
-
-
END
return $output;
}
sub row_title {
- my ($col_width,$tablecolor,$title) = @_;
+ my ($title,$css_title_class,$css_value_class) = @_;
+ $css_title_class ||= 'LC_pick_box_title';
+ $css_title_class = 'class="'.$css_title_class.'"';
+
+ $css_value_class ||= 'LC_pick_box_value';
+ $css_value_class = 'class="'.$css_value_class.'"';
+
+ if ($title ne '') {
+ $title .= ':';
+ }
my $output = <<"ENDONE";
- |
-
-
+ |
+
+ $title
|
-
-
-
+
ENDONE
return $output;
}
sub row_closure {
+ my ($no_separator) =@_;
my $output = <<"ENDTWO";
- |
-
|
+ENDTWO
+ if (!$no_separator) {
+ $output .= <<"ENDTWO";
-
- 
+ |
|
ENDTWO
+ }
return $output;
}
sub role_select_row {
- my ($roles,$col_width,$tablecolor,$title) = @_;
+ my ($roles,$title,$css_class,$show_separate_custom,$cdom,$cnum) = @_;
my $output;
if (defined($title)) {
- $output = &row_title($col_width,$tablecolor,$title);
+ $output = &row_title($title,$css_class);
}
- $output .= qq|
+ $output .= qq|
- | \n|;
+ $output .= qq| \n|;
if (defined($title)) {
$output .= &row_closure();
}
@@ -1447,11 +1561,18 @@ sub role_select_row {
}
sub course_select_row {
- my ($col_width,$tablecolor,$title,$formname,$totcodes,$codetitles,$idlist,$idlist_titles) = @_;
- my $output = &row_title($col_width,$tablecolor,$title);
- $output .= " \n";
- $output .= qq|
- |