version 1.6, 2001/04/26 21:27:50
|
version 1.8, 2001/06/02 03:59:59
|
Line 9 sub BEGIN {
|
Line 9 sub BEGIN {
|
} |
} |
|
|
sub start_displayduedate { |
sub start_displayduedate { |
my ($target,$token,$parstack,$parser,$safeeval)=@_; |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_; |
my $result; |
my $result; |
my $status=$Apache::inputtags::status['-1']; |
my $status=$Apache::inputtags::status['-1']; |
&Apache::lonxml::debug("got a $status in duedatebox"); |
&Apache::lonxml::debug("got a $status in duedatebox"); |
if (($status =~ /CAN.*_ANSWER/) && ($target eq 'web')) { |
if (($status =~ /CAN.*_ANSWER/) && ($target eq 'web')) { |
my $args =''; |
my $format = &Apache::lonxml::get_param('format',$parstack,$safeeval); |
if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } |
|
my $format = &Apache::run::run("{$args;".'return $format}',$safeeval); |
|
if ($format eq '') { |
if ($format eq '') { |
&Apache::lonxml::debug("using default format"); |
&Apache::lonxml::debug("using default format"); |
$format="%c"; |
$format="%c"; |
Line 40 sub end_displayduedate {
|
Line 38 sub end_displayduedate {
|
} |
} |
|
|
sub start_displaytitle { |
sub start_displaytitle { |
my ($target,$token,$parstack,$parser,$safeeval)=@_; |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_; |
my $result=''; |
my $result=''; |
if ($target eq 'web') { |
if ($target eq 'web') { |
$result="<h1>$Apache::lonhomework::name</h1>"; |
$result="<h1>$Apache::lonhomework::name</h1>"; |