if (!isset($go) || $go == "0") $go = "insert"; $page_action = "INSERT"; $clt = getVar("clt"); $form = new stdEDForm($lang->get("cl_new"), "i_edit.gif"); $cond = $form->setPK("cluster_node", "CLNID"); $oname = new TextInput($lang->get("name"), "cluster_node", "NAME", $cond, "type:text,width:200,size:32", "MANDATORY&UNIQUE"); $oname->setFilter("CLT_ID = $clt"); $form->add($oname); $form->add(new SelectMultiple2Input($lang->get("variations"), "cluster_variations", "VARIATION_ID", "1", "variations", "NAME", "VARIATION_ID", "DELETED=0")); $form->add(new Hidden("action", $lang->get("cl_new"))); $form->add(new NonDisplayedValueOnInsert("cluster_node", "CLT_ID", $cond, $clt, "NUMBER")); $form->add(new NonDisplayedValueOnInsert("cluster_node", "DELETED", $cond, 0, "NUMBER")); $form->forbidDelete(true); $form->forbidUpdate(true); $handler = new ActionHandler("INSERT"); $handler->addFncAction("syncClusterVariations"); $form->registerActionHandler($handler); $page->add($form); // edit the properties of an object. $handled = true; } else if ($action != "foo" && ($action != "0" || $view != "0")) { if ($action == "") $action = value("acstate"); if ($action == "createCluster") { $id = value("id");