remove checkboxes for hosts without created increments
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Wed, 21 Sep 2005 07:58:08 +0000 (07:58 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Wed, 21 Sep 2005 07:58:08 +0000 (07:58 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@125 8392b6e1-25fa-0310-8288-cc32f8e212ea

lib/BackupPC/SearchLib.pm

index 82b3886..9382e98 100644 (file)
@@ -422,14 +422,19 @@ EOF3
                        $host = $backup->{'host'};
                }
                my $ftype = "";
-           
-               $retHTML .= "<tr" . $color[$i %2 ] . ">";
-               $retHTML .= '<td class="fview"><input type="checkbox" name="fcb' .
-                                                                                       $backup->{'hostid'}.'_'.$backup->{'backupnum'} . 
-                                                                                       '" value="' . $backup->{'hostid'}.'_'.$backup->{'backupnum'} .
-                                                                                       '" onClick="sumiraj();"></td>';
-           
+
+               $retHTML .=
+                       '<tr' . $color[$i %2 ] . '>
+                       <td class="fview">';
+               if (($backup->{'fs_size'} || 0) > 0) {
+                       $retHTML .= '
+                       <input type="checkbox" name="fcb' .
+                       $backup->{'hostid'}.'_'.$backup->{'backupnum'} . 
+                       '" value="' . $backup->{'hostid'}.'_'.$backup->{'backupnum'} .
+                       '" onClick="sumiraj();">';
+               }
                $retHTML .=
+                       '</td>' .
                        '<td align="right">' . $backup->{'host'} . ':' . $backup->{'share'} . '</td>' .
                        '<td align="center">' . $backup->{'backupnum'} . '</td>' .
                        '<td align="center">' . $backup->{'type'} . '</td>' .
@@ -439,9 +444,8 @@ EOF3
                        '<td align="right">' . $backup->{'fs_size'} .
                        '<input type="hidden" name="fss'.$backup->{'hostid'}.'_'.$backup->{'backupnum'} . '"'.
                        'value="'. $backup->{'fs_size'} .'"'.'</td>' .
-                       "</tr>\n";
-
 
+                       "</tr>\n";
        }
 
        $retHTML .= "</table>";