Code

Updated error hanlding
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Jun 2007 09:14:26 +0000 (09:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Jun 2007 09:14:26 +0000 (09:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6695 594d385d-05f5-0310-b6e9-bd551577e9d8

html/images/opacity_black.png [new file with mode: 0644]
html/images/opacity_black_75.png [deleted file]
include/functions.inc

diff --git a/html/images/opacity_black.png b/html/images/opacity_black.png
new file mode 100644 (file)
index 0000000..1e1eb51
Binary files /dev/null and b/html/images/opacity_black.png differ
diff --git a/html/images/opacity_black_75.png b/html/images/opacity_black_75.png
deleted file mode 100644 (file)
index 9fac09e..0000000
Binary files a/html/images/opacity_black_75.png and /dev/null differ
index df840f5002d46d7e8c10f0c85ae368f95528a65c..91bb1e17c506033621e8770a540a189444055b34 100644 (file)
@@ -1065,28 +1065,29 @@ 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;
-                      background-image: url(images/opacity_black_75.png);
-'
->
-          </div>
-          <div style='margin-left:15%;margin-top:100px;".
-            "background-color:white;padding:5px;border:5px solid red;width:55%;z-index:150;".
-            "position:absolute' id='e_layer'><table style='width:100%' summary='' border=0>".
-            "<tr><td style='vertical-align:top;padding:10px'><img alt='' src='".
-            get_template_path($img)."'></td>".
-            "<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'").
-            " style='width:80px' onClick='hide(\"e_layer\");hide(\"e_layer2\");'>".
-            _("OK")."</button></td></tr></table></div>";
+            <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>".
+         "<tr><td style='vertical-align:top;padding:10px'><img alt='' src='".
+         get_template_path($img)."'></td>".
+         "<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\");'>".
+         _("OK")."</button></td></tr></table></div>";
+
         }
 
       }else{
@@ -1291,9 +1292,9 @@ function print_header($image, $headline, $info= "")
     $display.= "&nbsp;";
     $display.= "</div>\n";
   }
-  if (isset($_SESSION['errors'])){
-    $display.= $_SESSION['errors'];
-  }
+#  if (isset($_SESSION['errors'])){
+#    $display.= $_SESSION['errors'];
+#  }
 
   return ($display);
 }