commit e2c1dde73c08575e862c14b1f1c7d0eb3eed8a02
parent 4974bf53f03fabc7b860490f8c69922944bf1b9d
Author: dankert <devnull@localhost>
Date: Wed, 7 Nov 2007 21:55:15 +0100
CSS-Klassen f?r Hinweisboxen.
Diffstat:
2 files changed, 40 insertions(+), 14 deletions(-)
diff --git a/themes/default/css/default.css b/themes/default/css/default.css
@@ -189,6 +189,7 @@ span.title
font-family:Arial;
font-size:13px;
font-weight:bold;
+ text-shadow:#cac2a6 2px 1px 3px;
}
span.inactive,
span.menu_disabled
@@ -454,3 +455,25 @@ legend
{
font-weight:bold;
}
+
+tr.notice_error
+{
+ background-color:tomato;
+}
+tr.notice_warning
+{
+ background-color:orange;
+ margin:0px;
+ padding:0px;
+}
+tr.notice_ok
+{
+ background-color:greenyellow;
+}
+
+
+table.notice
+{
+ border:1px solid black;
+ border-spacing:0px;
+}+
\ No newline at end of file
diff --git a/themes/default/include/html/window.inc.php b/themes/default/include/html/window.inc.php
@@ -70,26 +70,28 @@
<?php if (isset($notices) && count($notices)>0 )
{ ?>
-
- <tr>
- <td> </td>
- </tr>
+
<tr>
- <td align="center" style="margin-top:10px; margin-bottom:10px;padding:5px; text-align:center;"><table style="" border="0" width="100%">
-
- <?php foreach( $notices as $notice ) { ?>
+ <td align="center" style="margin-top:10px; margin-bottom:10px;padding:5px; text-align:center;">
+
+ <?php foreach( $notices as $notice_idx=>$notice ) { ?>
+ <br><table class="notice" width="100%">
- <tr style="border-bottom:1px solid grey;">
- <td style="padding:0px;" width="30px"><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td>
- <td style="padding-top:10px;"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?>
+
+ <tr>
+ <td colspan="2" class="subaction" style="padding:2px; white-space:nowrap; border-bottom:1px solid black;"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?><?php } ?>
</td>
- <td style="padding:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?>
- <?php if (!empty($notice['log'])) { ?><pre><?php echo htmlentities(implode("\n",$notice['log'])) ?></pre><?php } ?>
+ </tr>
+ <tr class="notice_<?php echo $notice['status'] ?>">
+ <td style="padding:10px;" width="30px"><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td>
+ <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?>
+ <?php if (!empty($notice['log'])) { ?><pre><?php echo nl2br(htmlentities(implode("\nasdf",$notice['log']))) ?></pre><?php } ?>
</td>
</tr>
- <?php } ?>
- </table></td>
+ </table>
+ <?php } ?>
+ </td>
</tr>
<tr>
<td colspan="2"><fieldset></fieldset></td>