Login en español código incluido / Spanish login page with code

redesb

Verified User
Joined
May 10, 2004
Messages
207
Location
Spain
Para quien le pueda interesar, les dejo a continuación la página 'login.html' en castellano que uso:

For who can interest to him, I leave next the page 'login.html' in Spanish that I use:
Code:
|?FAILEDLOGIN=true|
<html>
<head>
        <title>DirectAdmin Login</title>
        <link rel="SHORTCUT ICON" href="http://1.2.3.4:2222/images/favicon.ico">
        <style>
        *               {font-size:11px;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;color:#000;}
        html, body      {height:100%;min-height:100%;margin:0;background:#FFF;}
        table           {width:340px;margin:0px;border-style:solid;border-color:#345b80;border-width:0px 1px 1px 1px;}
        table.image     {width:340px;height:60px;margin:0px;padding:0px;border-style:none;background:top no-repeat url("http://1.2.3.4:2222/images/login.png");}
        td.head         {background:#345b80;color:#fff;text-align:center;padding:8px 5px 8px 5px;}
        td.text         {width:100%;background:#eee;text-align:right;padding:5px;}
        td.data         {background:#eee;text-align:left;padding:5px;}
        td.send         {background:#345b80;text-align:right;padding:6px 5px 6px;}
        button          {width:75px;cursor:pointer;text-align:center;}
        input           {height:19px;padding-left:2px;border-style:solid;border-color:#7f9db9;border-width:1px;}
        table.fail      {display:none;background:#fbfbbb;border-color:#b00;border-style:solid;border-width:2px;margin-top:10px;text-align:center;font-weight:bold;}
        td.fail         {padding:10px;vertical-align:middle;}
        </style>
        <script type="text/javascript">
        <!--
        var is_fail = '|FAILEDLOGIN|';
        var my_table;
        function Login_Fail(obj){
                document.form.username.focus();
                if(is_fail != ''){
                        my_table = document.getElementById(obj);
                        my_table.style.display = 'table';
                        setTimeout("my_table.style.display = 'none';", 6000);
                }
        }
        //-->
        </script>
</head>
<body onLoad="Login_Fail('hide');">
        <center><br /><br /><br /><br />
                <table class="image"><tr><td></tr></td></table>
                <table>
                        <tr>
                                <td class="head" colspan=2>Por favor teclee su Nombre de Usuario y su Contraseña</td>
                        </tr>
                        <form action="/CMD_LOGIN" method="POST" name="form">
                        <input type=hidden name=referer value="/" />
                        <tr>
                                <td class="text">Nombre de Usuario:</td>
                                <td class="data"><input type=text name=username size=26 /></td>
                        </tr>
                        <tr>
                                <td class="text">Contraseña:</td>
                                <td class="data"><input type=password name=password size=26 /></td>
                        </tr>
                        <tr>
                                <td class="send" colspan=2><button type=submit>Login</button></td>
                        </tr>
                        </form>
                </table>
                <table class="fail" id="hide">
                        <tr>
                                <td class="fail">Datos incorrectos. Por favor verifique su<br />Nombre de Usuario y su Contraseña</td>
                        </tr>
                </table>
        </center>
</body>
</html>
Esta página está ubicada en '/usr/local/directadmin/data/templates/login.html' y la imagen de la cabecera y el 'favicon.ico' en la carpeta '/usr/local/directadmin/data/templates/login_images'.

This page is located in '/usr/local/directadmin/data/templates/login.html' and the image of the head and the 'favicon.ico' in the folder '/usr/local/directadmin/data/templates/login_images'.

Y se puede ver:
And it is possible to be seen

aquí / here

Si alguien desea que el 'favicon.ico' salga en todas las páginas del panel, basta con ponerla en la carpeta 'images' del skin correspondiente y modificar los archivos 'header*.html' del skin añadiendo la siguiente línea debajo de la sentencia 'title':

If somebody wishes that the 'favicon.ico' appears in all the pages of the panel, it is enough with putting it in the folder 'images' of corresponding skin and modifying the archives 'header*.html' of skin adding the following line underneath the 'title' sentence:
Code:
<link rel="SHORTCUT ICON" href="/IMG_SKIN_FAVICON">
Y el enlace correpondiente en el archivo 'files_custom.conf' del skin asi:

And the link in the 'files_custom.conf' file of skin thus:
Code:
IMG_SKIN_FAVICON=images/favicon.ico
Nota: Hay que poner la IP principal propia donde pone '1.2.3.4:2222'.

Note: It is necessary to put the own main IP where it say '1.2.3.4:2222'.
 
Last edited:
Si alguien necesita los dos archivos de imagen los puede descargar pinchando en el nombre correspondiente:
If somebody needs both image files it can download them clicking in the corresponding name:

'favicon.ico'
'login.png'
 
Back
Top