]> git.wh0rd.org - tt-rss.git/blame - tt-rss.php
add error.php
[tt-rss.git] / tt-rss.php
CommitLineData
da5d0d09
AD
1<? require_once "version.php" ?>
2<? require_once "config.php" ?>
3
1cd17194
AD
4<html>
5<head>
6 <title>Tiny Tiny RSS</title>
da5d0d09
AD
7
8 <? if (USE_COMPACT_STYLESHEET) { ?>
9
628eb1bd
AD
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">
da5d0d09
AD
14
15 <? } else { ?>
16
628eb1bd
AD
17 <link rel="stylesheet" href="tt-rss.css" type="text/css">
18
da5d0d09 19 <link title="Compact Stylesheet" rel="alternate stylesheet"
628eb1bd 20 type="text/css" href="tt-rss_compact.css"/>
da5d0d09
AD
21
22 <? } ?>
628eb1bd 23
331900c6 24 <script type="text/javascript" src="functions.js"></script>
1cd17194 25 <script type="text/javascript" src="tt-rss.js"></script>
d5224f0d
AD
26 <!--[if gte IE 5.5000]>
27 <script type="text/javascript" src="pngfix.js"></script>
28 <![endif]-->
d76a3b03 29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
1cd17194
AD
30</head>
31
32<body onload="init()">
33
828a8ecc 34<table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
da5d0d09 35<? if (DISPLAY_HEADER) { ?>
1cd17194 36<tr>
b3a9dadd 37 <td colspan="2" class="headerBox">
828a8ecc
AD
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>
e2f8f7b4 46
f84a97a3
AD
47 <div id="userDlg">&nbsp;</div>
48
2c1dd701
AD
49 </td>
50</tr>
da5d0d09 51<? } ?>
1cd17194 52<tr>
f0601b87 53 <td valign="top" rowspan="3" class="feeds">
caa4e57f 54
1a66d16e
AD
55 <!-- <div id="feeds">&nbsp;</div> -->
56
8143ae1f
AD
57 <div id="dispSwitch">
58 <a id="dispSwitchPrompt" href="javascript:toggleTags()">display tags</a>
59 </div>
60
5bfef089 61 <iframe frameborder="0"
6adbdbee 62 src="backend.php?op=error&msg=Loading,%20please wait..."
5bfef089 63 id="feeds-frame" name="feeds-frame" class="feedsFrame"> </iframe>
7a991cac
AD
64
65 <? if (DISPLAY_FEEDLIST_ACTIONS) { ?>
66
3745788e 67 <div align="center">All feeds:
caa4e57f 68
3745788e
AD
69 <select id="allFeedsChooser">
70 <option>Update</option>
71 <option>Mark as read</option>
cbe45fa8 72 <option>Show only unread</option>
3745788e
AD
73 </select>
74
75 <input type="submit" class="button" onclick="allFeedsMenuGo()" value="Go">
27be66c3 76
3745788e 77 </div>
caa4e57f 78
7a991cac
AD
79 <? } ?>
80
1cd17194 81 </td>
f0601b87 82 <td valign="top" class="headlinesToolbarBox">
e828e31e 83 <table width="100%" cellpadding="0" cellspacing="0">
ac43eba1 84
ac43eba1 85 <tr><td class="headlinesToolbar" id="headlinesToolbar">
4ce19859 86 <input id="searchbox"
f0601b87
AD
87 onblur="javascript:enableHotkeys()" onfocus="javascript:disableHotkeys()"
88 onchange="javascript:search()">
52b51244
AD
89 <select id="searchmodebox">
90 <option>This feed</option>
91 <option>All feeds</option>
92 </select>
93
ac43eba1 94 <input type="submit"
4ce19859 95 class="button" onclick="javascript:search()" value="Search">
f0601b87 96
033e47e0
AD
97 &nbsp;
98
99 View:
f0601b87
AD
100
101 <select id="viewbox" onchange="javascript:viewCurrentFeed(0, '')">
d6f55ce8 102 <option>All Articles</option>
f0601b87 103 <option>Starred</option>
ac43eba1 104 <option selected>Unread</option>
b5aa95e7 105 <option>Unread or Starred</option>
bdd01d3f 106 <option>Unread or Updated</option>
f0601b87
AD
107 </select>
108
cb1083a1
AD
109 &nbsp;Limit:
110
111 <select id="limitbox" onchange="javascript:viewCurrentFeed(0, '')">
f1b9a8ee
AD
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
cb1083a1
AD
134 </select>
135
ac43eba1
AD
136 &nbsp;Feed: <input class="button" type="submit"
137 onclick="javascript:viewCurrentFeed(0, 'ForceUpdate')" value="Update">
f0601b87 138
a7de14fc 139 <input class="button" type="submit" id="btnMarkFeedAsRead"
ac43eba1 140 onclick="javascript:viewCurrentFeed(0, 'MarkAllRead')" value="Mark as read">
f0601b87 141
a14f82f2
AD
142 </td>
143 <td align="right">
6de5d056 144 Actions: <select id="quickMenuChooser">
cbe45fa8 145 <option id="qmcPrefs" selected>Preferences...</option>
7a991cac
AD
146 <option disabled>--------</option>
147 <option style="color : #5050aa" disabled>Feed actions:</option>
cbe45fa8
AD
148 <option id="qmcAddFeed">&nbsp;&nbsp;Add new feed</option>
149 <option id="qmcRemoveFeed">&nbsp;&nbsp;Remove this feed</option>
e2f8f7b4 150 <!-- <option>Edit this feed</option> -->
7a991cac
AD
151 <option disabled>--------</option>
152 <option style="color : #5050aa" disabled>All feeds:</option>
cbe45fa8
AD
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>
e2f8f7b4
AD
156 </select>
157 <input type="submit" class="button" onclick="quickMenuGo()" value="Go">
a14f82f2
AD
158 </td>
159 </tr>
f0601b87
AD
160 </table>
161 </td>
162</tr><tr>
1cd17194 163 <td id="headlines" class="headlines" valign="top">
5bfef089 164 <iframe frameborder="0" name="headlines-frame"
e828e31e
AD
165 id="headlines-frame" class="headlinesFrame"
166 src="backend.php?op=error&msg=No%20feed%20selected."></iframe>
1cd17194 167 </td>
bb7cface 168</tr><tr>
1cd17194 169 <td class="content" id="content" valign="top">
5bfef089
AD
170 <iframe frameborder="0" name="content-frame"
171 id="content-frame" class="contentFrame"> </iframe>
1cd17194
AD
172 </td>
173</tr>
da5d0d09 174<? if (DISPLAY_FOOTER) { ?>
1cd17194 175<tr>
e828e31e 176 <td colspan="2" class="footer">
7936e979 177 <a href="http://bah.spb.su/~fox/tt-rss/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005 Andrew Dolgov
0b615681
AD
178 <? if (WEB_DEMO_MODE) { ?>
179 <br>Running in demo mode, some functionality is disabled.
180 <? } ?>
1cd17194
AD
181 </td>
182</td>
da5d0d09 183<? } ?>
1cd17194
AD
184</table>
185
186
187</body>
188</html>