]>
Commit | Line | Data |
---|---|---|
1afd6227 AD |
1 | <html> |
2 | <head> | |
3 | <title>Tiny Tiny RSS : Login</title> | |
4 | <link rel="stylesheet" type="text/css" href="mobile.css"> | |
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
6 | <script type="text/javascript" charset="utf-8" src="mobile.js"></script> | |
7 | </head> | |
8 | ||
9 | <script type="text/javascript"> | |
10 | function init() { | |
11 | ||
12 | if (arguments.callee.done) return; | |
13 | arguments.callee.done = true; | |
14 | ||
15 | var login = document.forms["loginForm"].login; | |
16 | var click = document.forms["loginForm"].click; | |
17 | ||
18 | login.focus(); | |
19 | click.disabled = false; | |
20 | ||
21 | } | |
22 | function languageChange(elem) { | |
23 | try { | |
24 | document.forms['loginForm']['click'].disabled = true; | |
25 | ||
26 | var lang = elem[elem.selectedIndex].value; | |
27 | setCookie("ttrss_lang", lang, <?php print SESSION_COOKIE_LIFETIME ?>); | |
28 | window.location.reload(); | |
29 | } catch (e) { | |
30 | exception_error("languageChange", e); | |
31 | } | |
32 | } | |
33 | ||
34 | </script> | |
35 | ||
36 | <script type="text/javascript"> | |
37 | if (document.addEventListener) { | |
38 | document.addEventListener("DOMContentLoaded", init, null); | |
39 | } | |
40 | window.onload = init; | |
41 | </script> | |
42 | ||
43 | ||
44 | <body> | |
45 | ||
46 | <div id="content"> | |
47 | <div id="heading">Tiny Tiny RSS</div> | |
48 | ||
49 | <form action="index.php" method="POST" name="loginForm"> | |
50 | <input type="hidden" name="rt" value="<?php echo $_GET['rt'] ?>"> | |
51 | <input type="hidden" name="login_action" value="do_login"> | |
52 | ||
53 | <?php if ($_SESSION['login_error_msg']) { ?> | |
54 | <div class="loginError"><?php echo $_SESSION['login_error_msg'] ?></div> | |
55 | <?php $_SESSION['login_error_msg'] = ""; ?> | |
56 | <?php } ?> | |
57 | ||
58 | <table> | |
59 | <tr><td align='right'><?php echo __("Login:") ?></td><td><input type="text" name="login"></td> | |
60 | <tr><td align='right'><?php echo __("Password:") ?></td><td><input type="password" name="password"></tr> | |
61 | ||
62 | <tr><td align="right"><?php echo __("Language:") ?></td> | |
63 | <td> | |
64 | <?php | |
65 | print_select_hash("language", $_COOKIE["ttrss_lang"], get_translations(), | |
66 | "style='width : 100%' onchange='languageChange(this)'"); | |
67 | ||
68 | ?> | |
69 | </td></tr> | |
70 | <tr><td colspan='2'> | |
71 | <input type="submit" class="button" value="<?php echo __('Log in') ?>" name="click"> | |
72 | </td></tr> | |
73 | </table> | |
74 | </form> | |
75 | </div> | |
76 | ||
77 | </body> | |
78 | </html> | |
79 |