]> git.wh0rd.org - tt-rss.git/blobdiff - modules/popup-dialog.php
add support for Sphinx search engine
[tt-rss.git] / modules / popup-dialog.php
index 9ec57537639003e75bdc8d8607251704d086f063..8d3c2cee50eaa5bf823b3b3a4947daf321c388b4 100644 (file)
 
                        print "<div class=\"dlgSecCont\">";
 
-                       print "<input onkeypress=\"return filterCR(event, search)\"
-                               name=\"query\" size=\"20\" type=\"search\"      value=''>";
+                       if (!SPHINX_ENABLE) {
 
-                       print " " . __('match on')." ";
+                               print "<input onkeypress=\"return filterCR(event, search)\"
+                                       name=\"query\" size=\"20\" type=\"search\"      value=''>";
 
-                       $search_fields = array(
-                               "title" => __("Title"),
-                               "content" => __("Content"),
-                               "both" => __("Title or content"));
+                               print " " . __('match on')." ";
 
-                       print_select_hash("match_on", 3, $search_fields); 
+                               $search_fields = array(
+                                       "title" => __("Title"),
+                                               "content" => __("Content"),
+                                       "both" => __("Title or content"));
+       
+                               print_select_hash("match_on", 3, $search_fields); 
+                       } else {
+                               print "<input onkeypress=\"return filterCR(event, search)\"
+                                       name=\"query\" size=\"50\" type=\"search\"      value=''>";
+                       }
 
 
                        print "<br/>".__('Limit search to:')." ";