]> git.wh0rd.org - tt-rss.git/blob - tt-rss.php
actions menu changes
[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 <? if (DISPLAY_FEEDLIST_ACTIONS) { ?>
66
67 <div align="center">All feeds:
68
69 <select id="allFeedsChooser">
70 <option>Update</option>
71 <option>Mark as read</option>
72 <option>Show only unread</option>
73 </select>
74
75 <input type="submit" class="button" onclick="allFeedsMenuGo()" value="Go">
76
77 </div>
78
79 <? } ?>
80
81 </td>
82 <td valign="top" class="headlinesToolbarBox">
83 <table width="100%" cellpadding="0" cellspacing="0">
84
85 <tr><td class="headlinesToolbar" id="headlinesToolbar">
86 <input id="searchbox"
87 onblur="javascript:enableHotkeys()" onfocus="javascript:disableHotkeys()"
88 onchange="javascript:search()">
89 <select id="searchmodebox">
90 <option>This feed</option>
91 <option>All feeds</option>
92 </select>
93
94 <input type="submit"
95 class="button" onclick="javascript:search()" value="Search">
96
97 &nbsp;
98
99 View:
100
101 <select id="viewbox" onchange="javascript:viewCurrentFeed(0, '')">
102 <option>All Articles</option>
103 <option>Starred</option>
104 <option selected>Unread</option>
105 <option>Unread or Starred</option>
106 <option>Unread or Updated</option>
107 </select>
108
109 &nbsp;Limit:
110
111 <select id="limitbox" onchange="javascript:viewCurrentFeed(0, '')">
112
113 <?
114 $limits = array(15 => 15, 30 => 30, 60 => 60);
115
116 if (DEFAULT_ARTILE_LIMIT >= 0) {
117 $limits[DEFAULT_ARTICLE_LIMIT] = DEFAULT_ARTICLE_LIMIT;
118 }
119
120 asort($limits);
121
122 array_push($limits, 0);
123
124 foreach ($limits as $key) {
125 print "<option";
126 if ($key == DEFAULT_ARTICLE_LIMIT) { print " selected"; }
127 print ">";
128
129 if ($limits[$key] == 0) { print "All"; } else { print $limits[$key]; }
130
131 print "</option>";
132 } ?>
133
134 </select>
135
136 &nbsp;Feed: <input class="button" type="submit"
137 onclick="javascript:viewCurrentFeed(0, 'ForceUpdate')" value="Update">
138
139 <input class="button" type="submit" id="btnMarkFeedAsRead"
140 onclick="javascript:viewCurrentFeed(0, 'MarkAllRead')" value="Mark as read">
141
142 </td>
143 <td align="right">
144 Actions: <select id="quickMenuChooser">
145 <option id="qmcPrefs" selected>Preferences...</option>
146 <option disabled>--------</option>
147 <option style="color : #5050aa" disabled>Feed actions:</option>
148 <option id="qmcAddFeed">&nbsp;&nbsp;Add new feed</option>
149 <option id="qmcRemoveFeed">&nbsp;&nbsp;Remove this feed</option>
150 <!-- <option>Edit this feed</option> -->
151 <option disabled>--------</option>
152 <option style="color : #5050aa" disabled>All feeds:</option>
153 <option id="qmcUpdateFeeds">&nbsp;&nbsp;Update</option>
154 <option id="qmcCatchupAll">&nbsp;&nbsp;Mark as read</option>
155 <option id="qmcShowOnlyUnread">&nbsp;&nbsp;Show only unread</option>
156 </select>
157 <input type="submit" class="button" onclick="quickMenuGo()" value="Go">
158 </td>
159 </tr>
160 </table>
161 </td>
162 </tr><tr>
163 <td id="headlines" class="headlines" valign="top">
164 <iframe frameborder="0" name="headlines-frame"
165 id="headlines-frame" class="headlinesFrame"
166 src="backend.php?op=error&msg=No%20feed%20selected."></iframe>
167 </td>
168 </tr><tr>
169 <td class="content" id="content" valign="top">
170 <iframe frameborder="0" name="content-frame"
171 id="content-frame" class="contentFrame"> </iframe>
172 </td>
173 </tr>
174 <? if (DISPLAY_FOOTER) { ?>
175 <tr>
176 <td colspan="2" class="footer">
177 <a href="http://bah.spb.su/~fox/tt-rss/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005 Andrew Dolgov
178 <? if (WEB_DEMO_MODE) { ?>
179 <br>Running in demo mode, some functionality is disabled.
180 <? } ?>
181 </td>
182 </td>
183 <? } ?>
184 </table>
185
186
187 </body>
188 </html>