summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2a1bb8b)
raw | patch | inline | side by side (parent: 2a1bb8b)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 May 2006 13:30:24 +0000 (13:30 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 May 2006 13:30:24 +0000 (13:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3341 594d385d-05f5-0310-b6e9-bd551577e9d8
html/include/focus.js | patch | blob | history | |
include/functions.inc | patch | blob | history |
diff --git a/html/include/focus.js b/html/include/focus.js
index 3768f4995d503e7c7b49dc807ac58f05d3234fdf..18bca214033ae1f6250e61493877e9dd782c8e2a 100644 (file)
--- a/html/include/focus.js
+++ b/html/include/focus.js
document.poppedLayer = document.all[element];
else
document.poppedLayer = document.layers[element];
- document.poppedLayer.style.visibility = "hidden";
+ document.poppedLayer.style.visibility = "hidden";
}
function show(element) {
else
document.poppedLayer = document.layers[element];
- if (document.poppedLayer.style.visibility == "visible")
+ if (document.poppedLayer.style.visibility == "visible") {
hide (element);
- else
+ } else {
show (element);
-
+ }
}
function popup(target, name) {
function adjust_height(e) {
if (!e) e=window.event;
var px_height= window.innerHeight-230;
+ if(document.defaultView) {
+ var div_width=parseInt(document.defaultView.getComputedStyle(document.getElementById("t_scrolltable"),"").getPropertyValue('height'));
+ }
if(px_height >= 480) {
document.getElementById("d_scrollbody").style.height=px_height+"px";
}
diff --git a/include/functions.inc b/include/functions.inc
index 0bee05f49f3033260d39b6008f09d602d7b25da6..00f8914548def78c6da7910597a1ca645b093771 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
if (isset($_SESSION['DEBUGLEVEL'])){
if($_SESSION['LastError'] == $string){
-
+
if((!isset($_SESSION['errorsAlreadyPosted'][$string]))){
$_SESSION['errorsAlreadyPosted'][$string] = 1;
}
- $_SESSION['errorsAlreadyPosted'][$string] ++;
+ $_SESSION['errorsAlreadyPosted'][$string]++;
}else{
# if((!empty($_SESSION['LastError'])) && ($_SESSION['errorsAlreadyPosted'][$_SESSION['LastError']]>1)){
$string.= ".";
}
$string= preg_replace('/<br>/', ' ', $string);
- $_SESSION['errors'].= "<div style='margin-left:15%;margin-top:100px;background-color:white;padding:5px;border:5px solid red;width:60%;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('images/warning.png')."'></td>".
- "<td style='width:100%'><h1>"._("An error occured while processing your request")."</h1>".
- "<b>$string</b> "._("Please check your input and fix the contents of the highlighted field. Pess 'OK' to close this message box.")."</td>".
- "</tr><tr><td colspan='2' align='center'><br><button style='width:80px' onClick='toggle(\"e_layer\")'>"._("OK")."</button></td></tr></table></div>";
+
+ if(isset($_SESSION['errors']) && strlen($_SESSION['errors'])==0) {
+ $_SESSION['errors'].= "<div style='margin-left:15%;margin-top:100px;background-color:white;padding:5px;border:5px solid red;width:60%;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('images/warning.png')."'></td>".
+ "<td style='width:100%'><h1>"._("An error occured while processing your request")."</h1>".
+ "<b>$string</b> "._("Please check your input and fix the contents of the highlighted field. Press 'OK' to close this message box.")."</td>".
+ "</tr><tr><td colspan='2' align='center'><br><button ".(($_SESSION['js']==FALSE)?"type='submit'":"type='button'")." style='width:80px' onClick='hide(\"e_layer\")'>"._("OK")."</button></td></tr></table></div>";
+ }
#########################
-
}else{
return;
}
- $_SESSION['errorsAlreadyPosted'] = array();
+ #$_SESSION['errorsAlreadyPosted'] = array();
$_SESSION['errorsAlreadyPosted'][$string] = 1;
}
echo "Error: $string\n";
}
$_SESSION['LastError'] = $string;
-
}