version 1.22, 2002/10/16 20:50:08
|
version 1.25, 2003/01/13 21:23:06
|
Line 94 sub start_displaytitle {
|
Line 94 sub start_displaytitle {
|
$result=&Apache::edit::tag_start($target,$token); |
$result=&Apache::edit::tag_start($target,$token); |
$result.='</td></tr>'; |
$result.='</td></tr>'; |
$result.=&Apache::edit::end_table(); |
$result.=&Apache::edit::end_table(); |
} elsif ($target eq 'tex') { |
} elsif ($target eq 'tex' and $Apache::lonhomework::type ne 'exam') { |
$Apache::lonhomework::name=~s/%/\%/g; |
$Apache::lonhomework::name=~s/%/\%/g; |
$Apache::lonhomework::name=~s/&/\&/g; |
$Apache::lonhomework::name=~s/&/\&/g; |
$result='\vskip 0 mm\noindent\textbf{'.$Apache::lonhomework::name.'}\vskip 0 mm'; |
$result='\vskip 0 mm\noindent\textbf{'.$Apache::lonhomework::name.'}\vskip 0 mm'; |
Line 118 sub start_displayweight {
|
Line 118 sub start_displayweight {
|
$Apache::outputtags::showonce{'displayweight'}=1; |
$Apache::outputtags::showonce{'displayweight'}=1; |
} |
} |
my $status=$Apache::inputtags::status['-1']; |
my $status=$Apache::inputtags::status['-1']; |
if (($status =~ /CAN.*_ANSWER/) && ($target eq 'web')) { |
if ($target eq 'web' || $target eq 'tex') { |
my $id = $Apache::inputtags::part; |
my $id = $Apache::inputtags::part; |
my $weight = &Apache::lonnet::EXT("resource.$id.weight"); |
my $weight = &Apache::lonnet::EXT("resource.$id.weight"); |
&Apache::lonxml::debug("duedatebox found $weight for $id"); |
&Apache::lonxml::debug("duedatebox found $weight for $id"); |
if (!defined($weight)) { $weight=1; } |
if (!defined($weight) || ($weight eq '')) { $weight=1; } |
$result.=$weight; |
$result.=$weight; |
} elsif ( $target eq 'edit' ) { |
} elsif ( $target eq 'edit' ) { |
$result=&Apache::edit::tag_start($target,$token); |
$result=&Apache::edit::tag_start($target,$token); |