--- rat/lonpage.pm 2006/05/30 17:15:10 1.75
+++ rat/lonpage.pm 2007/05/23 14:57:51 1.78
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Page Handler
#
-# $Id: lonpage.pm,v 1.75 2006/05/30 17:15:10 www Exp $
+# $Id: lonpage.pm,v 1.78 2007/05/23 14:57:51 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -270,7 +270,7 @@ sub handler {
}
}
my $output=Apache::lonnet::ssi($src,%posthash);
- $output=~s|//(\s*)?\s||gs;
+ $output=~s|//(\s*)?\s||gs;
if ($target eq 'tex') {
$output =~ s/^([^&]+)\\begin{document}//;
$output =~ s/\\end{document}//;
@@ -411,6 +411,10 @@ sub handler {
} else {
$r->print('
');
}
+# which icons do we use?
+ my $extension='png';
+ if ($env{'environment.icons'} eq 'classic') { $extension='gif'; }
+# generate rows
for ($i=0;$i<=$#rows;$i++) {
if ($rows[$i]) {
unless ($target eq 'tex') {
@@ -431,13 +435,13 @@ sub handler {
unless ($hash{'src_'.$rid} =~ m-^/uploaded/-) {
$metainfo =''.
''.
- ''.
+ ''.
'';
}
$metainfo .= ''.
- ''.
+ ''.
'';
if (
($hash{'src_'.$rid}=~/\.(problem|exam|quiz|assess|survey|form)$/) &&
@@ -452,17 +456,17 @@ sub handler {
''.
'&command=submission">'.
- ''.
+ ''.
''.
''.
'&command=gradingmenu">'.
- ''.
+ ''.
''.
''.
'" >'.
- ''.
+ ''.
'';
}
$metainfo.='
';
@@ -500,13 +504,11 @@ sub handler {
'.pageseparators'} eq 'yes') {
unless($target eq 'tex') {
$r->print('
');
- } else {
- $r->print('\hline');
- }
+ }
}
} elsif ($cellemb{$rid} eq 'img') {
$r->print('>'.$metainfo.'');
+ $hash{'src_'.$rid}.'" />');
} elsif ($cellemb{$rid} eq 'emb') {
$r->print('>'.$metainfo.'');
@@ -542,7 +544,8 @@ sub handler {
(($nforms>1)?'submit':'hidden').'">');
}
unless ($target eq 'tex') {
- $r->print(&Apache::loncommon::end_page());
+ $r->print(&Apache::loncommon::end_page({'discussion'
+ => 1,}));
} else {
$r->print('\end{document}'.$number_of_columns);
}