version 1.254.2.4, 2019/08/13 03:09:48
|
version 1.259, 2017/08/12 01:32:14
|
Line 121 END
|
Line 121 END
|
.'<fieldset>' |
.'<fieldset>' |
.'<legend>'.$lt{'upload_label'}.'</legend>' |
.'<legend>'.$lt{'upload_label'}.'</legend>' |
.$groupitem |
.$groupitem |
.'<input name="uploaddoc" type="file" class="LC_flUpload" />' |
.'<input name="uploaddoc" type="file" class="flUpload" />' |
.'<input type="hidden" id="LC_free_space" value="'.$free_space.'" />' |
.'<input type="hidden" id="free_space" value="'.$free_space.'" />' |
.'<input type="hidden" name="currentpath" value="'.$current_path.'" />' |
.'<input type="hidden" name="currentpath" value="'.$current_path.'" />' |
.'<input type="hidden" name="action" value="'.$env{"form.action"}.'" />' |
.'<input type="hidden" name="action" value="'.$env{"form.action"}.'" />' |
.'<input type="hidden" name="symb" value="'.$env{"form.symb"}.'" />' |
.'<input type="hidden" name="symb" value="'.$env{"form.symb"}.'" />' |
Line 237 sub display_directory_line {
|
Line 237 sub display_directory_line {
|
if ($lock_info) { |
if ($lock_info) { |
my %anchor_fields = ('lockinfo' => $fullpath); |
my %anchor_fields = ('lockinfo' => $fullpath); |
if ($versions) { # hold the folder open |
if ($versions) { # hold the folder open |
my ($fname,$version,$extension) = &Apache::grades::file_name_version_ext($fullpath); |
my ($fname,$version,$extension) = &Apache::lonnet::file_name_version_ext($fullpath); |
$fname =~ s|^/||; |
$fname =~ s|^/||; |
$anchor_fields{'showversions'} = $fname.'.'.$extension; |
$anchor_fields{'showversions'} = $fname.'.'.$extension; |
} |
} |
Line 370 sub display_directory {
|
Line 370 sub display_directory {
|
} (@{$dir_list})) { |
} (@{$dir_list})) { |
my ($filename,$dom,undef,$testdir,undef,undef,undef,undef,$size,undef,$mtime,undef,undef,undef,$obs,undef)=split(/\&/,$dir_line,16); |
my ($filename,$dom,undef,$testdir,undef,undef,undef,undef,$size,undef,$mtime,undef,undef,undef,$obs,undef)=split(/\&/,$dir_line,16); |
$filename =~ s/\s+$//; |
$filename =~ s/\s+$//; |
my ($fname,$version,$extension) = &Apache::grades::file_name_version_ext($filename); |
my ($fname,$version,$extension) = &Apache::lonnet::file_name_version_ext($filename); |
if ($version) { |
if ($version) { |
my $fullpath = &prepend_group($current_path.$fname.'.'.$extension); |
my $fullpath = &prepend_group($current_path.$fname.'.'.$extension); |
push(@{ $versioned{$fullpath} }, |
push(@{ $versioned{$fullpath} }, |
Line 383 sub display_directory {
|
Line 383 sub display_directory {
|
my $zerobyte; |
my $zerobyte; |
foreach my $dir_line (@dir_lines) { |
foreach my $dir_line (@dir_lines) { |
my ($filename,$dom,$testdir,$size,$mtime,$obs) = @$dir_line; |
my ($filename,$dom,$testdir,$size,$mtime,$obs) = @$dir_line; |
my ($fname,$version,$extension) = &Apache::grades::file_name_version_ext($filename); |
my ($fname,$version,$extension) = &Apache::lonnet::file_name_version_ext($filename); |
if (($filename ne '.') && ($filename ne '..') && ($filename !~ /\.meta$/ ) && ($filename !~ /(.*)\.(\d+)\.([^\.]*)$/)) { |
if (($filename ne '.') && ($filename ne '..') && ($filename !~ /\.meta$/ ) && ($filename !~ /(.*)\.(\d+)\.([^\.]*)$/)) { |
my $version_flag; |
my $version_flag; |
my $show_versions; |
my $show_versions; |
Line 2743 sub handler {
|
Line 2743 sub handler {
|
|
|
my $js = '<script type="text/javascript" |
my $js = '<script type="text/javascript" |
src="/res/adm/includes/file_upload.js"></script>'; |
src="/res/adm/includes/file_upload.js"></script>'; |
|
|
if ($env{"form.mode"} eq 'selectfile'){ |
if ($env{"form.mode"} eq 'selectfile'){ |
$r->print(&Apache::loncommon::start_page($title, $js, |
$r->print(&Apache::loncommon::start_page($title, $js, |
{'only_body' => 1})); |
{'only_body' => 1})); |