]> git.wh0rd.org - tt-rss.git/blob - tt-rss.php
toggle hide/display only unread feeds, All feeds: button ops changed into selector
[tt-rss.git] / tt-rss.php
1 <? require_once "version.php" ?>
2 <? require_once "config.php" ?>
3
4 <html>
5 <head>
6 <title>Tiny Tiny RSS</title>
7
8 <? if (USE_COMPACT_STYLESHEET) { ?>
9
10 <link rel="stylesheet" href="tt-rss_compact.css" type="text/css">
11
12 <link rel="alternate stylesheet" title="Normal Stylesheet"
13 type="text/css" href="tt-rss.css">
14
15 <? } else { ?>
16
17 <link rel="stylesheet" href="tt-rss.css" type="text/css">
18
19 <link title="Compact Stylesheet" rel="alternate stylesheet"
20 type="text/css" href="tt-rss_compact.css"/>
21
22 <? } ?>
23
24 <script type="text/javascript" src="functions.js"></script>
25 <script type="text/javascript" src="tt-rss.js"></script>
26 <!--[if gte IE 5.5000]>
27 <script type="text/javascript" src="pngfix.js"></script>
28 <![endif]-->
29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
30 </head>
31
32 <body onload="init()">
33
34 <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
35 <? if (DISPLAY_HEADER) { ?>
36 <tr>
37 <td colspan="2" class="headerBox">
38 <table cellspacing="0" cellpadding="0" width="100%"><tr>
39 <td class="header" valign="middle">
40 <img src="images/ttrss_logo.png" alt="logo">
41 </td>
42 <td align="right" valign="top">
43 <div id="notify"><span id="notify_body"></div>
44 </td>
45 </tr></table>
46
47 <div id="userDlg">&nbsp;</div>
48
49 </td>
50 </tr>
51 <? } ?>
52 <tr>
53 <td valign="top" rowspan="3" class="feeds">
54
55 <!-- <div id="feeds">&nbsp;</div> -->
56
57 <div id="dispSwitch">
58 <a id="dispSwitchPrompt" href="javascript:toggleTags()">display tags</a>
59 </div>
60
61 <iframe frameborder="0"
62 src="backend.php?op=error&msg=Loading,%20please wait..."
63 id="feeds-frame" name="feeds-frame" class="feedsFrame"> </iframe>
64
65 <div align="center">All feeds:
66
67 <select id="allFeedsChooser">
68 <option>Update</option>
69 <option>Mark as read</option>
70 <option>Toggle display read</option>
71 </select>
72
73 <input type="submit" class="button" onclick="allFeedsMenuGo()" value="Go">
74
75 </div>
76
77 </td>
78 <td valign="top" class="headlinesToolbarBox">
79 <table width="100%" cellpadding="0" cellspacing="0">
80
81 <tr><td class="headlinesToolbar" id="headlinesToolbar">
82 <input id="searchbox"
83 onblur="javascript:enableHotkeys()" onfocus="javascript:disableHotkeys()"
84 onchange="javascript:search()">
85 <select id="searchmodebox">
86 <option>This feed</option>
87 <option>All feeds</option>
88 </select>
89
90 <input type="submit"
91 class="button" onclick="javascript:search()" value="Search">
92
93 &nbsp;
94
95 View:
96
97 <select id="viewbox" onchange="javascript:viewCurrentFeed(0, '')">
98 <option>All Articles</option>
99 <option>Starred</option>
100 <option selected>Unread</option>
101 <option>Unread or Starred</option>
102 <option>Unread or Updated</option>
103 </select>
104
105 &nbsp;Limit:
106
107 <select id="limitbox" onchange="javascript:viewCurrentFeed(0, '')">
108
109 <?
110 $limits = array(15 => 15, 30 => 30, 60 => 60);
111
112 if (DEFAULT_ARTILE_LIMIT >= 0) {
113 $limits[DEFAULT_ARTICLE_LIMIT] = DEFAULT_ARTICLE_LIMIT;
114 }
115
116 asort($limits);
117
118 array_push($limits, 0);
119
120 foreach ($limits as $key) {
121 print "<option";
122 if ($key == DEFAULT_ARTICLE_LIMIT) { print " selected"; }
123 print ">";
124
125 if ($limits[$key] == 0) { print "All"; } else { print $limits[$key]; }
126
127 print "</option>";
128 } ?>
129
130 </select>
131
132 &nbsp;Feed: <input class="button" type="submit"
133 onclick="javascript:viewCurrentFeed(0, 'ForceUpdate')" value="Update">
134
135 <input class="button" type="submit" id="btnMarkFeedAsRead"
136 onclick="javascript:viewCurrentFeed(0, 'MarkAllRead')" value="Mark as read">
137
138 </td>
139 <td align="right">
140 Actions: <select id="quickMenuChooser">
141 <option selected>Preferences</option>
142 <option disabled>-----</option>
143 <option disabled>Feed actions:</option>
144 <option>&nbsp;&nbsp;Add new feed</option>
145 <option>&nbsp;&nbsp;Remove this feed</option>
146 <!-- <option>Edit this feed</option> -->
147 </select>
148 <input type="submit" class="button" onclick="quickMenuGo()" value="Go">
149 </td>
150 </tr>
151 </table>
152 </td>
153 </tr><tr>
154 <td id="headlines" class="headlines" valign="top">
155 <iframe frameborder="0" name="headlines-frame"
156 id="headlines-frame" class="headlinesFrame"
157 src="backend.php?op=error&msg=No%20feed%20selected."></iframe>
158 </td>
159 </tr><tr>
160 <td class="content" id="content" valign="top">
161 <iframe frameborder="0" name="content-frame"
162 id="content-frame" class="contentFrame"> </iframe>
163 </td>
164 </tr>
165 <? if (DISPLAY_FOOTER) { ?>
166 <tr>
167 <td colspan="2" class="footer">
168 <a href="http://bah.spb.su/~fox/tt-rss/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005 Andrew Dolgov
169 <? if (WEB_DEMO_MODE) { ?>
170 <br>Running in demo mode, some functionality is disabled.
171 <? } ?>
172 </td>
173 </td>
174 <? } ?>
175 </table>
176
177
178 </body>
179 </html>