--- loncom/publisher/lonpubdir.pm 2008/11/20 15:19:28 1.114
+++ loncom/publisher/lonpubdir.pm 2008/11/28 16:10:26 1.115
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Construction Space Directory Lister
#
-# $Id: lonpubdir.pm,v 1.114 2008/11/20 15:19:28 jms Exp $
+# $Id: lonpubdir.pm,v 1.115 2008/11/28 16:10:26 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -106,14 +106,16 @@ sub handler {
# Start off the directory table.
$r->print('
'.&mt('Directory Contents:').'
');
- $r->print(''.
- ''.&mt('Type').' | '.
- ''.&mt('Actions').' | '.
- ''.&mt('Name').' | '.
- ''.&mt('Title').' | '.
- ''.&mt('Status').' | '.
- ''.&mt('Last Modified').
- ' |
'."\n");
+ $r->print(&Apache::loncommon::start_data_table()
+ .&Apache::loncommon::start_data_table_header_row()
+ .''.&mt('Type').' | '
+ .''.&mt('Actions').' | '
+ .''.&mt('Name').' | '
+ .''.&mt('Title').' | '
+ .''.&mt('Status').' | '
+ .''.&mt('Last Modified').' | '
+ .&Apache::loncommon::end_data_table_header_row()
+ );
my $filename;
my $dirptr=16384; # Mask indicating a directory in stat.cmode.
@@ -139,7 +141,9 @@ sub handler {
}
closedir(DIR);
- $r->print('
'.&Apache::loncommon::end_page());
+ $r->print(&Apache::loncommon::end_data_table()
+ .&Apache::loncommon::end_page()
+ );
return OK;
}
#
@@ -566,7 +570,7 @@ sub putdirectory {
''.$actionitem.' | '.
''.
$disfilename.' | '.
- ''.($kaputt?&Apache::lonhtmlcommon::authorbombs($resdir.'/'.$disfilename.'/'):'').$Apache::lonpublisher::metadatafields{'title'});
+ ' | '.($kaputt?&Apache::lonhtmlcommon::authorbombs($resdir.'/'.$disfilename.'/'):'').$Apache::lonpublisher::metadatafields{'title'});
if ($Apache::lonpublisher::metadatafields{'subject'} ne '') {
$r->print(' '.
$Apache::lonpublisher::metadatafields{'subject'}.
@@ -688,7 +692,7 @@ sub putresource {
}
my $pub_select = '';
&create_pubselect($r,\$pub_select,$udom,$uname,$thisdisfn,$filename,$resdir,$pubstatus,$publish_button,$numres);
- $r->print(''.
+ $r->print(&Apache::loncommon::start_data_table_row().
''.($filename=~/[\#\~]$/?' ':
'').' | '.
''.$pub_select.' | '.
@@ -697,9 +701,11 @@ sub putresource {
$filename.''.$editlink2.$editlink.
''.
''.$title.' | '.
- ''.$status.' | '.
+ ' | '. # Display publication status
+ ''.$status.' | '.
''.&Apache::lonlocal::locallocaltime($cmtime).' | '.
- " \n");
+ &Apache::loncommon::end_data_table_row()
+ );
return OK;
}
|