+//
+// ]]>
ENDCHECK
}
@@ -1226,7 +1272,8 @@ sub htmlareaselectactive {
my @fields=@_;
unless (&htmlareabrowser()) { return ''; }
if (&htmlareablocked()) { return '
'.&enablelink(@fields); }
- my $output='
".
+ $output.="\nwindow.status='Activated Editfields';\n"
+ .'// ]]>'
+ .'
'.
&disablelink(@fields);
return $output;
}
@@ -1280,7 +1329,6 @@ Inputs: $component (the large text on th
$css_class (optional name for the class to apply to the table for CSS)
$no_mt (optional flag, 1 if &mt() is _not_ to be applied to $component
when including the text on the right.
-
Returns a string containing breadcrumbs for the current page.
=item clear_breadcrumbs
@@ -1306,22 +1354,28 @@ returns: nothing
my @Crumbs;
sub breadcrumbs {
- my ($component,$component_help,$menulink,$helplink,$css_class,$no_mt) = @_;
+ my ($component,$component_help,$menulink,$helplink,$css_class,$no_mt, $CourseBreadcrumbs) = @_;
#
- $css_class ||= 'LC_breadcrumbs';
- my $Str = "\n".'';
+ $css_class ||= 'LC_breadcrumbs';
+ my $Str1 = ' | ';
+
+
+ if($CourseBreadcrumbs){
+ $Str1 .= $links.'';
+ } else {
+ $Str1 .= $links.'';
+ }
#
if (defined($component)) {
- $Str .= '';
+ $Str .= "\n".''
+ .'';
if ($no_mt) {
$Str .= $component;
} else {
@@ -1395,15 +1462,14 @@ returns: nothing
if ($icons ne '') {
$Str .= ' '.$icons;
}
- $Str .= ' | ';
+ $Str .= ' '."\n";
}
- $Str .= ' |
'."\n";
#
# Return the @Crumbs stack to what we started with
push(@Crumbs,$last);
shift(@Crumbs);
- #
- return $Str;
+ # Return a table and after that the breadcrumb's line
+ return "$Str\n$Str1";
}
sub clear_breadcrumbs {
@@ -1472,6 +1538,9 @@ returns: nothing
# routines, but can also be called directly to start and end rows which have
# needs that are not accommodated by the *_select_row() routines.
+{ # Start: row_count block for pick_box
+my @row_count;
+
sub start_pick_box {
my ($css_class) = @_;
if (defined($css_class)) {
@@ -1479,6 +1548,7 @@ sub start_pick_box {
} else {
$css_class= 'class="LC_pick_box"';
}
+ unshift(@row_count,0);
my $output = <<"END";
END
@@ -1486,6 +1556,7 @@ END
}
sub end_pick_box {
+ shift(@row_count);
my $output = <<"END";
END
@@ -1501,11 +1572,12 @@ END
sub row_title {
my ($title,$css_title_class,$css_value_class) = @_;
+ $row_count[0]++;
+ my $css_class = ($row_count[0] % 2)?'LC_odd_row':'LC_even_row';
$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 .= ':';
@@ -1515,7 +1587,7 @@ sub row_title {
$title
|
-
+ |
ENDONE
return $output;
}
@@ -1537,6 +1609,9 @@ ENDTWO
return $output;
}
+} # End: row_count block for pick_box
+
+
sub role_select_row {
my ($roles,$title,$css_class,$show_separate_custom,$cdom,$cnum) = @_;
my $output;
@@ -1544,7 +1619,7 @@ sub role_select_row {
$output = &row_title($title,$css_class);
}
$output .= qq|
- |