style=\"font-size : 16px; width : 20em;\"
name=\"reg_exp\" value=\"$reg_exp\"/>";
+ print "<hr/>";
+ print "<input id=\"filterDlg_inverse\" dojoType=\"dijit.form.CheckBox\"
+ name=\"inverse\" $inverse_checked/>";
+ print "<label for=\"filterDlg_inverse\">".__("Inverse regular expression matching")."</label>";
+
print "<hr/>" . __("on field") . " ";
print_select_hash("filter_type", $filter_type, $filter_types,
'dojoType="dijit.form.Select"');
'dojoType="dijit.form.FilteringSelect"');
print "</span>";
- print "<p>";
-
- print "<input id=\"filterDlg_inverse\" dojoType=\"dijit.form.CheckBox\"
- name=\"inverse\" $inverse_checked/>";
-
- print "<label for=\"filterDlg_inverse\">".__("Inverse matching")."</label>";
-
print "</div>";
print "<div class=\"dlgButtons\">";
break;
}
+ if (isset($rule['inverse'])) $qpart = "NOT ($qpart)";
+
if (isset($rule["feed_id"]) && $rule["feed_id"] > 0) {
$qpart .= " AND feed_id = " . db_escape_string($link, $rule["feed_id"]);
}
$qpart .= " AND $cat_qpart";
}
- if (isset($rule['inverse'])) $qpart = "NOT ($qpart)";
-
array_push($query, "($qpart)");
}