smaller message boxes

This commit is contained in:
Roland Gruber 2013-04-28 18:45:35 +00:00
parent 4e90ba0def
commit bc08c52c70
5 changed files with 15 additions and 38 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -4,7 +4,7 @@ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Michael Duergner
2011 Roland Gruber
2011 - 2013 Roland Gruber
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
@ -73,14 +73,16 @@ function StatusMessage($MessageTyp,$MessageHeadline,$MessageText='',$MessageVari
$MessageText = parseMessageString($MessageText);
if (is_file("../graphics/error.png")) {
$MessageTyp = "&nbsp;&nbsp;<img src=\"../graphics/" . strtolower($MessageTyp) . ".png\" alt=\"" . $MessageTyp . "\" width=\"32\" height=\"32\">";
$MessageTyp = "&nbsp;&nbsp;<img src=\"../graphics/" . strtolower($MessageTyp) . ".png\" alt=\"" . $MessageTyp . "\" width=\"24\" height=\"24\">";
}
else {
$MessageTyp = "&nbsp;&nbsp;<img src=\"../../graphics/" . strtolower($MessageTyp) . ".png\" alt=\"" . $MessageTyp . "\" width=\"32\" height=\"32\">";
$MessageTyp = "&nbsp;&nbsp;<img src=\"../../graphics/" . strtolower($MessageTyp) . ".png\" alt=\"" . $MessageTyp . "\" width=\"24\" height=\"24\">";
}
$MessageHeadline = "<h2 " . $class . ">" . $MessageHeadline . "</h2>"; // Format $MessageHeadline
$MessageText = "<p " . $class . ">" . $MessageText . "</p>"; // Format $MessageText
$MessageHeadline = "<div class=\"statusTitle\">" . $MessageHeadline . "</div>"; // Format $MessageHeadline
if ($MessageText != '') {
$MessageText = "<p class=\"statusText\">" . $MessageText . "</p>"; // Format $MessageText
}
$format = "<div " . $class . ">\n<table>\n<tr>\n<td>" . $MessageTyp . "</td>\n<td>" . $MessageHeadline . $MessageText . "</td>\n</tr>\n</table>\n</div>\n";
$output = '';
if (is_array($MessageVariables)) {

View File

@ -355,7 +355,7 @@ div.statusInfo {
div.statusWarn {
background-color:#fff2a3;
border: 1px solid #ffd800;
border: 1px solid #f59d00;
}
div.statusError {
@ -364,41 +364,16 @@ div.statusError {
}
/* H2 (MessageHeadline) font size, family, color, and some more settings for the different Status Messages */
h2.statusInfo {
font-size:13pt;
font-family:Arial,sans-serif;
margin:5px 5px 5px 15px;
}
h2.statusWarn {
font-size:13pt;
font-family:Arial,sans-serif;
margin:5px 5px 5px 15px;
}
h2.statusError {
font-size:13pt;
font-family:Arial,sans-serif;
margin:5px 5px 5px 15px;
div.statusTitle {
font-size: 12pt;
font-weight: bold;
margin: 3px 3px 3px 15px;
}
/* P (MessageText) font size, family, color, and some more settings for the different Status Messages */
p.statusInfo {
font-size:11pt;
font-family:Times,serif;
margin:5px 5px 5px 25px;
}
p.statusWarn {
font-size:11pt;
font-family:Times,serif;
margin:5px 5px 5px 25px;
}
p.statusError {
font-size:11pt;
font-family:Times,serif;
margin:5px 5px 5px 25px;
p.statusText {
font-size: 10pt;
margin: 3px 3px 3px 25px;
}
input.smallImageButton {