]> git.wh0rd.org - tt-rss.git/commitdiff
inline feed editor improvements
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 26 Aug 2005 07:05:16 +0000 (08:05 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 26 Aug 2005 07:05:16 +0000 (08:05 +0100)
backend.php
tt-rss.css

index c3805fc03401d4f3b0cbc186b8b3c5c58ee214a8..88fc5dcb32b9163f5f7dba251e46b72deb539c0f 100644 (file)
                while ($line = pg_fetch_assoc($result)) {
 
                        $class = ($lnum % 2) ? "even" : "odd";
-                       
+
                        $feed_id = $line["id"];
 
                        $edit_feed_id = $_GET["id"];
 
+                       if ($subop == "edit" && $feed_id != $edit_feed_id) {
+                               $class .= "Grayed";
+                       }
+
                        print "<tr class=\"$class\" id=\"FEEDR-$feed_id\">";
 
                        $icon_file = ICONS_DIR . "/$feed_id.ico";
                        }
                        print "<td align='center'>$feed_icon</td>";             
 
-                       if ($feed_id != $edit_feed_id || $subop != "edit" ) {
+                       if (!$edit_feed_id || $subop != "edit") {
 
                                print "<td><input onclick='toggleSelectRow(this);' 
                                type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
                                        $line["title"] . "</td>";               
                                print "<td><a href=\"javascript:editFeed($feed_id);\">" . 
                                        $line["feed_url"] . "</td>";            
+                       
+
+                       } else if ($feed_id != $edit_feed_id) {
+
+                               print "<td><input onclick='toggleSelectRow(this);' 
+                               type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
+
+                               print "<td>".$line["title"]."</td>";            
+                               print "<td>".$line["feed_url"]."</td>";         
+
                        } else {
 
                                print "<td><input disabled=\"true\" type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
index 2d3f07f53bceda026f0e757c62fa056bf5e3e611..b8c0b6c2cfc30b67ba4ad64f138c6b9b7ded27fc 100644 (file)
@@ -184,6 +184,15 @@ table.main td.notify {
 
 }
 
+.evenGrayed {
+       background-color : #f0f0f0;
+       color : #909090;
+}
+
+.oddGrayed {
+       color : #909090;
+}
+
 .even {
        background-color : #f0f0f0;
 }