diff options
author | Andrew Dolgov <[email protected]> | 2006-03-27 05:31:17 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-03-27 05:31:17 +0100 |
commit | 42096f52025fed93924a54aada2c761a574029dd (patch) | |
tree | f96bbb53743d53c8ab1db3c6a40ff7de7b24bdba /mobile/tt-rss.php | |
parent | 2f4685371a769943da3d4989ed6a0bd96cbab79e (diff) |
more mobile prototyping (2) - add collapse support, etc
Diffstat (limited to 'mobile/tt-rss.php')
-rw-r--r-- | mobile/tt-rss.php | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/mobile/tt-rss.php b/mobile/tt-rss.php index e6943d634..f5a184271 100644 --- a/mobile/tt-rss.php +++ b/mobile/tt-rss.php @@ -14,6 +14,24 @@ login_sequence($link); + /* perform various redirect-needing subops */ + + $subop = db_escape_string($_GET["subop"]); + $go = $_GET["go"]; + + if ($subop == "tc" && !$go) { + + $cat_id = db_escape_string($_GET["id"]); + + if ($cat_id != 0) { + db_query($link, "UPDATE ttrss_feed_categories SET + collapsed = NOT collapsed WHERE id = '$cat_id' AND owner_uid = " . + $_SESSION["uid"]); + header("Location: tt-rss.php"); + return; + } + } + ?> <html> <head> @@ -23,32 +41,14 @@ </head> <body> -<div id="heading"> - -<div id="opsel"> - <form method="GET"> - <select name="go"> - <option>Feeds</option> - <option disabled>Preferences</option> - <option disabled>--------------</option> - <option disabled>[user feed list]</option> - <option disabled>--------------</option> - <option>Logout</option> - </select> - <input type="submit" value="Go"> - </form> -</div> - -</div> - <div id="content"> <? - $go = $_GET["go"]; - - if (!$go || $go == "Feeds") { + if (!$go) { render_feeds_list($link); } else if ($go == "vf") { render_headlines($link); + } else if ($go == "view") { + render_article($link); } else { print "Function not implemented"; } |