Code

Transparent backgrounds for error msgs in ie
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Jun 2007 10:18:12 +0000 (10:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Jun 2007 10:18:12 +0000 (10:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6697 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 460294e9d79eed22dc3ce4661f68aa4204ea99ed..3a1661ea4a77448910dd290e11b99c4380ccc57f 100644 (file)
@@ -1132,21 +1132,52 @@ function print_red()
         }
       
         if(isset($_SESSION['errors']) && strlen($_SESSION['errors'])==0) {
+
+
+  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  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>
           <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>".