--- loncom/interface/lonhtmlcommon.pm 2004/10/21 11:18:06 1.94 +++ loncom/interface/lonhtmlcommon.pm 2004/11/23 14:53:05 1.98 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.94 2004/10/21 11:18:06 foxr Exp $ +# $Id: lonhtmlcommon.pm,v 1.98 2004/11/23 14:53:05 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -127,7 +127,7 @@ sub select_recent { my ($area,$fieldname,$event)=@_; my %recent=&Apache::lonnet::dump(&recent_filename($area)); my $return="\n\n"; + $result .= ' '; + my $monthselector = qq{\n"; + $monthselector.= ' '; # Day - $result .= " \n"; + my $dayselector = qq{}; # Year - $result .= " \n"; - $result .= "  "; - if (! $no_hh_mm_ss) { - # Hours - $result .= " \n"; - $result .= " m\n"; - $result .= " s\n"; + my $yearselector = qq{}; + # + my $hourselector = qq{\n"; + my $minuteselector = qq{}; + my $secondselector= qq{}; + my $cal_link = qq{}; + # + if ($no_hh_mm_ss) { + $result .= &mt('[_1] [_2] [_3] [_4]Select Date[_5]', + $monthselector,$dayselector,$yearselector, + $cal_link,''); + } else { + $result .= &mt('[_1] [_2] [_3] [_4] [_5]m [_6]s [_7]Select Date[_8]', + $monthselector,$dayselector,$yearselector, + $hourselector,$minuteselector,$secondselector, + $cal_link,''); + } + $result .= "\n\n"; return $result; } @@ -886,12 +908,12 @@ sub crumbs { unless ($_) { next; } $path.=$_; unless ($path eq $uri) { $path.='/'; } - my $linkpath=$path; - if ($form) { - my $escaped_path = &Apache::loncommon::escape_single($path); - $linkpath="javascript:$form.action='$escaped_path';$form.submit();"; - } - my $escaped_linkpath = &Apache::loncommon::escape_single($linkpath); + my $escaped_linkpath = &Apache::loncommon::escape_single($path); + if ($form) { + $escaped_linkpath="javascript:$form.action='". + &Apache::loncommon::escape_single($path). + "';$form.submit();"; + } my $escaped_target = &Apache::loncommon::escape_single($target); $output.=''.$_.'/'; }