diff options
author | Andrew Dolgov <[email protected]> | 2008-08-07 09:06:12 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-08-07 09:06:12 +0100 |
commit | 071ec48fd1ec17646d1879bda73489d60fede1c2 (patch) | |
tree | 6a2a9b7f4ac413657bdfa5ee90a25fc512dd39f4 /functions.php | |
parent | e274978132d8f50268c15b780d126a7bb413c6e0 (diff) |
label editor: simple control to add common rules
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/functions.php b/functions.php index e23590d74..a4471fcfe 100644 --- a/functions.php +++ b/functions.php @@ -5646,4 +5646,28 @@ print "</table>"; } + function print_label_dlg_common_examples() { + + print __("Match ") . " "; + + print "<select name=\"label_fields\" onchange=\"labelFieldsCheck(this)\">"; + print "<option value=\"unread\">".__("Unread articles")."</option>"; + print "<option value=\"updated\">".__("Updated articles")."</option>"; + print "<option value=\"kw_title\">".__("Title contains")."</option>"; + print "<option value=\"kw_content\">".__("Content contains")."</option>"; + print "<option value=\"scoreE\">".__("Score is equals")."</option>"; + print "<option value=\"scoreG\">".__("Score is less than")."</option>"; + print "<option value=\"scoreL\">".__("Score is greater than")."</option>"; + print "<option value=\"newerH\">".__("Articles newer than X hours")."</option>"; + print "<option value=\"newerD\">".__("Articles newer than X days")."</option>"; + + print "</select>"; + + print "<input style=\"display : none\" name=\"label_fields_param\" + size=\"10\">"; + + print " <input type=\"submit\" + onclick=\"return addLabelExample()\" + value=\"".__("Add")."\">"; + } ?> |