source: branches/2.2/phpgwapi/templates/default/login.tpl @ 3480

Revision 3480, 8.2 KB checked in by rafaelraymundo, 13 years ago (diff)

Ticket #1344 - Informar na tela de login uma identificação da versão/revisao distribuida

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