[LON-CAPA-cvs] cvs: loncom /xml scripttag.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 17 Jul 2002 18:03:46 -0000
albertel Wed Jul 17 14:03:46 2002 EDT
Modified files:
/loncom/xml scripttag.pm
Log:
- <stadaloe> puts a smale grey table around the standalone controls BUG#533
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.74 loncom/xml/scripttag.pm:1.75
--- loncom/xml/scripttag.pm:1.74 Wed Jul 17 14:00:03 2002
+++ loncom/xml/scripttag.pm Wed Jul 17 14:03:46 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# <script> definiton
#
-# $Id: scripttag.pm,v 1.74 2002/07/17 18:00:03 albertel Exp $
+# $Id: scripttag.pm,v 1.75 2002/07/17 18:03:46 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -338,14 +338,27 @@
sub start_standalone {
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
- if ($target eq 'web' && $ENV{'request.course.id'} ) {
- my $inside = &Apache::lonxml::get_all_text("/standalone",$$parser[-1]);
+ my $result='';
+ if ($target eq 'web' ) {
+ if ( $ENV{'request.course.id'} ) {
+ my $inside = &Apache::lonxml::get_all_text("/standalone",$$parser[-1]);
+ } else {
+ $result='<table bgcolor="#E1E1E1" border="2"><tr><td>';
+ }
}
- return '';
+ return $result;
}
sub end_standalone {
- return '';
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
+ my $result='';
+ if ($target eq 'web' ) {
+ if ( $ENV{'request.course.id'} ) {
+ } else {
+ $result='</td></tr></table>';
+ }
+ }
+ return $result;
}
sub start_comment {