{tdArgs}>$d->{link}\n";
@@ -264,20 +282,23 @@ EOF
} else {
$fileStr = eval("qq{$Lang->{The_directory_is_empty}}");
}
- my @otherDirs;
my $pathURI = $dir;
my $shareURI = $share;
$pathURI =~ s/([^\w.\/-])/uc sprintf("%%%02x", ord($1))/eg;
$shareURI =~ s/([^\w.\/-])/uc sprintf("%%%02x", ord($1))/eg;
- foreach my $i ( $view->backupList($share, $dir) ) {
- push(@otherDirs, "$i");
- }
- if ( @otherDirs ) {
- my $otherDirs = join(",\n", @otherDirs);
+ if ( my @otherDirs = $view->backupList($share, $dir) ) {
+ my $otherDirs;
+ foreach my $i ( @otherDirs ) {
+ my $selected;
+ my $showDate = timeStamp2($Backups[$i]{startTime});
+ my $backupNum = $Backups[$i]{num};
+ $selected = " selected" if ( $backupNum == $num );
+ $otherDirs .= "\n";
+ }
$filledBackup .= eval("qq{$Lang->{Visit_this_directory_in_backup}}");
}
- print (eval("qq{$Lang->{Backup_browse_for__host}}"));
+ my $content = eval("qq{$Lang->{Backup_browse_for__host}}");
+ Header(eval("qq{$Lang->{Browse_backup__num_for__host}}"), $content);
Trailer();
}
|