]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
css-based layout + required fixes
[tt-rss.git] / backend.php
index 719cb1b162c17529469c2c5648a75082537a9148..cfe322b72732e4bd42080f4ddfd0c68404f9602a 100644 (file)
 
        function outputFeedList($link, $tags = false) {
 
-               print "<html><head>
+/*             print "<html><head>
                        <title>Tiny Tiny RSS : Feedlist</title>
                        <link rel=\"stylesheet\" href=\"tt-rss.css\" type=\"text/css\">";
 
                                        document.addEventListener(\"DOMContentLoaded\", init, null);
                                }
                                window.onload = init;
-                       </script>";
+                       </script>"; */
 
                print "<ul class=\"feedList\" id=\"feedList\">\n";
 
 
                print "</ul>";
 
-               print '
-                       <script type="text/javascript">
-                               /* for IE */
-                               function statechange() {
-                                       if (document.readyState == "interactive") init();
-                               }
-                       
-                               if (document.readyState) {      
-                                       if (document.readyState == "interactive" || document.readyState == "complete") {
-                                               init();
-                                       } else {
-                                               document.onreadystatechange = statechange;
-                                       }
-                               }
-                       </script></body></html>';
+#              print '
+#                      <script type="text/javascript">
+#                              /* for IE */
+#                              function statechange() {
+#                                      if (document.readyState == "interactive") init();
+#                              }
+#                      
+#                              if (document.readyState) {      
+#                                      if (document.readyState == "interactive" || document.readyState == "complete") {
+#                                              init();
+#                                      } else {
+#                                              document.onreadystatechange = statechange;
+#                                      }
+#                              }
+#                      </script></body></html>'; 
        }
 
 
                        FROM ttrss_entries,ttrss_user_entries
                        WHERE   id = '$id' AND ref_id = id AND owner_uid = " . $_SESSION["uid"]);
 
-               print "<html><head>
+/*             print "<html><head>
                        <title>Tiny Tiny RSS : Article $id</title>
                        <link rel=\"stylesheet\" href=\"tt-rss.css\" type=\"text/css\">";
 
                        <script type=\"text/javascript\" src=\"prototype.js\"></script>
                        <script type=\"text/javascript\" src=\"functions.js?$script_dt_add\"></script>
                        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
-                       </head><body $rtl_tag>";
+                       </head><body $rtl_tag>"; */
 
                if ($result) {
 
                        </script>";
                }
 
-               print "</body></html>";
+//             print "</body></html>";
        }
 
        if ($op == "viewfeed") {
 
                if ($subop == "undefined") $subop = "";
 
-               print "<html><head>
+/*             print "<html><head>
                        <title>Tiny Tiny RSS : Feed $feed</title>
                        <link rel=\"stylesheet\" href=\"tt-rss.css\" type=\"text/css\">";
 
                } else {
                        print "<link title=\"Compact Stylesheet\" rel=\"alternate stylesheet\" 
                                        type=\"text/css\" href=\"tt-rss_compact.css\"/>";
-               }
+               } */
 
                if ($subop == "CatchupSelected") {
                        $ids = split(",", db_escape_string($_GET["ids"]));
 
                $script_dt_add = get_script_dt_add();
 
-               print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">  
+/*             print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">  
                        <script type=\"text/javascript\" src=\"prototype.js\"></script>
                        <script type=\"text/javascript\" src=\"functions.js?$script_dt_add\"></script>
                        <script type=\"text/javascript\" src=\"viewfeed.js?$script_dt_add\"></script>
                                document.addEventListener(\"DOMContentLoaded\", init, null);
                        }
                        window.onload = init;
-                       </script>";
+                       </script>"; */
 
                /// START /////////////////////////////////////////////////////////////////////////////////
 
 
                print "</div>";
 
-               print "
-                       <script type=\"text/javascript\">
-                               try {
-                                       document.onkeydown = hotkey_handler;
-                                       try {
-                                               parent.update_all_counters(\"$feed\");
-                                       } catch (e) {
-                                               // this is workaround against mysterious permission
-                                               // denied feature/bug of firefox (ticket #73)
-                                               // if call from this context failed - ignore silently
-                                               exception_error(\"viewfeed/footer1/counters\", e, true);
-                                       }
-                               } catch (e) {
-                                       exception_error(\"viewfeed/footer1\", e);
-                               }
-
-                               /* for IE */
-                               function statechange() {
-                                       if (document.readyState == \"interactive\") init();
-                               }
-
-                               if (document.readyState) {      
-                                       if (document.readyState == \"interactive\" || document.readyState == \"complete\") {
-                                               init();
-                                       } else {
-                                               document.onreadystatechange = statechange;
-                                       }
-                               }
-                       </script>";
-
-               print "</body></html>";
+#              print "
+#                      <script type=\"text/javascript\">
+#                              try {
+#                                      document.onkeydown = hotkey_handler;
+#                                      try {
+#                                              parent.update_all_counters(\"$feed\");
+#                                      } catch (e) {
+#                                              // this is workaround against mysterious permission
+#                                              // denied feature/bug of firefox (ticket #73)
+#                                              // if call from this context failed - ignore silently
+#                                              exception_error(\"viewfeed/footer1/counters\", e, true);
+#                                      }
+#                              } catch (e) {
+#                                      exception_error(\"viewfeed/footer1\", e);
+#                              }
+#
+#                              /* for IE */
+#                              function statechange() {
+#                                      if (document.readyState == \"interactive\") init();
+#                              }
+#
+#                              if (document.readyState) {      
+#                                      if (document.readyState == \"interactive\" || document.readyState == \"complete\") {
+#                                              init();
+#                                      } else {
+#                                              document.onreadystatechange = statechange;
+#                                      }
+#                              }
+#                      </script>";
+#
+#              print "</body></html>";
        }
 
        if ($op == "pref-feeds") {