Fixed bug #11895: Cookie detection in new t3skin login screen fails for certain cirum...
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3skin / templates / login.html
1 <!-- ###PAGE### begin -->
2 <div id="t3-login-form-outer">
3 <div id="t3-login-form">
4 <div id="t3-login-image">
5 ###LOGO###
6 </div>
7 <div id="t3-login-form-inner" ###CSS_ERRORCLASS###>
8 <div class="t3-headline">
9 <h2>###HEADLINE###</h2>
10 <div class="t3-icons">
11 <div class="t3-helpicon">
12 <img src="sysext/t3skin/icons/login_help.gif" alt="help" />
13 <div class="t3-help">
14 ###INFO_ABOUT###
15 </div>
16 </div>
17 <div class="t3-reloadicon">
18 <img src="sysext/t3skin/icons/login_reload.gif" alt="reload" onclick="document.loginform.reset(); checkFocus();" />
19 <div class="t3-help">
20 ###INFO_RELOAD###
21 </div>
22 </div>
23 </div>
24 </div>###LOGINBOX_IMAGE###
25 <noscript>
26 <div id="t3-noscript-error">
27 <p>
28 ###ERROR_JAVASCRIPT###
29 </p>
30 </div>
31 </noscript>
32 <div id="t3-nocookies-error" style="display:none">
33 <p>
34 ###ERROR_COOKIES###
35 </p>
36 <p>
37 <a href="#" onclick="document.getElementById('t3-nocookies-error').style.display = 'none'; document.getElementById('t3-login-form-fields').style.display = 'block'; return false;">###ERROR_COOKIES_IGNORE###</a>
38 </p>
39 </div>
40 <div id="t3-login-form-fields">
41 ###FORM###
42 </div>
43 <script type="text/javascript">
44 /*<![CDATA[*/
45 document.cookie = "testcookie";
46 cookieEnabled = (document.cookie.indexOf("testcookie") != -1) ? true : false;
47 if (cookieEnabled) {
48 document.getElementById("t3-login-form-fields").style.display = 'block';
49 }
50 else {
51 document.getElementById("t3-nocookies-error").style.display = 'block';
52 }
53 /*]]>*/
54 </script>
55 </div>
56 ###NEWS###
57 </div>
58 </div>
59 <div id="t3-footer">
60 <div id="t3-meta-links">
61 <a href="http://typo3.org" target="_blank">TYPO3.org</a>
62 <a href="http://typo3.org/donate/" target="_blank">###LABEL_DONATELINK###</a>
63 </div>
64 <div id="t3-copyright-notice">
65 ###COPYRIGHT###
66 </div>
67 </div>
68 <!-- ###PAGE### end -->
69
70 <!-- ###LOGIN_NEWS### begin -->
71 <div id="t3-login-news-outer">
72 <div class="t3-headline">
73 <h2 class="t3-login-news-headline">###NEWS_HEADLINE###</h2>
74 </div>
75 <dl id="t3-login-news">
76 <!-- ###NEWS_ITEM### begin -->
77 <dt>
78 <span class="t3-news-title">###HEADER###</span>
79 <span class="t3-news-date">###DATE###</span>
80 </dt>
81 <dd>
82 ###CONTENT###
83 </dd>
84 <!-- ###NEWS_ITEM### end -->
85 </dl>
86 </div>
87 <!-- ###LOGIN_NEWS### end -->
88
89 <!-- ###LOGIN_FORM### begin -->
90
91 <!-- ###LOGIN_ERROR### begin -->
92 <div class="t3-login-error">
93 ###ERROR_MESSAGE###
94 </div>
95 <!-- ###LOGIN_ERROR### end -->
96
97 <div class="t3-login-username t3-login-field">
98 <label for="t3-username" class="t3-username">
99 ###LABEL_USERNAME###:
100 </label>
101 <input type="text" id="t3-username" name="username" value="###VALUE_USERNAME###" class="t3-username" tabindex="1" onkeypress="checkCapslock(event, false)" />
102 <a href="#" title="###CLEAR###" onclick="document.getElementById('t3-username').value = ''; checkFocus();" ><img src="sysext/t3skin/icons/login_clear.gif" alt="clear" title="###CLEAR###" /></a>
103 </div>
104 <div class="t3-login-password t3-login-field">
105 <label for="t3-password" class="t3-password">
106 ###LABEL_PASSWORD###:
107 </label>
108 <input type="password" id="t3-password" name="p_field" value="###VALUE_PASSWORD###" class="t3-password" tabindex="2" onkeypress="checkCapslock(event, true);" />
109 <a href="#" title="###CLEAR###" onclick="document.getElementById('t3-password').value = ''; checkFocus();"><img src="sysext/t3skin/icons/login_clear.gif" alt="clear" title="###CLEAR###" /></a>
110 </div>
111 <div id="t3-capslock" style="display: none;"><img src="sysext/t3skin/icons/login_capslock.gif" alt="caps lock" /><span>###ERROR_CAPSLOCK###</span></div>
112 <!-- ###INTERFACE_SELECTOR### begin -->
113 <div class="t3-login-interface t3-login-field">
114 <label for="t3-interfaceselector" class="t3-interface-selector">
115 ###LABEL_INTERFACE###:
116 </label>
117 ###VALUE_INTERFACE###
118 </div>
119 <!-- ###INTERFACE_SELECTOR### end -->
120 <input type="submit" name="commandLI" value="###VALUE_SUBMIT###" class="t3-login-submit" tabindex="4" />
121 <!-- ###LOGIN_FORM### end -->
122
123 <!-- ###LOGOUT_FORM### begin -->
124 <h2>###HEADLINE###</h2>
125 <p class="t3-username">
126 ###LABEL_USERNAME###:
127 </p>
128 <p class="t3-username-current">
129 ###VALUE_USERNAME###
130 </p>
131 <!-- ###INTERFACE_SELECTOR### begin -->
132 <p class="t3-interface-selector">
133 ###LABEL_INTERFACE###:
134 </p>
135 ###VALUE_INTERFACE###
136 <!-- ###INTERFACE_SELECTOR### end -->
137
138 <input type="hidden" name="p_field" value="" /><input type="submit" name="commandLO" value="###VALUE_SUBMIT###" class="t3-submit" />
139 <!-- ###LOGOUT_FORM### end -->