Code

Updated login to fit new style
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 Apr 2007 08:34:06 +0000 (08:34 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 Apr 2007 08:34:06 +0000 (08:34 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6152 594d385d-05f5-0310-b6e9-bd551577e9d8

html/themes/default/images/login.png [deleted file]
ihtml/themes/default/login.tpl

diff --git a/html/themes/default/images/login.png b/html/themes/default/images/login.png
deleted file mode 100644 (file)
index 145f71f..0000000
Binary files a/html/themes/default/images/login.png and /dev/null differ
index 90278b39018070401518cf8bacba8b631a01d00f..fa4beda64267430df5cef5d40f264c0a43a6568e 100644 (file)
@@ -1,86 +1,83 @@
-<body style="background-color: #8B858B;background-image:none;">
+<body style="background-color:white;background-image:none;">
+{$php_errors}
+<div>
+        <div class='setup_header'>
+                <div style="float:left;"><img src='themes/default/images/go_logo.png' class='center' alt='GOsa'></div>
+                <div style="padding-top:8px;text-align:right;height:28px">{$version}</div>
+        </div>
+        <div class='setup_menu'>
+                <b>{t}GOsa login screen{/t}</b>
+        </div>
+</div>
+
 {* GOsa login - smarty template *}
 {$php_errors}
-{$errors}
 
 <!-- Spacer for some browsers -->
 <div class='gosaLoginSpacer'></div>
 
-<table summary="" class='gosaLoginMask' style="text-align:right;" align='center'>
- <tr>
-  <td class='gosaLoginBack' style="width:606px;">
-   <div class='gosaLoginBack'>
-       
-    <p class='gosaLoginHeader'>
-       {t}Please use your username and password to log in{/t}
-    </p>
+<div style='float:left; width:25%;'>&nbsp;</div>
+<div style='float:left; width:50%; border:1px solid #AAAAAA;'>
+
+       <div style='border-bottom:1px dashed #AAAAAA'>
+               <div style='padding:3px;'>
+               <p class="center" style="margin:0px 0px 0px 5px;padding:0px;font-size:24px;font-weight:bold;">
+                       <img class="center" src='{$password_img}' align="middle" alt="*">&nbsp;{t}Login{/t}
+               </p>
+               </div>
+       </div>
+       <div>
+
+           <div style='padding:12px;text-align:center;'>
+               {t}Please use your username and your password to log into the site administration system.{/t}
+           </div>
   
-    <!-- Display SSL warning message on demand -->
-    <p class='gosaLoginWarning'> {$ssl} </p>
-    <!-- Formular data, containing a table to center fields -->
-    <form action='index.php' method='post' name='mainform' onSubmit='js_check(this);return true;'>
-     <table summary="" style='vertical-align:middle; text-align:left;' cellspacing='7' align='center'>
-      <tr>
-        <td>
-          <img src='{$personal_img}' alt='{t}Username{/t}' title='{t}Username{/t}'>
-        </td>
-        <td>
-         <input type='text' name='username' maxlength='25' value='{$username}'
-                title='{t}Username{/t}' onFocus="nextfield= 'password';">
-        </td>
-      </tr>
-      <tr>
-        <td>
-          <img src='{$password_img}' alt='{t}Password{/t}' title='{t}Password{/t}'>
-        </td>
-        <td>
-         <input type='password' name='password' maxlength='25' value=''
-                title='{t}Password{/t}' onFocus="nextfield= 'login';">
-       </td>
-      </tr>
-      <tr>
-        <td>
-          <img src='{$directory_img}' alt='{t}Directory{/t}' title='{t}Directory{/t}'>
-        </td>
-        <td style='text-align:left;'>
-         <select name='server'  title='{t}Directory{/t}'>
-           {html_options options=$server_options selected=$server_id}
-         </select>
-       </td>
-      </tr>
-      <tr>
-        <td colspan='2' style='text-align:right;'>
-         <br />
-         <input type='submit' name='login' value='{t}Sign in{/t}'
-                title='{t}Click here to log in{/t}'>
-       </td>
-      </tr>
-     </table>
-               <input type='hidden' name='javascript' value='false'/>          
-    </form>
+           <form action='index.php' method='post' name='mainform' onSubmit='js_check(this);return true;'>
+
+               <input id='focus' name='focus' type='image' src='images/empty.png' style='width:0px; height:0px;' >
+               <div style='text-align:center; padding:10px;'>  
+               <img class='center' align='middle' src='{$personal_img}' alt='{t}Directory{/t}' title='{t}Directory{/t}'>&nbsp;
+               <input type='text' name='username' maxlength='25' value='{$username}'
+                        title='{t}Username{/t}' onFocus="nextfield= 'password';">
+               <br>
+               <br>
+               <img class='center' align='middle' src='{$password_img}' alt='{t}Directory{/t}' title='{t}Directory{/t}'>&nbsp;
+               <input type='password' name='password' maxlength='25' value=''
+                        title='{t}Password{/t}' onFocus="nextfield= 'login';">
+               </div>  
 
-    <!-- Display error message on demand -->
-    <p class='gosaLoginWarning'> {$message} </p>
-    <!-- check, if cookies are enabled -->
-    <p class='gosaLoginWarning'>
-     <script language="JavaScript" type="text/javascript">
-        <!--
-            document.cookie = "gosatest=empty;path=/";
-            if (document.cookie.indexOf( "gosatest=") > -1 )
-                document.cookie = "gosatest=empty;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT";
-            else
-                document.write("{$cookies}");
-        -->
-     </script>
-    </p>
+               <div style='text-align:center; padding:15px;'>
+                       <img class='center' align='middle' src='{$directory_img}' alt='{t}Directory{/t}' title='{t}Directory{/t}'>&nbsp;
+                       <select name='server'  title='{t}Directory{/t}'>
+                               {html_options options=$server_options selected=$server_id}
+                       </select>
+               </div>
+           </form>
 
+           <!-- Display error message on demand -->
+           <p class='gosaLoginWarning'> {$message} </p>
+           <!-- check, if cookies are enabled -->
+           <p class='gosaLoginWarning'>
+            <script language="JavaScript" type="text/javascript">
+               <!--
+                   document.cookie = "gosatest=empty;path=/";
+                   if (document.cookie.indexOf( "gosatest=") > -1 )
+                       document.cookie = "gosatest=empty;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT";
+                   else
+                       document.write("{$cookies}");
+               -->
+            </script>
+           </p>
+       </div>
+       <div style='border-top:1px dashed #AAAAAA; text-align:right; padding:5px;'>
+                 <input type='submit' name='login' value='{t}Sign in{/t}'
+                        title='{t}Click here to log in{/t}'>
+               <input type='hidden' name='javascript' value='false'/>          
+       </div>
 
+</div>
 
-   </div>
-  </td>
- </tr>
-</table>
+<div style="clear:both"></div>
 
 <!-- Place cursor in username field -->
 <script language="JavaScript" type="text/javascript">