From: hickert Date: Mon, 4 Sep 2006 10:31:18 +0000 (+0000) Subject: Fixed w3c error in acl selection dialog. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=49aa6ba48b047a8dd101d2190adf9c8b27674243;p=gosa.git Fixed w3c error in acl selection dialog. Made generated html code more readable git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4579 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_acl.inc b/include/class_acl.inc index 19cfabb29..522f10e32 100644 --- a/include/class_acl.inc +++ b/include/class_acl.inc @@ -489,14 +489,30 @@ class acl extends plugin /* Object header */ if($_SESSION['js']) { if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/gecko/i",$_SERVER['HTTP_USER_AGENT'])) { - $display.= ""; + $display.= "\n
"._("Object").": $name
". + "\n ". + "\n ". + "\n ". + "\n "; } else if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/ie/i",$_SERVER['HTTP_USER_AGENT'])) { - $display.= "
"._("Object").": $name". + "\n
"; + $display.= "\n
"._("Object").": $name
". + "\n ". + "\n ". + "\n ". + "\n "; } else { - $display.= "
"._("Object").": $name". + "\n
"; + $display.= "\n
"._("Object").": $name
". + "\n ". + "\n ". + "\n "; } } else { - $display.= "
"._("Object").": $name
"; + $display.= "\n
"._("Object").": $name
". + "\n ". + "\n ". + "\n "; } /* Generate options */ @@ -520,7 +536,10 @@ class acl extends plugin $more_options= $this->mkchkbx($key."_0_r", _("read"), preg_match('/r/', $currentAcl[0])).$spc; $more_options.= $this->mkchkbx($key."_0_w", _("write"), preg_match('/w/', $currentAcl[0])); - $display.= ""; + $display.= "\n ". + "\n ". + "\n ". + "\n "; /* Walk through the list of attributes */ $cnt= 1; @@ -528,9 +547,15 @@ class acl extends plugin asort($splist); if($_SESSION['js']) { if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/gecko/i",$_SERVER['HTTP_USER_AGENT'])) { - $display.= "
"._("Object").": $name
$options ".("Complete object:")." $more_options
$options ".("Complete object:")." $more_options