?> ;"> <?php $site = is_array($arSITE) ? $arSITE[0] : LANG; $arTplList = CSite::GetTemplateList($site); $tpl = ""; while ($ar = $arTplList->Fetch()) { if (strlen($tpl) == 0) { $tpl = $ar["TEMPLATE"]; } if (strlen(trim($ar["CONDITION"])) == 0) { $tpl = $ar["TEMPLATE"]; break; } } CFileMan::ShowHTMLEditControl("FORM_TEMPLATE", htmlspecialcharsback($str_FORM_TEMPLATE), array("site" => $arSITE[0], "templateID" => $tpl, "bUseOnlyDefinedStyles" => COption::GetOptionString("fileman", "show_untitled_styles", "N") != "Y", "bWithoutPHP" => false, "arToolbars" => array("standart", "style", "formating", "source", "template", "table"), "arTaskbars" => array("BXFormElementsTaskbar", "BXPropertiesTaskbar"), "toolbarConfig" => CFileman::GetEditorToolbarConfig("form_edit" . (defined('BX_PUBLIC_MODE') && BX_PUBLIC_MODE == 1 ? "_public" : "")), "sBackUrl" => "", "fullscreen" => false, 'width' => '100%', 'height' => '500', 'use_editor_3' => 'N')); ?> <script> oBXEditorUtils.addPHPParser(oForm.PHPParser); oBXEditorUtils.addTaskBar('BXFormElementsTaskbar', 2, "<?php echo GetMessageJS('FORM_TASKBARSET_TITLE'); ?> ", []); if (window.arButtons['Optimize']) arButtons['Optimize'][1].hideCondition = function(pMainObj){return pMainObj.name == "FORM_TEMPLATE";} </script> </div></td> </tr> <?php } else { ?>