print "<div class=\"dlgSecCont\">";
- if (!SPHINX_ENABLED) {
-
- print "<input dojoType=\"dijit.form.ValidationTextBox\"
- style=\"font-size : 16px; width : 12em;\"
- required=\"1\" name=\"query\" type=\"search\" value=''>";
-
- print " " . __('match on')." ";
-
- $search_fields = array(
- "title" => __("Title"),
- "content" => __("Content"),
- "both" => __("Title or content"));
-
- print_select_hash("match_on", 3, $search_fields,
- 'dojoType="dijit.form.Select"');
- } else {
- print "<input dojoType=\"dijit.form.ValidationTextBox\"
- style=\"font-size : 16px; width : 20em;\"
- required=\"1\" name=\"query\" type=\"search\" value=''>";
- }
-
+ print "<input dojoType=\"dijit.form.ValidationTextBox\"
+ style=\"font-size : 16px; width : 20em;\"
+ required=\"1\" name=\"query\" type=\"search\" value=''>";
print "<hr/>".__('Limit search to:')." ";
}\r
\r
@$search_mode = db_escape_string($_REQUEST["search_mode"]);\r
- @$match_on = db_escape_string($_REQUEST["match_on"]);\r
-\r
- if (!$match_on) {\r
- $match_on = "both";\r
- }\r
+ $match_on = "both"; // deprecated, TODO: remove\r
\r
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("H0", $timing_info);\r
\r