Ignore:
Timestamp:
10/08/13 16:20:46 (11 years ago)
Author:
douglas
Message:

Ticket #0000 - Copiadas as alterações do Trunk. Versão final 2.5.1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/phpgwapi/templates/news/login.tpl

    r5159 r8232  
    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
    2 <HTML> 
     1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
     2<html> 
    33<!-- 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> 
     4        <head> 
     5                <title>{website_title} - {lang_login}</title> 
     6                <meta http-equiv="Content-Type" content="text/html; charset={charset}"> 
     7                <meta name="AUTHOR" content="dGroupWare http://www.eGroupWare.org"> 
     8                <meta NAME="description" CONTENT="{website_title} login screen, working environment powered by eGroupWare"> 
     9                <meta NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> 
     10                <meta NAME="keywords" CONTENT="{website_title} login screen, eGroupWare, groupware, groupware suite">                    
     11                <link rel="stylesheet" type="text/css" href="./phpgwapi/templates/news/css/login.css"/> 
     12                <link rel="stylesheet" type="text/css" href="./prototype/plugins/jquery/jquery-ui.css" /> 
     13                <link rel="stylesheet" type="text/css" href="./prototype/plugins/jquery.keyboard/jquery.keypad.css">             
     14                <!-- JavaScript --> 
     15                <script type="text/javascript" src="./prototype/plugins/jquery/jquery.min.js"></script> 
     16                <script type="text/javascript" src="./prototype/plugins/jquery/jquery-ui.min.js"></script> 
     17                <script type="text/javascript" src="./prototype/plugins/jquery/jquery-ui.custom.min.js"></script> 
     18                <script type="text/javascript" src="./prototype/plugins/ejs/ejs.js"></script> 
     19                <script type="text/javascript" src="./prototype/plugins/ejs/ejs_production.js"></script> 
     20                <script type="text/javascript" src="./prototype/plugins/ejs/view.js"></script> 
     21                <script type="text/javascript" src="./prototype/plugins/jquery.cycle/jquery.cycle.js"></script> 
     22                <script type="text/javascript" src="./prototype/plugins/jquery.keyboard/jquery.keypad.js"></script> 
     23                <script type="text/javascript" src="./prototype/plugins/jquery.keyboard/jquery.keypad-pt-BR.js"></script>                
     24                <script type="text/javascript" src="./phpgwapi/templates/news/js/slider.js"></script> 
     25                <script type="text/javascript" src="./phpgwapi/templates/news/js/loginExpresso.js"></script> 
     26        </head> 
     27        <body> 
     28                <div id="container"> 
     29                        <div id="main"> 
     30                                <div id="login"> 
     31                                        <h1 id="logo-expresso">Expresso Livre</h1> 
     32                                        <form id="loginForm" name="flogin" method="post" action="{login_url}" {autocomplete}> 
     33                                                <input type="hidden" name="passwd_type" value="text"> 
     34                                        <input type="hidden" name="account type" value="u"> 
     35                                        <input type="hidden" name="login"> 
     36                                        <input type="hidden" name="show_kbd" value="{show_kbd}"> 
     37                                        <div style="display:{show_organization}">        
     38                                                        <label for="organizacao">Organização</label> 
     39                                                        <select name="organizacao" id="organizacao">{select_organization}</select> 
     40                                                </div> 
     41                                                <div id="captcha"> 
     42                                                        {captcha} 
     43                                                </div> 
     44                                                <label for="user">{lang_username}</label> 
     45                                                <input type="text" name="user" id="user"  value="{cookie}"/> 
     46                                                <label for="passwd">{lang_password}</label> 
     47                                                <input type="password" name="passwd" id="passwd" value=""/> 
     48                                                <br/> 
     49                                                <input type="submit" name="submitit" id="submitit" value="{lang_login}" onclick="loginExpresso.setLogin();" /> 
     50                                        </form> 
     51                                        <div id="keyboard"></div> 
     52                                        <div id="msg-login" class="sucesso" style="display:none;">{cd}</div> 
    14753                                </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"/>                                          
     54                                <div id="informacao-login"></div> 
    15255                        </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> 
     56                        <center> 
     57                                <div id="footer"> 
     58                                        <ul id="footer-logos"> 
     59                                                <li><a href="http://www.pr.gov.br/" class="logo-governo">Governo do Paraná</a></li> 
     60                                                <li> 
     61                                                        <a href="http://www.pr.gov.br/" class="logo-celepar">Celepar - Tecnologia da Informação e Comunicação do Paraná</a> 
     62                                                        <span id="info-deploy"><a title="Projeto Expresso Livre" target="_blank" href="http://www.expressolivre.org/">Expresso Livre</a>&nbsp;{version} {ultima_rev}<br />Powered by <a title="eGroupWare" target="_blank" href="http://www.egroupware.org/">eGroupWare</a> 
     63                                                        </span> 
     64                                                </li> 
     65                                        </ul> 
     66                                </div> 
     67                        </center> 
     68                </div> 
     69                <div>{applet}</div> 
     70        </body> 
     71</html> 
Note: See TracChangeset for help on using the changeset viewer.