--- loncom/interface/lonhtmlcommon.pm 2025/02/18 02:51:32 1.417 +++ loncom/interface/lonhtmlcommon.pm 2025/02/18 03:42:04 1.418 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.417 2025/02/18 02:51:32 raeburn Exp $ +# $Id: lonhtmlcommon.pm,v 1.418 2025/02/18 03:42:04 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -542,7 +542,14 @@ sub date_setter { my ($formname,$dname,$currentvalue,$special,$includeempty,$state, $no_hh_mm_ss,$defhour,$defmin,$defsec,$nolink,$no_mm_ss,$no_ss) = @_; my $now = time; - + my %labels = &Apache::lonlocal::texthash( + day => 'day', + month => 'month', + year => 'year', + sec => 'seconds', + min => 'minutes', + hour => 'hours', + ); my $tzname; my ($sec,$min,$hour,$mday,$month,$year) = ('', '', undef,''.''.''); #other potentially useful values: wkday,yrday,is_daylight_savings @@ -643,7 +650,7 @@ document.$formname.$dname\_year.value, ENDJS $result .= ' '; - my $monthselector = qq{}; # Month my @Months = qw/January February March April May June July August September October November December/; @@ -657,11 +664,11 @@ ENDJS } $monthselector.= ' '; # Day - my $dayselector = qq{}; + my $dayselector = qq{}; # Year - my $yearselector = qq{}; + my $yearselector = qq{}; # - my $hourselector = qq{}; if ($includeempty) { $hourselector.=qq{}; } @@ -683,8 +690,8 @@ ENDJS $hourselector .= $timest." \n"; } $hourselector .= " \n"; - my $minuteselector = qq{}; - my $secondselector= qq{}; + my $minuteselector = qq{}; + my $secondselector= qq{}; my $cal_link; unless (($nolink) || ($state eq 'disabled')) { $cal_link = qq{}; @@ -2156,7 +2163,7 @@ returns: nothing # Return the breadcrumb's line my $labeltext = &HTML::Entities::encode(&mt('Links for navigation and information')); - return ''; + return ''; } sub clear_breadcrumbs { @@ -2497,7 +2504,7 @@ sub row_title { $css_value_class ||= 'LC_pick_box_value'; - if (($title ne '') && (!$nocolon)) { + if (($title ne '') && (!$nocolon)) { $title .= ':'; } my $output = <<"ENDONE";