version 1.43, 2005/11/08 12:00:22
|
version 1.44, 2005/11/09 12:05:56
|
Line 91 sub start_displayduedate {
|
Line 91 sub start_displayduedate {
|
} |
} |
|
|
if ($showduedate) { |
if ($showduedate) { |
|
my $duetext = &Apache::lonnavmaps::timeToHumanString($date, '', $format); |
if ($target eq 'web') { |
if ($target eq 'web') { |
if (lc($style) !~ 'plain') { |
if (lc($style) !~ 'plain') { |
$result ='<table border="on"><tr><td>Due '. |
$result ='<table border="on"><tr><td>Due '.$duetext.'</td></tr></table>'; |
&Apache::lonnavmaps::timeToHumanString($date,'', $format). |
|
'</td></tr></table>'; |
|
} else { |
} else { |
$result=&mt('Due').' '.&Apache::lonnavmaps::timeToHumanString($date); |
$result=&mt('Due').' '.$duetext; |
} |
} |
} elsif ($target eq 'tex') { |
} elsif ($target eq 'tex') { |
|
# For TeX we'll make the duedate tag work exactly like the |
|
# duedate tag for web. |
|
|
|
my $duetext = &Apache::lonnavmaps::timeToHumanString($date, '', $format); |
|
if (lc($style) !~ 'plain') { |
|
# The due date will be put in a box. |
|
|
|
$result = '\framebox{' |
|
.&mt('Due').' '.$duetext.'}'; |
|
} else { |
|
$result = &mt('Due') . ' '.$duetext; |
|
} |
} |
} |
} |
} |
|
|