commit 27fc0b8672d794d0fef562175484062b267146c0
parent d63d81f2cc72cbb98d7c1dc6574213c95bbad35c
Author: dankert <devnull@localhost>
Date: Wed, 10 Feb 2010 23:35:00 +0100
Letzten Notice-Status als Icon rechts oben anzeigen.
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/actionClasses/Action.class.php b/actionClasses/Action.class.php
@@ -264,6 +264,8 @@ class Action
*/
function addNotice( $type,$name,$text,$status=OR_NOTICE_OK,$vars=array(),$log=array() )
{
+ $this->templateVars['notice_status'] = $status;
+
if ( $status == OR_NOTICE_OK && isset($_COOKIE['or_ignore_ok_notices']))
return;
diff --git a/themes/default/include/html/window.inc.php b/themes/default/include/html/window.inc.php
@@ -53,6 +53,11 @@
}
echo '<span class="title">'.langHtml($windowTitle).'</span>';
+ if ( isset($notice_status))
+ {
+ ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php
+ }
+
?>
</td>