]> git.wh0rd.org Git - tt-rss.git/commitdiff
per-feed filters tweaks, prefAddFeed table removed, update NEWS
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 21 Nov 2005 13:59:32 +0000 (14:59 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 21 Nov 2005 13:59:32 +0000 (14:59 +0100)
NEWS
backend.php
tt-rss.css

diff --git a/NEWS b/NEWS
index f1cf2bb3a902d37a30e9621a84a2d967631bc0eb..ec13e9b37244563cae9ab80f88077df3565c7a47 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ v1.1          (Dec xy, 2005)
        - Optional loading splashscreen 
        - Reworked compact stylesheet support
        - Interactive user preferences editor
+       - Per-feed content filters
        
 v1.0.7 (Nov 14, 2005)
 
index 2bc775bd610b7a17b7b190fe84f328cb19db61a2..9fe421ffbca029b7a1dc7d3059e6340b86795683 100644 (file)
 
                }
 
-               print "<table class=\"prefAddFeed\"><tr>
-                       <td><input id=\"fadd_link\"></td>
-                       <td colspan=\"4\" align=\"right\">
-                               <a class=\"button\" href=\"javascript:addFeed()\">Add feed</a></td></tr>
-               </table>";
+               print "<div class=\"prefGenericAddBox\">
+                       <input id=\"fadd_link\" size=\"40\">&nbsp;<input 
+                               type=\"submit\" class=\"button\" 
+                               onclick=\"javascript:addFeed()\" value=\"Add feed\"></div>";
 
                $result = db_query($link, "SELECT 
                                id,title,feed_url,substring(last_updated,1,16) as last_updated,
                        array_push($filter_types, $line["description"]);
                }
 
-               print "<table class=\"prefAddFeed\"><tr>
-                       <td><input id=\"fadd_regexp\"></td>
-                       <td>";
+               print "<div class=\"prefGenericAddBox\">
+               <input id=\"fadd_regexp\" size=\"40\">&nbsp;";
+               
                print_select("fadd_match", "Title", $filter_types);     
 
                print "&nbsp;<select id=\"fadd_feed\">";
                        printf("<option id='%d'>%s</option>", $line["id"], $line["title"]);
                }
 
-               print "</select>";
+               print "</select>&nbsp;";
        
-               print"</td><td colspan=\"4\" align=\"right\">
-                               <a class=\"button\" href=\"javascript:addFilter()\">Add filter</a></td></tr>
-               </table>";
+               print "<input type=\"submit\" 
+                       class=\"button\" onclick=\"javascript:addFilter()\" 
+                       value=\"Add filter\">";
 
                $result = db_query($link, "SELECT 
                                ttrss_filters.id AS id,reg_exp,
 
                print "<tr class=\"title\">
                                        <td width=\"5%\">Select</td><td width=\"30%\">Filter expression</td>
-                                       <td width=\"30%\">Description</td><td width=\"10%\">Match</td>
-                                       <td width=\"30%\">Feed</td></tr>";
+                                       <td width=\"30%\">Feed</td><td width=\"10%\">Match</td>
+                                       <td width=\"30%\">Description</td></tr>";
                
                $lnum = 0;
                
 
                                print "<td><a href=\"javascript:editFilter($filter_id);\">" . 
                                        $line["reg_exp"] . "</td>";             
-                                       
+
                                print "<td><a href=\"javascript:editFilter($filter_id);\">" . 
-                                       $line["description"] . "</td>";                 
+                                       $line["feed_title"] . "</td>";                  
 
                                print "<td><a href=\"javascript:editFilter($filter_id);\">" . 
                                        $line["filter_type_descr"] . "</td>";           
                                        
                                print "<td><a href=\"javascript:editFilter($filter_id);\">" . 
-                                       $line["feed_title"] . "</td>";                  
+                                       $line["description"] . "</td>";                 
 
                        } else if ($filter_id != $edit_filter_id) {
 
                                        id=\"FICHK-".$line["id"]."\"></td>";
 
                                print "<td>".$line["reg_exp"]."</td>";          
-                               print "<td>".$line["description"]."</td>";              
-                               print "<td>".$line["filter_type_descr"]."</td>";
                                print "<td>".$line["feed_title"]."</td>";
+                               print "<td>".$line["filter_type_descr"]."</td>";
+                               print "<td>".$line["description"]."</td>";              
 
                        } else {
 
                                print "<td><input id=\"iedit_regexp\" value=\"".$line["reg_exp"].
                                        "\"></td>";
 
-                               print "<td><input id=\"iedit_descr\" value=\"".$line["description"].
-                                       "\"></td>";
-
-                               print "<td>";
-                               print_select("iedit_match", $line["filter_type_descr"], $filter_types);
-                               print "</td>";
-
                                print "<td>";
 
                                print "<select id=\"iedit_feed\">";
                                                $tmp_line["id"], $tmp_line["title"]);
                                }
 
-                               print "</select>";
+                               print "</select></td>";
+
+                               print "<td>";
+                               print_select("iedit_match", $line["filter_type_descr"], $filter_types);
+                               print "</td>";
+
+                               print "<td><input id=\"iedit_descr\" value=\"".$line["description"].
+                                       "\"></td>";
 
                                print "</td>";
                        }
                        } 
                }
 
-               print "<table class=\"prefAddFeed\"><tr>
-                       <td><input id=\"ladd_expr\"></td>";
+               print "<div class=\"prefGenericAddBox\">
+                       <input size=\"40\" id=\"ladd_expr\">&nbsp;";
                        
-               print"<td colspan=\"4\" align=\"right\">
-                               <a class=\"button\" href=\"javascript:addLabel()\">Add label</a></td></tr>
-               </table>";
+               print"<input type=\"submit\" class=\"button\" 
+                       onclick=\"javascript:addLabel()\" value=\"Add label\"></div>";
 
                $result = db_query($link, "SELECT 
                                id,sql_exp,description
                        }
                }
 
-               print "<table class=\"prefAddFeed\"><tr>
-                       <td><input id=\"uadd_box\"></td>";
+               print "<div class=\"prefGenericAddBox\">
+                       <input id=\"uadd_box\" size=\"40\">&nbsp;";
                        
-               print"<td colspan=\"4\" align=\"right\">
-                               <a class=\"button\" href=\"javascript:addUser()\">Add user</a></td></tr>
-               </table>";
+               print"<input type=\"submit\" class=\"button\" 
+                       onclick=\"javascript:addUser()\" value=\"Add user\"></div>";
 
                $result = db_query($link, "SELECT 
                                id,login,access_level,
index 1a91a5e2054fa2b82648efc36f31070f913625c3..56a63a5654aa88fca49bb25cff644241d6162ee8 100644 (file)
@@ -391,14 +391,6 @@ input {
 
 /* preferences */
 
-table.prefAddFeed td {
-       padding : 2px;
-}
-
-table.prefAddFeed input {
-       width : 250px;
-}
-
 table.prefFeedList tr.title td, table.prefFilterList tr.title td,
        table.headlinesList tr.title td, table.prefLabelList tr.title td,
        table.prefPrefsList tr.title td {