cosmetics
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Mon, 11 Jul 2005 16:48:33 +0000 (16:48 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Mon, 11 Jul 2005 16:48:33 +0000 (16:48 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@24 8392b6e1-25fa-0310-8288-cc32f8e212ea

images/icon-dir.gif
images/icon-file.gif
images/icon-symlink.gif
lib/BackupPC/SearchLib.pm

index dafa818..7b37b09 100644 (file)
Binary files a/images/icon-dir.gif and b/images/icon-dir.gif differ
index 95a1145..f8da6ff 100644 (file)
Binary files a/images/icon-file.gif and b/images/icon-file.gif differ
index 02562c4..992f133 100644 (file)
Binary files a/images/icon-symlink.gif and b/images/icon-symlink.gif differ
index 06ae268..70dea68 100644 (file)
@@ -280,11 +280,11 @@ sub displayGrid($$$$) {
        <table style="fview" width="100%">
                <tr> 
                <td class="tableheader">Host</td>
-               <td class="tableheader">Type</td>
                <td class="tableheader">Name</td>
-               <td class="tableheader">backup no.</td>
-               <td class="tableheader">size</td>
-               <td class="tableheader">date</td>
+               <td class="tableheader">Type</td>
+               <td class="tableheader">#</td>
+               <td class="tableheader">Size</td>
+               <td class="tableheader">Date</td>
                <td class="tableheader">Media</td>
                </tr>
        };
@@ -298,15 +298,13 @@ sub displayGrid($$$$) {
        }
 
        foreach $file (@files) {
-               my $ftype = "file";
-               $ftype = "dir" if ($file->{'type'} == BPC_FTYPE_DIR);
-
+               my $typeStr  = BackupPC::Attrib::fileType2Text(undef, $file->{'type'});
                $retHTML .= "<tr>";
 
                foreach my $v ((
                        $file->{'hname'},
-                       $ftype,
-                       hilite_html( $file->{'fpath'}, $hilite ),
+                       qq{<img src="$Conf{CgiImageDirURL}/icon-$typeStr.gif" align="center">&nbsp;} . hilite_html( $file->{'fpath'}, $hilite ),
+                       $typeStr,
                        $file->{'backupno'},
                        $file->{'size'},
                        $file->{'date'},