]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix layout of feed editor
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 20 May 2006 12:43:50 +0000 (13:43 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 20 May 2006 12:43:50 +0000 (13:43 +0100)
backend.php

index 183cacbcd5a0baa12c6e78042437dcf1a7c37ea4..267cc7dc92763bcb26d5876a4263412f9724ec6d 100644 (file)
                                print "<tr><td>Category:</td>";
                                print "<td>";
 
-                               print_feed_cat_select($link, "cat_id", $cat_id);
+                               print_feed_cat_select($link, "cat_id", $cat_id, "class=\"iedit\"");
 
                                print "</td>";
                                print "</td></tr>";
 
                        print "<td>";
 
-                       print "<select name=\"update_interval\">";
-                       
-                       foreach (array_keys($update_intervals) as $i) {
-                       
-                               if ($i == $update_interval) {
-                                       $selected = "selected";
-                               } else {
-                                       $selected = "";
-                               }                                       
-                               print "<option $selected value=\"$i\">" . $update_intervals[$i] . "</option>";
-                       }
-                               
-                       print "</select>";
+                       print_select_hash("update_interval", $update_interval, $update_intervals,
+                               "class=\"iedit\"");
 
                        print "</td>";
 
                                $disabled = "disabled";
                        }
 
-                       print "<select $disabled name=\"parent_feed\">";
+                       print "<select class=\"iedit\" $disabled name=\"parent_feed\">";
                        
                        print "<option value=\"0\">Not linked</option>";
 
 
                        print "<td>";
 
-                       print "<select name=\"purge_interval\">";
+                       print_select_hash("purge_interval", $purge_interval, $purge_intervals, 
+                               "class=\"iedit\"");
                        
-                       foreach (array_keys($purge_intervals) as $i) {
-                       
-                               if ($i == $purge_interval) {
-                                       $selected = "selected";
-                               } else {
-                                       $selected = "";
-                               }                                       
-                               print "<option $selected value=\"$i\">" . $purge_intervals[$i] . "</option>";
-                       }
-                               
-                       print "</select>";
-
                        print "</td>";
 
                        $auth_login = db_fetch_result($result, 0, "auth_login");