require_once $c["path"] . "modules/common/panel_cluster.inc.php"; } else if ($view == $pos_objectProp && $aclf->checkAccessToFunction("CL_PROPS")) { $mynode = getVar("cluster"); $cond = "CLNID = $clnid"; $oname = new TextInput($lang->get("cl_name"), "cluster_node", "NAME", $cond, "type:text,width:200,size:32", "MANDATORY&UNIQUE"); $oname->setFilter("CLT_ID = $mynode"); $propPanel->add(new Hidden("view", $view)); $propPanel->add(new Hidden("processing", "yes")); $propPanel->add($oname); $propPanel->add(new SelectMultiple2Input($lang->get("variations"), "cluster_variations", "VARIATION_ID", $cond . " AND DELETED=0", "variations", "NAME", "VARIATION_ID", "DELETED=0")); $propPanel->add(new Hidden("action", "objectprop")); $propPanel->add(new FormButtons(true, true)); $handler = new ActionHandler("UPDATE"); $handler->addFncAction("syncClusterVariations"); $propPanel->registerActionHandler($handler); } else if ($view == $pos_metaPanel && ($aclf->checkAccessToFunction("ED_CL_META_DATA"))) { require_once $c["path"] . "modules/common/panel_meta.inc.php"; } // Build form if ($aclf->checkAccessToFunction("EDIT_CL_CONTENT")) $form->addPanel($clusterPanel); if ($aclf->checkAccessToFunction("ED_CL_META_DATA")) $form->addPanel($metaPanel); if ($aclf->checkAccessToFunction("CL_PROPS")) $form->addPanel($propPanel); $page->add($form);