--- trunk/lib/BackupPC/SearchLib.pm 2005/10/07 10:28:55 144 +++ trunk/lib/BackupPC/SearchLib.pm 2005/10/07 11:15:28 145 @@ -308,11 +308,12 @@ WHERE shares.id=backups.shareid AND hosts.id =backups.hostid AND hosts.id=? AND - backups.num=?; + backups.num=? }; my $sth = $dbh->prepare($sql); - $sth->execute($hostID, $backupNUM); - my $row = $res->fetchrow_hashref(); + $sth->execute($hostID, $backupNum); + + my $row = $sth->fetchrow_hashref(); my (undef,undef,undef,undef,undef,undef,undef,$ret,undef,undef,undef,undef,undef) = stat( $Conf{InstallDir}.'/'.$Conf{GzipTempDir}.'/'. @@ -330,10 +331,11 @@ backups.hostID AS hostID, hosts.name AS host, shares.name AS share, - backups.id AS backupnum, + backups.num AS backupnum, backups.type AS type, backups.date AS date, - backups.size AS size + backups.size AS size, + backups.id AS id FROM backups INNER JOIN shares ON backups.shareID=shares.ID INNER JOIN hosts ON backups.hostID = hosts.ID @@ -697,18 +699,20 @@ } my $ftype = ""; + my $checkbox_key = $backup->{'hostid'}. '_' .$backup->{'backupnum'} . '_' . $backup->{'id'}; + $retHTML .= '