box shadow

This commit is contained in:
Roland Gruber 2015-08-02 19:16:46 +00:00
parent e41332d624
commit bd1337f6af
4 changed files with 34 additions and 29 deletions

View File

@ -37,6 +37,9 @@ h1,h2,h3 { color:black; }
body { body {
background-color:#F5F5F5; background-color:#F5F5F5;
}
body.selfservice {
padding: 10px; padding: 10px;
} }
@ -81,9 +84,9 @@ a.classicBold {
} }
fieldset { fieldset {
background-color:#fff3c8; background-color:#fff3c8;
border:1px solid #af8800; border:1px solid #af8800;
padding:10px; padding:10px;
} }
div.filled { div.filled {
@ -127,8 +130,8 @@ input {
table.lamHeader { table.lamHeader {
background-image: url(lam-images/headerLine.png); background-image: url(lam-images/headerLine.png);
padding: 0px; padding: 0px;
margin: 0px;
height: 35px; height: 35px;
margin: 0px;
} }
/* table preferences */ /* table preferences */
@ -296,14 +299,14 @@ td.loginLogo {
width: 65px; width: 65px;
} }
div.roundedShadowBox { .roundedShadowBox {
border:2px solid #a0a0a4; border: 2px solid #a0a0a4;
border-radius:5px; border-radius: 5px;
box-shadow: 2px 2px 5px #a0a0a4; box-shadow: 2px 2px 5px #a0a0a4;
display: inline-block; display: inline-block;
background-color: white; background-color: white;
padding: 20px; padding: 20px;
max-width: 575px; max-width: 580px;
} }
div.centeredTable { div.centeredTable {

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2014 Roland Gruber Copyright (C) 2003 - 2015 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -62,7 +62,7 @@ echo $_SESSION['header'];
echo _("Login"); echo _("Login");
?> ?>
</title> </title>
<?php <?php
// include all CSS files // include all CSS files
$cssDirName = dirname(__FILE__) . '/../../style'; $cssDirName = dirname(__FILE__) . '/../../style';
$cssDir = dir($cssDirName); $cssDir = dir($cssDirName);
@ -122,7 +122,7 @@ echo $_SESSION['header'];
<!-- form to change existing profiles --> <!-- form to change existing profiles -->
<form action="confmain.php" method="post" autocomplete="off"> <form action="confmain.php" method="post" autocomplete="off">
<table align="center"><tr><td> <table align="center"><tr><td>
<table align="center" border="2" rules="none" bgcolor="white" class="ui-corner-all"> <table align="center" border="0" rules="none" bgcolor="white" class="ui-corner-all roundedShadowBox">
<tr> <tr>
<td style="border-style:none" rowspan="3" width="20"></td> <td style="border-style:none" rowspan="3" width="20"></td>
<td style="border-style:none" height="20"></td> <td style="border-style:none" height="20"></td>

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2014 Roland Gruber Copyright (C) 2003 - 2015 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -72,7 +72,7 @@ echo $_SESSION['header'];
echo _("Login"); echo _("Login");
?> ?>
</title> </title>
<?php <?php
// include all CSS files // include all CSS files
$cssDirName = dirname(__FILE__) . '/../../style'; $cssDirName = dirname(__FILE__) . '/../../style';
$cssDir = dir($cssDirName); $cssDir = dir($cssDirName);
@ -137,7 +137,7 @@ echo $_SESSION['header'];
<form action="mainlogin.php" method="post" autocomplete="off"> <form action="mainlogin.php" method="post" autocomplete="off">
<table align="center"> <table align="center">
<tr><td> <tr><td>
<table align="center" border="2" rules="none" bgcolor="white" class="ui-corner-all" style="padding: 20px;"> <table align="center" border="0" rules="none" bgcolor="white" class="ui-corner-all roundedShadowBox" style="padding: 20px;">
<tr><td> <tr><td>
<?php <?php
$spacer = new htmlSpacer('20px', '20px'); $spacer = new htmlSpacer('20px', '20px');
@ -166,8 +166,8 @@ echo $_SESSION['header'];
$passwordGroup->addElement($gap); $passwordGroup->addElement($gap);
$passwordGroup->addElement(new htmlHelpLink('236')); $passwordGroup->addElement(new htmlHelpLink('236'));
$table->addElement($passwordGroup, true); $table->addElement($passwordGroup, true);
$tabindex = 1; $tabindex = 1;
parseHtml(null, $table, array(), false, $tabindex, 'user'); parseHtml(null, $table, array(), false, $tabindex, 'user');
?> ?>

View File

@ -4,7 +4,7 @@ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Michael Duergner Copyright (C) 2003 - 2006 Michael Duergner
2005 - 2014 Roland Gruber 2005 - 2015 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -169,7 +169,7 @@ function display_LoginPage($config_object, $cfgMain) {
setcookie("Key", base64_encode($key), 0, "/"); setcookie("Key", base64_encode($key), 0, "/");
setcookie("IV", base64_encode($iv), 0, "/"); setcookie("IV", base64_encode($iv), 0, "/");
} }
$profiles = getConfigProfiles(); $profiles = getConfigProfiles();
setlanguage(); // setting correct language setlanguage(); // setting correct language
@ -177,7 +177,7 @@ function display_LoginPage($config_object, $cfgMain) {
echo $_SESSION["header"]; echo $_SESSION["header"];
?> ?>
<title>LDAP Account Manager</title> <title>LDAP Account Manager</title>
<?php <?php
// include all CSS files // include all CSS files
$cssDirName = dirname(__FILE__) . '/../style'; $cssDirName = dirname(__FILE__) . '/../style';
$cssDir = dir($cssDirName); $cssDir = dir($cssDirName);
@ -210,7 +210,7 @@ function display_LoginPage($config_object, $cfgMain) {
foreach ($jsFiles as $jsEntry) { foreach ($jsFiles as $jsEntry) {
echo "<script type=\"text/javascript\" src=\"lib/" . $jsEntry . "\"></script>\n"; echo "<script type=\"text/javascript\" src=\"lib/" . $jsEntry . "\"></script>\n";
} }
// upgrade if pdf/profiles contain single files // upgrade if pdf/profiles contain single files
if (containsFiles('../config/profiles') || containsFiles('../config/pdf')) { if (containsFiles('../config/profiles') || containsFiles('../config/pdf')) {
$result = testPermissions(); $result = testPermissions();
@ -224,7 +224,7 @@ function display_LoginPage($config_object, $cfgMain) {
} }
// copy any missing default profiles // copy any missing default profiles
copyConfigTemplates($profiles); copyConfigTemplates($profiles);
// set focus on password field // set focus on password field
if (!empty($config_object)) { if (!empty($config_object)) {
echo "<script type=\"text/javascript\" language=\"javascript\">\n"; echo "<script type=\"text/javascript\" language=\"javascript\">\n";
@ -266,7 +266,7 @@ function display_LoginPage($config_object, $cfgMain) {
</td> </td>
</tr> </tr>
</table> </table>
<br><br> <br><br>
<?php <?php
@ -318,15 +318,16 @@ function display_LoginPage($config_object, $cfgMain) {
if (!empty($config_object)) { if (!empty($config_object)) {
?> ?>
<br><br> <br><br>
<div style="position:relative; z-index:5;"> <div class="centeredTable">
<table align="center" border="2" rules="none" bgcolor="white" class="ui-corner-all"> <div class="roundedShadowBox" style="position:relative; z-index:5;">
<table align="center" border="0" rules="none" bgcolor="white" class="ui-corner-all">
<tr> <tr>
<td class="loginLogo" style="border-style:none" rowspan="2"> <td class="loginLogo" style="border-style:none" rowspan="2">
</td> </td>
<td style="border-style:none" width="580px"> <td style="border-style:none">
<form action="login.php" method="post"> <form action="login.php" method="post">
<?php <?php
$table = new htmlTable('580px'); $table = new htmlTable('500px');
$spacer = new htmlSpacer(null, '30px'); $spacer = new htmlSpacer(null, '30px');
$spacer->colspan = 3; $spacer->colspan = 3;
$table->addElement($spacer, true); $table->addElement($spacer, true);
@ -439,7 +440,7 @@ function display_LoginPage($config_object, $cfgMain) {
$message->colspan = 3; $message->colspan = 3;
$table->addElement($message, true); $table->addElement($message, true);
} }
$tabindex = 1; $tabindex = 1;
parseHtml(null, $table, array(), false, $tabindex, 'user'); parseHtml(null, $table, array(), false, $tabindex, 'user');
?> ?>
@ -450,7 +451,7 @@ function display_LoginPage($config_object, $cfgMain) {
<td align="left" style="border-style:none"> <td align="left" style="border-style:none">
<form action="login.php" method="post"> <form action="login.php" method="post">
<?php <?php
$table = new htmlTable('580px'); $table = new htmlTable();
$line = new htmlHorizontalLine(); $line = new htmlHorizontalLine();
$line->colspan = 2; $line->colspan = 2;
$table->addElement($line, true); $table->addElement($line, true);
@ -483,6 +484,7 @@ function display_LoginPage($config_object, $cfgMain) {
</tr> </tr>
</table> </table>
</div> </div>
</div>
<?php <?php
} }
?> ?>
@ -522,7 +524,7 @@ if(!empty($_POST['checklogin'])) {
include_once("../lib/ldap.inc"); // Include ldap.php which provides Ldap class include_once("../lib/ldap.inc"); // Include ldap.php which provides Ldap class
$_SESSION['ldap'] = new Ldap($_SESSION['config']); // Create new Ldap object $_SESSION['ldap'] = new Ldap($_SESSION['config']); // Create new Ldap object
$clientSource = $_SERVER['REMOTE_ADDR']; $clientSource = $_SERVER['REMOTE_ADDR'];
if (isset($_SERVER['REMOTE_HOST'])) { if (isset($_SERVER['REMOTE_HOST'])) {
$clientSource .= '/' . $_SERVER['REMOTE_HOST']; $clientSource .= '/' . $_SERVER['REMOTE_HOST'];