Code

Transparent background of error msgs wotks in IE now
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Jun 2007 10:14:56 +0000 (10:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Jun 2007 10:14:56 +0000 (10:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6696 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 91bb1e17c506033621e8770a540a189444055b34..d38112816832827c5db1277827d2f252e91676d7 100644 (file)
@@ -1064,19 +1064,51 @@ function print_red()
         }
       
         if(isset($_SESSION['errors']) && strlen($_SESSION['errors'])==0) {
-          $_SESSION['errors'].= "
-            <div  id='e_layer2'
-            style='
-              position: absolute;
-              left: 0px;
-              top: 0px;
-              right:0px;
-              bottom:0px;
-              z-index:149;
-              width:100%;
-              height:100%;
-              background-image: url(images/opacity_black.png);'>
-         </div>
+
+          if(preg_match("/MSIE/", $_SERVER['HTTP_USER_AGENT'])){
+
+            $_SESSION['errors'].= "
+              <iframe id='e_layer3' 
+                style=\"  position:absolute;
+                          width:100%;
+                          height:100%;
+                          top:0px;
+                          left:0px;
+                          border:none;
+                          display:block;
+                          allowtransparency='true';
+                          background-color: #FFFFFF;
+                          filter:chroma(color=#FFFFFF);
+                          z-index:0; \">
+              </iframe>
+              <div  id='e_layer2'
+                style=\"
+                  position: absolute;
+                  left: 0px;
+                  top: 0px;
+                  right:0px;
+                  bottom:0px;
+                  z-index:0;
+                  width:100%;
+                  height:100%;
+                  filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='images/opacity_black.png'); \">
+              </div>";
+          }else{
+
+            $_SESSION['errors'].= "
+              <div  id='e_layer2'
+                style=\"
+                  position: absolute;
+                  left: 0px;
+                  top: 0px;
+                  right:0px;
+                  bottom:0px;
+                  z-index:0;
+                  background-image: url(images/opacity_black.png);\"
+               </div>";
+          }
+
+        $_SESSION['errors'].= "
          <div style='left:20%;right:20%;top:30%;".
          "background-color:white;padding:5px;border:5px solid red;z-index:150;".
          "position:absolute' id='e_layer'><table style='width:100%' summary='' border=0>".
@@ -1085,7 +1117,7 @@ function print_red()
          "<td style='width:100%'><h1>"._("An error occurred while processing your request").
          "</h1><b>$string</b><br><br>$addmsg</td></tr><tr><td colspan='2' align='center'><br><button ".
          (($_SESSION['js']==FALSE)?"type='submit'":"type='button' name='error_accept'").
-         " style='width:80px' onClick='hide(\"e_layer\");hide(\"e_layer2\");'>".
+         " style='width:80px' onClick='hide(\"e_layer\");hide(\"e_layer2\");hide(\"e_layer3\");'>".
          _("OK")."</button></td></tr></table></div>";
 
         }