source: trunk/phpgwapi/templates/default/login.tpl @ 2989

Revision 2989, 7.9 KB checked in by amuller, 14 years ago (diff)

Ticket #1124 - Complementando a validação do HTML do expresso

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