Change notifications from ids to classes

This commit is contained in:
Karsten Heiken
2011-07-31 17:28:17 +02:00
parent d5459a4efc
commit 965d5b5c5a
2 changed files with 11 additions and 12 deletions

View File

@@ -25,12 +25,14 @@
<div id="wrapper">
<? if(isset($error))
foreach($error as $e) echo "<div id=\"error\">".$e."</div>"; ?>
<? if(isset($notice))
foreach($notice as $n) echo "<div id=\"notice\">".$n."</div>"; ?>
<? if(isset($success))
foreach($success as $s) echo "<div id=\"success\">".$s."</div>"; ?>
<?
if(isset($error))
foreach($error as $e) echo "<div class=\"error\">".$e."</div>";
if(isset($notice))
foreach($notice as $n) echo "<div class=\"notice\">".$n."</div>";
if(isset($success))
foreach($success as $s) echo "<div class=\"success\">".$s."</div>";
?>
<div id="sidebar">

View File

@@ -21,8 +21,7 @@ p { margin: 0px 0px 20px 0px; line-height: 18px;}
ul { margin: 5px 0px 15px 0px; padding: 0px;}
li { margin-left: 20px;}
#notice {
clear: both;
.notice {
margin: 0 0 15px;
padding: 0 10px;
background: #fffbcc;
@@ -31,8 +30,7 @@ li { margin-left: 20px;}
color: #222;
}
#succeed {
clear: both;
.succeed {
margin: 0 0 15px;
padding: 0 10px;
background: #d1ecb8;
@@ -41,8 +39,7 @@ li { margin-left: 20px;}
color: #222;
}
#error {
clear: both;
.error {
margin: 0 0 15px;
padding: 0 10px;
background: #ffebe8;