[2] | 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"> |
---|
[3500] | 10 | {login_css} |
---|
[2] | 11 | <TITLE>{website_title} - {lang_login}</TITLE> |
---|
[1247] | 12 | <script language="Javascript"> |
---|
| 13 | <!-- |
---|
[2] | 14 | |
---|
[1247] | 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; |
---|
[2] | 28 | |
---|
[1247] | 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; |
---|
[3486] | 42 | Window1=window.open('{dir_root}'+link,'',"width="+newWidth+",height="+newHeight+",screenX="+newScreenX+",left="+newScreenX+",screenY="+newScreenY+",top="+newScreenY+",toolbar=no,scrollbars=yes,resizable=no"); |
---|
[3191] | 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 | } |
---|
[1247] | 131 | --> |
---|
| 132 | </script> |
---|
| 133 | </HEAD> |
---|
[5141] | 134 | <body scroll="no" style="overflow:hidden" onLoad="javascript:getLogin()" bgcolor="#ffffff"> |
---|
[3274] | 135 | <form id="loginForm" name="flogin" method="post" action="{login_url}" {autocomplete}> |
---|
[1247] | 136 | <div id="conteudo"> |
---|
| 137 | <div style="position: absolute; top:0px; right: 10px;"><span class="login_label">{lang_language} </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"> |
---|
[3999] | 143 | <input type="hidden" name="certificado" value=""> |
---|
[1247] | 144 | <input type="hidden" name="passwd_type" value="text"> |
---|
| 145 | <input type="hidden" name="account type" value="u"> |
---|
| 146 | <input type="hidden" name="login"> |
---|
| 147 | <div id="caixa_login"> |
---|
| 148 | <div id="reflexo"> |
---|
| 149 | <div class="titulo_login">Expresso Livre</div> |
---|
| 150 | <div id="mensagem" class="msgInicial" >{cd}<br>{lang_message}</div> |
---|
| 151 | {action} |
---|
[1713] | 152 | <div id="conteudo_login" style="display:{show};">{select_organization} |
---|
[1247] | 153 | <div class="login_label"> |
---|
| 154 | <label for="usuario">{lang_username}</label> |
---|
| 155 | <br /> |
---|
[3276] | 156 | <input class="input" type="text" maxlength="70" size="20" name="user" id="user" value=""> |
---|
[1247] | 157 | </div> |
---|
[2] | 158 | |
---|
[1247] | 159 | <div class="login_label"> |
---|
| 160 | <label for="senha">{lang_password}</label> |
---|
| 161 | <br /> |
---|
| 162 | <input class="input" type="password" maxlength="50" size="20" name="passwd" id="passwd" value=""> |
---|
[3191] | 163 | <div id="keyboard"></div> |
---|
[1247] | 164 | </div> |
---|
| 165 | {captcha} |
---|
| 166 | |
---|
| 167 | <input value="{lang_login}" name="submitit" class="button" onclick="javascript:setLogin()" type="submit" style="margin-top:10px"/> |
---|
[3191] | 168 | <img style="display:{show_kbd};" src="phpgwapi/templates/default/images/keyboard.png" alt="virtualkeyboard" title="virtualkeyboard" onclick="loadvkbd()" /> |
---|
[1247] | 169 | </div> |
---|
[3624] | 170 | <div id="alterna_login"> |
---|
| 171 | {link_alterna_login} |
---|
| 172 | </div> |
---|
[1247] | 173 | </div> |
---|
| 174 | <div id="rodape_login"> |
---|
[3624] | 175 | <div class="ajuda" style="display:{display_help}"> |
---|
| 176 | <img src="./phpgwapi/templates/{template}/images/help.png"/> |
---|
| 177 | <a title="{lang_help}" target="help" href="./help.php?lang={lang}">{lang_help}</a> |
---|
| 178 | </div> |
---|
[1247] | 179 | </div> |
---|
| 180 | </div> |
---|
| 181 | </form> |
---|
| 182 | </div> |
---|
| 183 | </div> |
---|
| 184 | </div> |
---|
| 185 | <div id="inferior"><br /> |
---|
| 186 | <div id="rodape"> |
---|
| 187 | <table align="center" cellspacing="0" cellpadding="0" border="0"> |
---|
| 188 | <tr> |
---|
| 189 | <td> |
---|
| 190 | <table border="0" cellpadding="0" cellspacing="0" width="300px"> |
---|
| 191 | <tbody> |
---|
| 192 | <tr> |
---|
| 193 | <td>{logo_config} |
---|
| 194 | <br><a title="Projeto Expresso Livre" target="_blank" href="http://www.expressolivre.org/">Expresso Livre</a> {version} |
---|
[3480] | 195 | {ultima_rev} |
---|
[1247] | 196 | <br><a title="eGroupWare" target="_blank" href="http://www.egroupware.org/"> Powered by eGroupWare </a></div></td> |
---|
| 197 | </tr> |
---|
| 198 | </tbody> |
---|
| 199 | </table> |
---|
| 200 | </td> |
---|
| 201 | </tr> |
---|
| 202 | </table> |
---|
| 203 | </div> |
---|
| 204 | </div> |
---|
| 205 | </div> |
---|
| 206 | </div> |
---|
| 207 | </div> |
---|
| 208 | <div>{applet}</div> |
---|
| 209 | </body></html> |
---|