/[BackupPC]/trunk/lib/BackupPC/SearchLib.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/BackupPC/SearchLib.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 87 by dpavlin, Sun Aug 28 14:05:08 2005 UTC revision 91 by dpavlin, Sun Aug 28 17:53:46 2005 UTC
# Line 195  sub getFilesHyperEstraier($) { Line 195  sub getFilesHyperEstraier($) {
195          my $q = $param->{'search_filename'};          my $q = $param->{'search_filename'};
196          my $shareid = $param->{'search_share'};          my $shareid = $param->{'search_share'};
197    
198          if ($q) {          if (length($q) > 0) {
199                  $q =~ s/(.)/$1 /g;                  # exact match
200                    $cond->add_attr("filepath ISTRINC $q");
201    
202                    $q =~ s/(.)/$1 /g;
203                  # set the search phrase to the search condition object                  # set the search phrase to the search condition object
204                  $cond->set_phrase($q);                  $cond->set_phrase($q);
205          }          }
# Line 373  sub displayGrid($) { Line 375  sub displayGrid($) {
375          my $start_t = time();          my $start_t = time();
376    
377          my ($results, $files);          my ($results, $files);
378          if ($param->{'use_hest'}) {          if ($param->{'use_hest'} && length($hilite) > 0) {
379                  ($results, $files) = getFilesHyperEstraier($param);                  ($results, $files) = getFilesHyperEstraier($param);
380          } else {          } else {
381                  ($results, $files) = getFiles($param);                  ($results, $files) = getFiles($param);
# Line 435  sub displayGrid($) { Line 437  sub displayGrid($) {
437                  my $typeStr  = BackupPC::Attrib::fileType2Text(undef, $file->{'type'});                  my $typeStr  = BackupPC::Attrib::fileType2Text(undef, $file->{'type'});
438                  $retHTML .= qq{<tr class="fviewborder">};                  $retHTML .= qq{<tr class="fviewborder">};
439    
440                  $retHTML .= qq{<td>$i</td>};                  $retHTML .= qq{<td class="fviewborder">$i</td>};
441    
442                  $retHTML .=                  $retHTML .=
443                          qq{<td class="fviewborder" align="right">} . $file->{'hname'} . ':' . $file->{'sname'} . qq{</td>} .                          qq{<td class="fviewborder" align="right">} . $file->{'hname'} . ':' . $file->{'sname'} . qq{</td>} .

Legend:
Removed from v.87  
changed lines
  Added in v.91

  ViewVC Help
Powered by ViewVC 1.1.26