$root_icon / ";
my @breadcr = split('/', $path);
my $cp = '';
for(my $i = 1; $i <= scalar(@breadcr)-1; $i++) {
chomp($breadcr[$i]);
$cp = $cp.'/'.$breadcr[$i];
print "
".
&html_escape($breadcr[$i])." / ";
}
print "
";
# And pagination
$page = $in{'page'};
$pagelimit = $userconfig{'per_page'};
$pages = ceil((scalar(@list))/$pagelimit);
if (not defined $page or $page > $pages) { $page = 1; }
print "Pages: ";
for(my $i = 1;$i <= $pages;$i++) {
if($page eq $i) {
print "
".&html_escape($i)."";
} else {
print "
".&html_escape($i)."";
}
}
print "
";
# And toolbar
print_template("unauthenticated/templates/legacy_quicks.html");
print_template("unauthenticated/templates/legacy_dialogs.html");
}
my $info_total;
my $info_files = scalar @files;
my $info_folders = scalar @folders;
if ($info_files eq 1 && $info_folders eq 1) {
$info_total = 'info_total1'
} elsif ($info_files ne 1 && $info_folders eq 1) {
$info_total = 'info_total2'
} elsif ($info_files eq 1 && $info_folders ne 1) {
$info_total = 'info_total3'
} else {
$info_total = 'info_total4'
}
print "" . &text($info_total, scalar @files, scalar @folders) . "
";
# Render current directory entries
print &ui_form_start("", "post", undef, "id='list_form'");
@ui_columns = (
'