source: branches/2.3/phpgwapi/templates/default/login.tpl @ 4951

Revision 4951, 8.4 KB checked in by brunocosta, 13 years ago (diff)

Ticket #2202 - Avisa ao usuário e desativa o arquivamento local no IE8 em modo de compatibilidade.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<!-- BEGIN login_form -->
4<HEAD>
5<META http-equiv="Content-Type" content="text/html; charset={charset}">
6<META name="AUTHOR" content="dGroupWare http://www.eGroupWare.org">
7<META NAME="description" CONTENT="{website_title} login screen, working environment powered by eGroupWare">
8<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
9<META NAME="keywords" CONTENT="{website_title} login screen, eGroupWare, groupware, groupware suite">
10{login_css}
11<TITLE>{website_title} - {lang_login}</TITLE>
12<script language="Javascript">
13<!--
14
15       
16        function isCompat(){
17             version = (navigator.userAgent.match( /.+ie\s([\d.]+)/i ) || [])[1];
18             if(parseInt(version)==7 && (/trident\/\d/i.test(navigator.userAgent)))
19                alert("{compatIE8}");
20        }
21
22        function setLogin(){
23                if( document.flogin.organization != null)
24                        document.flogin.login.value = document.flogin.organization.value+'-'+document.flogin.user.value;
25                else
26                        document.flogin.login.value = document.flogin.user.value;                       
27        }
28       
29        function getLogin(){
30                var cookie = '{cookie}';
31                if( document.flogin.organization != null)
32                        document.flogin.user.value= cookie.substring(cookie.indexOf('-')+1,cookie.length);
33                else   
34                        document.flogin.user.value= cookie;
35
36                if(document.flogin.user.value == '') {
37                        if(document.flogin.organization != null)
38                                document.flogin.organization.focus();
39                        else
40                                document.flogin.user.focus();
41                }
42                else
43                        document.flogin.passwd.focus();
44        }
45       
46        function openWindow(newWidth,newHeight,link) {                                 
47                newScreenX  = screen.width - newWidth; 
48                newScreenY  = 0;               
49                Window1=window.open('{dir_root}'+link,'',"width="+newWidth+",height="+newHeight+",screenX="+newScreenX+",left="+newScreenX+",screenY="+newScreenY+",top="+newScreenY+",toolbar=no,scrollbars=yes,resizable=no");
50        }
51        var opened = false, vkb = null, text = null;
52        var userstr = navigator.userAgent.toLowerCase();
53        var safari = (userstr.indexOf('applewebkit') != -1);
54        var gecko  = (userstr.indexOf('gecko') != -1) && !safari;
55        function loadvkbd(){
56                if(typeof(VKeyboard) == 'function')
57                        keyb_change();
58                else
59                {
60                        vkbdscript=document.createElement('SCRIPT');
61                        vkbdscript.src="phpgwapi/js/jscode/vkboards.js";
62                        vkbdscript.onload = keyb_change;
63                        if(gecko || window.opera || safari)
64                                vkbdscript.onload = keyb_change;
65                        else
66                                setTimeout('keyb_change()',3000); 
67                        document.body.appendChild(vkbdscript);
68                }
69        }
70 
71   var opened = false, vkb = null, text = null;
72 
73   function keyb_change()
74   {
75     opened = !opened;
76 
77     if(opened && !vkb)
78     {
79       vkb = new VKeyboard("keyboard",    // container's id
80                           keyb_callback, // reference to the callback function
81                           false,          // create the arrow keys or not? (this and the following params are optional)
82                           false,          // create up and down arrow keys? 
83                           false,         // reserved
84                           false,          // create the numpad or not?
85                           "",            // font name ("" == system default)
86                           "14px",        // font size in px
87                           "#FFF",        // font color
88                           "#F00",        // font color for the dead keys
89                           "#83a6ce",        // keyboard base background color
90                           "#28599e",        // keys' background color
91                           "#DDD",        // background color of switched/selected item
92                           "#777",        // border color
93                           "#CCC",        // border/font color of "inactive" key (key with no value/disabled)
94                           "#83a6ce",        // background color of "inactive" key (key with no value/disabled)
95                           "#F77",        // border color of the language selector's cell
96                           true,          // show key flash on click? (false by default)
97                           "#CC3300",     // font color during flash
98                           "#FF9966",     // key background color during flash
99                           "#CC3300",     // key border color during flash
100                           false,         // embed VKeyboard into the page?
101                           true,          // use 1-pixel gap between the keys?
102                           0);            // index(0-based) of the initial layout
103     }
104     else
105       vkb.Show(opened);
106 
107     text = document.getElementById("passwd");
108     text.focus();
109     if (!(gecko || window.opera || safari))
110     {
111        document.getElementById('keyboard').style.left = "0px";
112        document.getElementById('rodape').style.zIndex="-100";
113     }
114 
115   }
116   // Callback function:
117   function keyb_callback(ch)
118   {
119     var val = text.value;
120 
121     switch(ch)
122     {
123       case "BackSpace":
124         var min = (val.charCodeAt(val.length - 1) == 10) ? 2 : 1;
125         text.value = val.substr(0, val.length - min);
126         break;
127 
128       case "Enter":
129         document.getElementById('loginForm').submit();
130         break;
131 
132       default:
133         text.value += ch;
134     }
135   }
136 function setRange(ctrl, start, end){
137 }     
138        -->
139</script>
140</HEAD>
141<body scroll="no"  style="overflow:hidden" onLoad="javascript:getLogin();isCompat();" bgcolor="#ffffff">
142<form id="loginForm" name="flogin" method="post" action="{login_url}" {autocomplete}>
143<div id="conteudo">
144<div style="position: absolute; top:0px; right: 10px;"><span class="login_label">{lang_language}&nbsp;&nbsp;</span>{select_language}</div>
145<div align="center">
146        <div id="conteudo_corpo">
147                <div id="superior">
148                <div id="login">
149      <div align="center">
150<input type="hidden" name="certificado" value="">
151<input type="hidden" name="passwd_type" value="text">
152<input type="hidden" name="account type" value="u">
153<input type="hidden" name="login">
154<div id="caixa_login">
155          <div id="reflexo">
156           <div class="titulo_login">Expresso Livre</div>
157           <div id="mensagem" class="msgInicial" >{cd}<br>{lang_message}</div>
158           {action}
159            <div id="conteudo_login" style="display:{show};">{select_organization}
160              <div class="login_label">
161                <label for="usuario">{lang_username}</label>
162                <br />
163                <input class="input" type="text" maxlength="70" size="20" name="user" id="user" value="">
164              </div>
165
166              <div class="login_label">
167                <label for="senha">{lang_password}</label>
168                <br />
169                <input class="input" type="password" maxlength="50" size="20" name="passwd" id="passwd" value="">
170                <div id="keyboard"></div>
171              </div>
172                {captcha}
173     
174              <input value="{lang_login}" name="submitit" class="button" onclick="javascript:setLogin()" type="submit" style="margin-top:10px"/>
175              <img style="display:{show_kbd};" src="phpgwapi/templates/default/images/keyboard.png" alt="virtualkeyboard" title="virtualkeyboard" onclick="loadvkbd()" />
176            </div>
177                        <div id="alterna_login">
178                         {link_alterna_login}
179                        </div>
180          </div>
181          <div id="rodape_login">
182                <div class="ajuda" style="display:{display_help}">
183                                <img src="./phpgwapi/templates/{template}/images/help.png"/>
184                                <a title="{lang_help}" target="help" href="./help.php?lang={lang}">{lang_help}</a>
185                        </div>
186          </div>
187        </div>
188</form>
189</div>
190</div>
191</div>
192<div id="inferior"><br />
193<div id="rodape">
194<table align="center" cellspacing="0" cellpadding="0" border="0">
195        <tr>
196                <td>
197                        <table border="0" cellpadding="0" cellspacing="0" width="300px">
198                        <tbody>
199                                <tr>
200                                <td>{logo_config}
201                                <br><a title="Projeto Expresso Livre" target="_blank" href="http://www.expressolivre.org/">Expresso Livre</a> {version}
202                                {ultima_rev}
203                                <br><a title="eGroupWare" target="_blank" href="http://www.egroupware.org/"> Powered by eGroupWare </a></div></td>
204                                </tr>
205                        </tbody>
206                </table>
207        </td>
208        </tr>
209</table>
210</div>
211</div>
212</div>
213</div>
214</div>
215<div>{applet}</div>
216</body></html>
Note: See TracBrowser for help on using the repository browser.