From e1e7b2921bf7d862723e1508fc7ecd53b4b0e8d1 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Mon, 6 Jun 2011 13:12:11 +0000 Subject: [PATCH] Xals : a merger dans stable 1.0 --- bureau/admin/dom_edit.php | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/bureau/admin/dom_edit.php b/bureau/admin/dom_edit.php index 5b0d564e..48329520 100644 --- a/bureau/admin/dom_edit.php +++ b/bureau/admin/dom_edit.php @@ -126,23 +126,25 @@ for($i=0;$i<$r["nsub"];$i++) { } ?> ";__("Disable");echo ""; - break; - case 'ENABLE': - __("Activation pending"); - break; - case 'DISABLED': - __("Disabled"); - echo "
";__("Enable");echo ""; - break; - case 'DISABLE': - __("Desactivation pending"); - break; - } + if (!(!$isinvited && $dt[strtolower($r["sub"][$i]["type"])]["enable"] != "ALL" )) { + if ( $r['sub'][$i]['web_action'] !='DELETE') { + switch ($r['sub'][$i]['enable']) { + case 'ENABLED': + __("Enabled"); + echo "
";__("Disable");echo ""; + break; + case 'ENABLE': + __("Activation pending"); + break; + case 'DISABLED': + __("Disabled"); + echo "
";__("Enable");echo ""; + break; + case 'DISABLE': + __("Desactivation pending"); + break; + } + } }?>