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