--- loncom/homework/structuretags.pm 2004/05/27 22:25:16 1.252
+++ loncom/homework/structuretags.pm 2004/06/23 17:43:31 1.257
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.252 2004/05/27 22:25:16 albertel Exp $
+# $Id: structuretags.pm,v 1.257 2004/06/23 17:43:31 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -25,9 +25,7 @@
#
# http://www.lon-capa.org/
#
-# 2/19 Guy
-# 6/26/2001 fixed extra web display at end of tags
-# 8/17,8/18,8/20 Gerd Kortemeyer
+###
package Apache::structuretags;
@@ -84,7 +82,8 @@ sub page_start {
if (!defined($found{'html'})) {
$result=&Apache::londefdef::start_html($target,$token,$tagstack,
$parstack,$parser,$safeeval);
- $head_tag_start='
'.&Apache::lonmenu::registerurl(undef,$target);
+ $head_tag_start=''.&Apache::lonmenu::registerurl(undef,$target).
+ &Apache::lonhtmlcommon::htmlareaheaders();
}
my $body_tag_start;
if (!defined($found{'body'})) {
@@ -201,7 +200,9 @@ sub problem_edit_header {
sub problem_edit_footer {
return '
- ';
+ '.
+ &Apache::lonhtmlcommon::htmlareaselectactive(@Apache::lonxml::htmlareafields).
+ "\n\n\n";
}
sub option {
@@ -335,9 +336,12 @@ ENDCHECKOUT
}
sub firstaccess_msg {
- my ($time)=@_;
+ my ($time,$symb)=@_;
+ my ($map)=&Apache::lonnet::decode_symb($symb);
+ my $foldertitle=&Apache::lonnet::gettitle($map);
+ &Apache::lonxml::debug("map is $map title is $foldertitle");
return (<This resource is open for a limited time, once you click the 'Show Resource' button below you have $time to complete all resources in this sequence.
+
The resources in "$foldertitle" are open for a limited time. Once you click the 'Show Resource' button below you have $time to complete all resources "$foldertitle".