$lt{'hd'}
- ');
$r->print(<
$closebutton $groupimportbutton
@@ -524,11 +543,21 @@ END
$storeuri='/'.(split(/\.(page|sequence)\/\//,$uri))[-1];
$storeuri=~s/\/+/\//g;
# ---------------------------------------------------------------- Bread crumbs
- $r->print(&Apache::lonhtmlcommon::crumbs($storeuri,'','',
- (($env{'form.catalogmode'} eq 'import')?
- 'document.forms.fileattr':'')).
- &Apache::lonhtmlcommon::select_recent('residx','resrecent',
-'window.status=this.form.resrecent.options[this.form.resrecent.selectedIndex].value;this.form.action=this.form.resrecent.options[this.form.resrecent.selectedIndex].value;this.form.submit();'));
+ $r->print(
+ ''
+ .&Apache::lonhtmlcommon::crumbs(
+ $storeuri,
+ '',
+ '',
+ (($env{'form.catalogmode'} eq 'import')?
+ 'document.forms.fileattr':''))
+ .' '
+ .&Apache::lonhtmlcommon::select_recent(
+ 'residx',
+ 'resrecent',
+ 'window.status=this.form.resrecent.options[this.form.resrecent.selectedIndex].value;this.form.action=this.form.resrecent.options[this.form.resrecent.selectedIndex].value;this.form.submit();')
+ .'
'
+ );
# -------------------------------------------------------- Resource Home Button
my $reshome=$env{'course.'.$env{'request.course.id'}.'.reshome'};
if ($reshome) {
@@ -546,14 +575,13 @@ END
&Apache::lonhtmlcommon::store_recent('residx',$storeuri,$storeuri);
# -------------------------------------------------- Check All and Uncheck all
if ($env{'form.catalogmode'} eq 'import') {
- $r->print(' ');
- $r->print(' ');
+ $r->print(' ');
+ $r->print('
');
}
# ----------------- output starting row to the indexed file/directory hierarchy
#$r->print(&initdebug());
#$r->print(&writedebug("Omit:@Omit")) if (@Omit);
#$r->print(&writedebug("Only:@Only")) if (@Only);
- $r->print(' ');
$r->print(&Apache::loncommon::start_data_table("LC_tableBrowseRes")
.&Apache::loncommon::start_data_table_header_row());
$r->print("".&mt('Name')." \n");
@@ -880,24 +908,23 @@ sub display_line {
$r->print("\n");
$r->print ('$tabtag");
$r->print(&Apache::loncommon::end_data_table_row());
return OK;
}
# Do we have permission to look at this?
-
- if($filecom[15] ne '1') { return OK if (!&Apache::lonnet::allowed('bre',$pathprefix.$filecom[0])); }
+ if($filecom[15] ne '1') { return OK if ((!&Apache::lonnet::allowed('bre',$pathprefix.$filecom[0])) && (!&Apache::lonnet::allowed('bro',$pathprefix.$filecom[0]))); }
# make absolute links appear on different background
#SB if ($absolute) { $fileclr='#ccdd99'; }
@@ -915,8 +942,8 @@ sub display_line {
$anchor =~ s/\W//g;
$r->print (' ');
$r->print (' ');
- $r->print (' print (' name="'.$msg.'" type="image" class="LC_fileicon" /> '.
+ $r->print (' print (' alt="'.$msg.'" class="LC_fileicon" /> '.
"\n");
my $quotable_filecom = &Apache::loncommon::escape_single($filecom[0]);
$r->print (' '."\n");
$r->print (' ');
- $r->print ('');
+ $r->print (' ');
$r->print (' print (' name="'.$msg.'"/> '.
+ $r->print (' alt="'.$msg.'"/>'.
"\n");
my $quotable_curdir = &Apache::loncommon::escape_single($curdir);
$r->print ('");
$r->print(" ".
"\n");
- $r->print(' ');
+ $r->print(' ');
} elsif ($env{'form.catalogmode'} eq 'import') {
$r->print(" ');
+ $r->print(' ');
$hash{"pre_${fnum}_link"}=$filelink;
$hash{"pre_${fnum}_title"}=$title;
if (!$hash{"pre_${fnum}_title"}) {
@@ -1020,8 +1047,8 @@ $r->print (' \n");
+ $r->print(' ');
$count++;
}
# Sequence open/close icon
@@ -1031,10 +1058,10 @@ $r->print (' ');
$r->print (' ');
- $r->print ('');
+ $r->print (' ');
$r->print (' print (' name="'.$msg.'" type="image" class="LC_fileicon" /> '.
+ $r->print (' alt="'.$msg.'" />'.
"\n");
}
# Filetype icons
@@ -1053,7 +1080,7 @@ $r->print (' \n");
+ $r->print("\n");
if ($hash{'display_attrs_0'} == 1) {
$r->print(' '.($title eq '' ? ' ' : $title).
' '."\n");
@@ -1090,17 +1117,13 @@ $r->print (' ");
- &dynmetaprint($r,$filelink,'count');
- &dynmetaprint($r,$filelink,'course');
- &dynmetaprint($r,$filelink,'stdno');
- &dynmetaprint($r,$filelink,'avetries');
- &dynmetaprint($r,$filelink,'difficulty');
- &dynmetaprint($r,$filelink,'disc');
- &dynmetaprint($r,$filelink,'clear');
- &dynmetaprint($r,$filelink,'technical');
- &dynmetaprint($r,$filelink,'correct');
- &dynmetaprint($r,$filelink,'helpful');
- &dynmetaprint($r,$filelink,'depth');
+
+ for (qw(count course stdno avetries difficulty disc clear technical
+ correct helpful depth)) {
+
+ dynmetaprint($r,$filelink,$_);
+ }
+
$r->print(" \n");
}
@@ -1123,11 +1146,9 @@ $r->print (' '.($output eq '' ? ' ':$output).
" \n");
}
@@ -1188,25 +1209,25 @@ $r->print (' \n");
+ $r->print (' ');
$count++;
}
$r->print (' ');
$r->print (' ');
- $r->print (' print (' name="'.$msg.'" class="LC_fileicon" /> '.
+ $r->print (' alt="'.$msg.'" class="LC_fileicon" />'.
"\n");
my $quotable_curdir = &Apache::loncommon::escape_single($curdir);
my $location = &Apache::loncommon::lonhttpdurl("/adm/lonIcons");
my $icon = "navmap.folder.".($nowOpen ? "open":"closed").'.gif';
- $r->print (''
- .' '.
- "\n");
+ $r->print (' '
+ .' '
+ ."\n");
$r->print ("$listname \n");
# Attributes
my $filelink = $startdir.$filecom[0].'/default';
@@ -1335,7 +1356,6 @@ sub showpreview {
close(FH);
}
}
- $output=''.$output.' ';
} elsif ($embstyle eq 'img') {
$output=' ';
} elsif ($filelink=~m{^/res/($match_domain)/($match_username)/}) {
@@ -1366,7 +1386,7 @@ sub begin_form {
$uri=&Apache::loncommon::escape_single($uri);
$r->print ('