diff options
author | Andrew Dolgov <[email protected]> | 2006-05-22 05:35:20 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-05-22 05:35:20 +0100 |
commit | 4220b0bddbff8ee0ded072f75442a9e8d9a1313f (patch) | |
tree | cd6ac36b5374ddc347d13a2c1ccad2bb9ec2d681 /backend.php | |
parent | 071644795cdaf97601ba96d9c89b7910b49ab617 (diff) |
rework filter editor/add infobox layout, misc fixes
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/backend.php b/backend.php index a3ba821d1..dd94a93b9 100644 --- a/backend.php +++ b/backend.php @@ -2132,12 +2132,14 @@ print "<tr><td>Match:</td> <td><input onkeypress=\"return filterCR(event)\" onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\" - name=\"reg_exp\" size=\"30\" value=\"$reg_exp\"> "; + name=\"reg_exp\" class=\"iedit\" value=\"$reg_exp\">"; - print_select_hash("filter_type", $filter_type, $filter_types); + print "</td><td>"; + + print_select_hash("filter_type", $filter_type, $filter_types, "class=\"iedit\""); print "</td></tr>"; - print "<tr><td>Feed:</td><td>"; + print "<tr><td>Feed:</td><td colspan='2'>"; print_feed_select($link, "feed_id", $feed_id); @@ -2145,7 +2147,7 @@ print "<tr><td>Action:</td>"; - print "<td><select name=\"action_id\">"; + print "<td colspan='2'><select name=\"action_id\">"; $result = db_query($link, "SELECT id,description FROM ttrss_filter_actions ORDER BY name"); @@ -2254,6 +2256,7 @@ print "<input type=\"submit\" class=\"button\" onclick=\"javascript:displayDlg('quickAddFilter', false)\" + id=\"create_filter_btn\" value=\"Create filter\">"; $result = db_query($link, "SELECT @@ -2346,22 +2349,14 @@ print "<p id=\"filterOpToolbar\">"; - if ($subop == "edit") { - print "Edit filter: - <input type=\"submit\" class=\"button\" - onclick=\"javascript:filterEditSave()\" value=\"Save\"> - <input type=\"submit\" class=\"button\" - onclick=\"javascript:filterEditCancel()\" value=\"Cancel\">"; - - } else { - - print " + print " Selection: <input type=\"submit\" class=\"button\" disabled=\"true\" onclick=\"javascript:editSelectedFilter()\" value=\"Edit\"> <input type=\"submit\" class=\"button\" disabled=\"true\" onclick=\"javascript:removeSelectedFilters()\" value=\"Remove\">"; - } + + print "</p>"; } else { @@ -2793,12 +2788,13 @@ print "<tr><td>Match:</td> <td><input onkeypress=\"return filterCR(event)\" onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\" - name=\"reg_exp\" size=\"30\"> "; - - print_select_hash("filter_type", 1, $filter_types); + name=\"reg_exp\" class=\"iedit\">"; + print "</td><td>"; + + print_select_hash("filter_type", 1, $filter_types, "class=\"iedit\""); print "</td></tr>"; - print "<tr><td>Feed:</td><td>"; + print "<tr><td>Feed:</td><td colspan='2'>"; print_feed_select($link, "feed_id"); @@ -2806,7 +2802,7 @@ print "<tr><td>Action:</td>"; - print "<td><select name=\"action_id\">"; + print "<td colspan='2'><select name=\"action_id\">"; $result = db_query($link, "SELECT id,description FROM ttrss_filter_actions ORDER BY name"); |