]> git.wh0rd.org - tt-rss.git/blob - tt-rss.php
quick feed add dialog + related interface tweaks
[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 title="Compact Stylesheet"
11 rel="stylesheet" href="tt-rss_compact.css" type="text/css">
12 <link title="Normal Stylesheet" rel="alternate stylesheet"
13 type="text/css" href="tt-rss.css"/>
14
15 <? } else { ?>
16
17 <link title="Normal Stylesheet"
18 rel="stylesheet" href="tt-rss.css" type="text/css">
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="qafDialog">
48 Feed URL: <input id="qafInput">
49 <input class="button"
50 type="submit" onclick="javascript:qafAdd()" value="Add feed">
51 <input class="button"
52 type="submit" onclick="javascript:cancelDialog(this)" value="Cancel">
53 </div>
54 </td>
55 </tr>
56 <? } ?>
57 <tr>
58 <td valign="top" rowspan="3" class="feeds">
59
60 <!-- <div id="feeds">&nbsp;</div> -->
61
62 <div id="dispSwitch">
63 <a id="dispSwitchPrompt" href="javascript:toggleTags()">display tags</a>
64 </div>
65
66 <iframe frameborder="0"
67 src="backend.php?op=error&msg=Loading,%20please wait..."
68 id="feeds-frame" name="feeds-frame" class="feedsFrame"> </iframe>
69
70 <p align="center">All feeds:
71
72 <input class="button" type="submit"
73 onclick="javascript:scheduleFeedUpdate(true)" value="Update">
74
75 <input class="button" type="submit"
76 onclick="javascript:catchupAllFeeds()" value="Mark as read">
77
78 </p>
79
80 </td>
81 <td valign="top" class="headlinesToolbarBox">
82 <table width="100%" cellpadding="0" cellspacing="0">
83
84 <!-- <tr><td id="headlinesTitle" class="headlinesTitle">
85 &nbsp;
86 </td></tr> -->
87 <tr><td class="headlinesToolbar" id="headlinesToolbar">
88 <input id="searchbox"
89 onblur="javascript:enableHotkeys()" onfocus="javascript:disableHotkeys()"
90 onchange="javascript:search()">
91 <select id="searchmodebox">
92 <option>This feed</option>
93 <option>All feeds</option>
94 </select>
95
96 <input type="submit"
97 class="button" onclick="javascript:search()" value="Search">
98 <!-- <input type="submit"
99 class="button" onclick="javascript:resetSearch()" value="Reset"> -->
100
101 &nbsp;View:
102
103 <select id="viewbox" onchange="javascript:viewCurrentFeed(0, '')">
104 <option>All Articles</option>
105 <option>Starred</option>
106 <option selected>Unread</option>
107 <option>Unread or Starred</option>
108 <option>Unread or Updated</option>
109 </select>
110
111 &nbsp;Limit:
112
113 <select id="limitbox" onchange="javascript:viewCurrentFeed(0, '')">
114
115 <?
116 $limits = array(15 => 15, 30 => 30, 60 => 60);
117
118 if (DEFAULT_ARTILE_LIMIT >= 0) {
119 $limits[DEFAULT_ARTICLE_LIMIT] = DEFAULT_ARTICLE_LIMIT;
120 }
121
122 asort($limits);
123
124 array_push($limits, 0);
125
126 foreach ($limits as $key) {
127 print "<option";
128 if ($key == DEFAULT_ARTICLE_LIMIT) { print " selected"; }
129 print ">";
130
131 if ($limits[$key] == 0) { print "All"; } else { print $limits[$key]; }
132
133 print "</option>";
134 } ?>
135
136 </select>
137
138 &nbsp;Feed: <input class="button" type="submit"
139 onclick="javascript:viewCurrentFeed(0, 'ForceUpdate')" value="Update">
140
141 <input class="button" type="submit" id="btnMarkFeedAsRead"
142 onclick="javascript:viewCurrentFeed(0, 'MarkAllRead')" value="Mark as read">
143
144 </td>
145 <td align="right">
146 <select id="quickMenuChooser">
147 <option selected>Preferences</option>
148 <option>Add new feed</option>
149 <!-- <option>Edit this feed</option> -->
150 </select>
151 <input type="submit" class="button" onclick="quickMenuGo()" value="Go">
152 </td>
153 </tr>
154 </table>
155 </td>
156 </tr><tr>
157 <td id="headlines" class="headlines" valign="top">
158 <iframe frameborder="0" name="headlines-frame"
159 id="headlines-frame" class="headlinesFrame"
160 src="backend.php?op=error&msg=No%20feed%20selected."></iframe>
161 </td>
162 </tr><tr>
163 <td class="content" id="content" valign="top">
164 <iframe frameborder="0" name="content-frame"
165 id="content-frame" class="contentFrame"> </iframe>
166 </td>
167 </tr>
168 <? if (DISPLAY_FOOTER) { ?>
169 <tr>
170 <td colspan="2" class="footer">
171 <a href="http://bah.spb.su/~fox/tt-rss/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005 Andrew Dolgov
172 <? if (WEB_DEMO_MODE) { ?>
173 <br>Running in demo mode, some functionality is disabled.
174 <? } ?>
175 </td>
176 </td>
177 <? } ?>
178 </table>
179
180
181 </body>
182 </html>