source: trunk/phpgwapi/templates/news_old/login.tpl @ 7836

Revision 7836, 9.5 KB checked in by alexandrecorreia, 11 years ago (diff)

Ticket #3335 - Modificado o template news para a utilização de um plugin para slider

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