if(strlen($TYPE["CODE"]) > 0){ $arActionTypeFields = CFTriggerActionTypeFields::GetByID($TYPE["CODE"]); if(intval($_REQUEST["ADDITIONAL_PROPS"][0])){ $strAdditionalActionTypeFields = CFTriggerActionTypeFields::GetAdditionalFields(intval($_REQUEST["ADDITIONAL_PROPS"][0])); } } }elseif(strlen($f_ACTION_TYPE)){ $ACTION_TYPE = $f_ACTION_TYPE; $TYPE = CFTriggerActionTypes::GetByID($ACTION_TYPE); //echo "<pre>";print_r($TYPE);echo "</pre>"; if(strlen($TYPE["CODE"]) > 0){ $arActionTypeFields = CFTriggerActionTypeFields::GetByID($TYPE["CODE"]); } }elseif(!empty($arActionTypes) && intval(key($arActionTypes))){ $ACTION_TYPE = key($arActionTypes); $TYPE = CFTriggerActionTypes::GetByID($ACTION_TYPE); if(strlen($TYPE["CODE"]) > 0) $arActionTypeFields = CFTriggerActionTypeFields::GetByID($TYPE["CODE"]); } //echo "<pre>";print_r($arActionTypeFields);echo "</pre>"; if($bVarsFromForm) { $DB->InitTableVarsForEdit("f_actions", "", "f_"); } if($message) echo $message->Show(); ?> <form method="post" action="<?$APPLICATION->GetCurPage()?>" name="form1">