--- loncom/interface/lonhtmlcommon.pm 2004/10/12 23:26:48 1.93
+++ 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.93 2004/10/12 23:26:48 albertel Exp $
+# $Id: lonhtmlcommon.pm,v 1.98 2004/11/23 14:53:05 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -127,11 +127,12 @@ sub select_recent {
my ($area,$fieldname,$event)=@_;
my %recent=&Apache::lonnet::dump(&recent_filename($area));
my $return="\n\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;
}
@@ -885,11 +908,14 @@ sub crumbs {
unless ($_) { next; }
$path.=$_;
unless ($path eq $uri) { $path.='/'; }
- my $linkpath=$path;
- if ($form) {
- $linkpath="javascript:$form.action='$path';$form.submit();";
- }
- $output.=''.$_.'/';
+ 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.=''.$_.'/';
}
} else {
$output.=$uri;