Example #1
0
                break;
            }
        }
    }
    if ($error) {
        CAdminMessage::ShowOldStyleError($error->GetErrorText());
    }
    $bFileman = CModule::IncludeModule("fileman");
    $arTranslit = $arIBlock["FIELDS"]["CODE"]["DEFAULT_VALUE"];
    $bLinked = (!strlen($str_TIMESTAMP_X) || $bSubCopy) && $_POST["linked_state"] !== 'N';
    //////////////////////////
    //START of the custom form
    //////////////////////////
    //We have to explicitly call calendar and editor functions because
    //first output may be discarded by form settings
    $tabControl->BeginPrologContent();
    CJSCore::Init(array('date'));
    if (COption::GetOptionString("iblock", "use_htmledit", "Y") == "Y" && $bFileman) {
        //TODO:This dirty hack will be replaced by special method like calendar do
        echo '<div style="display:none">';
        CFileMan::AddHTMLEditorFrame("SOME_TEXT", "", "SOME_TEXT_TYPE", "text", array('height' => 450, 'width' => '100%'), "N", 0, "", "", $arIBlock["LID"]);
        echo '</div>';
    }
    if ($arTranslit["TRANSLITERATION"] == "Y") {
        CJSCore::Init(array('window', 'translit'));
        ?>
		<script type="text/javascript">
		var linked=<?php 
        if ($bLinked) {
            echo 'true';
        } else {