]> git.wh0rd.org Git - tt-rss.git/blob - mobile/index.php
mobile: add experimental iUI based version
[tt-rss.git] / mobile / index.php
1 <?php
2         error_reporting(E_ERROR | E_WARNING | E_PARSE);
3
4         header('Content-Type: text/html; charset=utf-8');
5
6         define('MOBILE_VERSION', true);
7
8         require_once "../config.php";
9         require_once "functions.php";
10         require_once "../functions.php"; 
11
12         require_once "../sessions.php";
13
14         require_once "../version.php"; 
15         require_once "../db-prefs.php";
16
17         $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
18
19         init_connection($link);
20
21         login_sequence($link, true);
22 ?>
23 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
24          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
25
26 <html xmlns="http://www.w3.org/1999/xhtml">
27 <head>
28 <title>Tiny Tiny RSS</title>
29 <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
30 <link rel="apple-touch-icon" href="../lib/iui/iui-logo-touch-icon.png" />
31 <meta name="apple-touch-fullscreen" content="YES" />
32 <style type="text/css" media="screen">@import "../lib/iui/iui.css";</style>
33 <script type="application/x-javascript" src="../lib/iui/iui.js"></script>
34 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
35
36 </head>
37
38 <style type="text/css">
39         img { max-width : 75%; }
40
41         li.oldItem {
42                 color : gray;
43         }
44
45         img.tinyIcon {
46                 max-width : 16px;
47                 max-height : 16px;
48                 margin-right : 10px;
49                 vertical-align : middle;
50         }
51 </style>
52
53 <script type="text/javascript">
54         function toggleMarked(id, elem) {
55                 alert(id + " => " + elem.getAttribute('toggled'));
56         }
57
58         function togglePublished(id, elem) {
59                 alert(id + " => " + elem.getAttribute('toggled'));
60         }
61
62 </script>
63
64 <body>
65     <div class="toolbar">
66         <h1 id="pageTitle"></h1>
67                   <a id="backButton" class="button" href="#"></a>
68         <a class="button"  target="_self" href="logout.php">Logout</a>
69     </div>
70     
71         <?php render_categories_list($link); ?>
72
73 </body>
74 </html>