Ignore:
Timestamp:
08/15/06 04:06:06 (14 years ago)
Author:
rvelices
Message:

feature 519: quick search (first version)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/search_rules.php

    r1119 r1537  
    6262$search = get_search_array($_GET['search_id']); 
    6363 
    64 $template->assign_vars( 
    65   array( 
    66     'INTRODUCTION' 
    67       => 'OR' == $search['mode'] 
    68       ? l10n('At least one listed rule must be satisfied.') 
    69       : l10n('Each listed rule must be satisfied.'), 
    70     ) 
    71   ); 
     64if (isset($search['q'])) 
     65{ 
     66  $template->assign_block_vars( 
     67    'words', 
     68    array( 
     69      'CONTENT' => $search['q'] 
     70        ) 
     71    ); 
     72} 
     73else 
     74{ 
     75  $template->assign_vars( 
     76    array( 
     77      'INTRODUCTION' 
     78        => 'OR' == $search['mode'] 
     79        ? l10n('At least one listed rule must be satisfied.') 
     80        : l10n('Each listed rule must be satisfied.'), 
     81      ) 
     82    ); 
     83} 
    7284 
    7385if (isset($search['fields']['allwords'])) 
Note: See TracChangeset for help on using the changeset viewer.