--- loncom/publisher/lonpubdir.pm 2005/07/12 15:55:58 1.86 +++ loncom/publisher/lonpubdir.pm 2006/04/06 20:52:50 1.89 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Directory Lister # -# $Id: lonpubdir.pm,v 1.86 2005/07/12 15:55:58 albertel Exp $ +# $Id: lonpubdir.pm,v 1.89 2006/04/06 20:52:50 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -137,7 +137,7 @@ sub handler { } closedir(DIR); - $r->print(''); + $r->print(''.&Apache::loncommon::end_page()); return OK; } # @@ -191,13 +191,10 @@ sub startpage { my $currdir = '/priv/'.$uname.$thisdisfn; &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; - my $html=&Apache::lonxml::xmlbegin(); - $r->print($html.'LON-CAPA Construction Space'); - my $pagetitle; my $formaction='/priv/'.$uname.$thisdisfn.'/'; - $formaction=~s/\/+/\//g; - $pagetitle .= &Apache::loncommon::help_open_menu('','','','',3,'Authoring'). + $formaction=~s|/+|/|g; + my $pagetitle .= &Apache::loncommon::help_open_menu('','','','',3,'Authoring'). 'Construction Space: '. '
'. @@ -208,8 +205,12 @@ sub startpage { &Apache::lonhtmlcommon::store_recent('construct',$formaction,$formaction); if ($env{'environment.remote'} eq 'off') { $env{'request.noversionuri'}=$currdir.'/'; - $r->print(&Apache::loncommon::bodytag('Construction Space',undef,undef,undef,undef,undef,$pagetitle)); + $r->print(&Apache::loncommon::start_page('Construction Space',undef, + {'body_title' => + $pagetitle,})); } else { + $r->print(&Apache::loncommon::start_page('Construction Space',undef, + {'only_body' => 1,})); $r->print($pagetitle); } my $pubdirscript=(< 'Must create new subdirectory inside a directory', pubr => 'Publish this Resource', pubd => 'Publish this Directory', + dedr => 'Delete Directory', rtrv => 'Retrieve Old Version', - pubs => 'Publish with Subdirectories', list => 'List Directory', uplo => 'Upload file', dele => 'Delete', @@ -366,6 +377,7 @@ sub dircontrols { + @@ -517,9 +529,9 @@ sub putdirectory { ''. ''. ''. - ''. ''. ''. + ''. ''. ''. ''.