--- loncom/interface/londocs.pm 2009/07/10 17:05:05 1.377
+++ loncom/interface/londocs.pm 2009/07/13 17:34:28 1.379
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.377 2009/07/10 17:05:05 bisitz Exp $
+# $Id: londocs.pm,v 1.379 2009/07/13 17:34:28 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1049,7 +1049,7 @@ sub breadcrumbs {
}
$plain=~s/\>\;\s*$//;
return (&Apache::lonhtmlcommon::breadcrumbs(undef,undef,0,'nohelp',
- 'LC_docs_path', undef, 1 ),$randompick,$ishidden,$isencrypted,$plain,$is_random_order);
+ undef, undef, 1 ),$randompick,$ishidden,$isencrypted,$plain,$is_random_order);
}
sub log_docs {
@@ -1600,7 +1600,7 @@ sub editor {
if ($is_random_order) {
$r->print('
'.&mt('Caution: this folder is set to randomly order its contents. Adding or removing resources from this folder will change the order of resources shown.').'
');
}
- $r->print('');
+ $r->print(&Apache::loncommon::start_data_table());
foreach my $res (@LONCAPA::map::order) {
my ($name,$url)=split(/\:/,$LONCAPA::map::resources[$res]);
$name=&LONCAPA::map::qtescape($name);
@@ -1613,9 +1613,11 @@ sub editor {
$shown++;
}
unless ($shown) {
- $r->print(''.&mt('Currently no documents.').' |
');
+ $r->print(''
+ .&mt('Currently no documents.')
+ .' |
');
}
- $r->print("\n
\n");
+ $r->print(&Apache::loncommon::end_data_table());
if ($allowed) {
&print_paste_buffer($r,$container);
}
@@ -1778,7 +1780,7 @@ sub entryline {
$renametitle=~s/\\/\\\\/g;
$renametitle=~s/\"\;/\\\"/g;
$renametitle=~s/ /%20/g;
- my $line='';
+ my $line=&Apache::loncommon::start_data_table_row();
my ($form_start,$form_end);
# Edit commands
my ($container, $type, $esc_path, $path, $symb);
@@ -1881,18 +1883,16 @@ END
$form_end = '';
$line.=(<
-
-
-
-
- |
-
-
-
-
- |
-
-
+
+
+
+
+
+
+
+
+
+
$form_start
@@ -2026,10 +2026,10 @@ END
undef($external);
}
$line.='
- |
+ |
'.($url?'':'').' '.($url?'':'').'
|
-
+ |
'.($url?"":'').$title.($url?'':' '.&mt('(re-initialize course to access)').'').$external."
| ";
if (($allowed) && ($folder!~/^supplemental/)) {
@@ -2055,7 +2055,7 @@ END
$form_start $parameterset $form_end |
ENDPARMS
}
- $line.="
";
+ $line.=&Apache::loncommon::end_data_table_row();
return $line;
}
@@ -2936,7 +2936,7 @@ HIDDENFORM
my $activeClass = 1;
my $active = '';
$r->print('');
- if (($standard) && ($allowed) && (!$forcesupplement) && (($env{'form.folderpath'}=~/^default/) || ($env{'form.pagepath'}))) {
+ if (($standard) && ($allowed) && (!$forcesupplement) && (($env{'form.folderpath'}=~/^default/) || $env{'form.folderpath'}eq"" || ($env{'form.pagepath'}))) {
if($activeClass == 1){
$active = 'class="active"';
$activeClass = 0;