version 1.724, 2025/02/26 20:32:54
|
version 1.726, 2025/02/28 01:07:59
|
Line 5044 sub editor {
|
Line 5044 sub editor {
|
} else { |
} else { |
$to_show .= $toolslink |
$to_show .= $toolslink |
.&Apache::loncommon::start_data_table('LC_tableOfContent') |
.&Apache::loncommon::start_data_table('LC_tableOfContent') |
|
.&Apache::loncommon::start_data_table_header_row('LC_visually_hidden') |
|
.'<th>'.&mt('Resource Type (Icon)').'</th><th>'.&mt('Resource or Folder').'</th>' |
|
.&Apache::loncommon::end_data_table_header_row() |
.$output.' ' |
.$output.' ' |
.&Apache::loncommon::end_data_table(); |
.&Apache::loncommon::end_data_table(); |
} |
} |
Line 5908 $form_end;
|
Line 5911 $form_end;
|
} else { |
} else { |
$reinit = &mt('(re-initialize course to access)'); |
$reinit = &mt('(re-initialize course to access)'); |
} |
} |
$line.='<td class="LC_docs_entry_commands"'.$tdalign.'><span class="LC_nobreak">'.$editlink.$renamelink.'</span>'; |
if ($allowed) { |
if ($orig_url =~ /$LONCAPA::assess_re/) { |
$line.='<td class="LC_docs_entry_commands"'.$tdalign.'><span class="LC_nobreak">'.$editlink.$renamelink.'</span>'; |
$line.= '<br />'; |
if ($orig_url =~ /$LONCAPA::assess_re/) { |
if ($curralias ne '') { |
$line.= '<br />'; |
$line.='<span class="LC_nobreak"><a href="javascript:delalias('."'$esc_path','$orderidx'".');" class="LC_docs_alias">'. |
if ($curralias ne '') { |
$lt{'da'}.'</a></span>'; |
$line.='<span class="LC_nobreak"><a href="javascript:delalias('."'$esc_path','$orderidx'".');" class="LC_docs_alias">'. |
} else { |
$lt{'da'}.'</a></span>'; |
$line.='<span class="LC_nobreak"><a href="javascript:setalias('."'$esc_path','$orderidx'".');" class="LC_docs_alias">'. |
} else { |
$lt{'sa'}.'</a></span>'; |
$line.='<span class="LC_nobreak"><a href="javascript:setalias('."'$esc_path','$orderidx'".');" class="LC_docs_alias">'. |
|
$lt{'sa'}.'</a></span>'; |
|
} |
} |
} |
|
$line.='</td>'; |
} |
} |
$line.='</td><td><span class="LC_nobreak">'; |
$line .= '<td><span class="LC_nobreak">'; |
my ($link,$nolink); |
my ($link,$nolink); |
if (($url=~m{/adm/(coursedocs|supplemental)}) || (!$allowed && $url)) { |
if (($url=~m{/adm/(coursedocs|supplemental)}) || (!$allowed && $url)) { |
if ($allowed && !$env{'request.role.adv'} && !$isfolder && !$ispage) { |
if ($allowed && !$env{'request.role.adv'} && !$isfolder && !$ispage) { |
Line 7336 sub handler {
|
Line 7342 sub handler {
|
@tabids = ('002','dd2','ee2','ff2'); |
@tabids = ('002','dd2','ee2','ff2'); |
$tid = 2; |
$tid = 2; |
} else { |
} else { |
@tabids = ('aa1','bb1','cc1','ff1'); |
@tabids = ('aa1','bb1','cc1','dd1','ff1'); |
unless ($env{'form.folderpath'} =~ /\:1$/) { |
unless ($env{'form.folderpath'} =~ /\:1$/) { |
unshift(@tabids,'001'); |
unshift(@tabids,'001'); |
push(@tabids,('dd1','ee1')); |
push(@tabids,'ee1'); |
} |
} |
} |
} |
my $tabidstr = join("','",@tabids); |
my $tabidstr = join("','",@tabids); |