当前位置: 首页>>代码示例>>PHP>>正文


PHP CLightHTMLEditor::Show方法代码示例

本文整理汇总了PHP中CLightHTMLEditor::Show方法的典型用法代码示例。如果您正苦于以下问题:PHP CLightHTMLEditor::Show方法的具体用法?PHP CLightHTMLEditor::Show怎么用?PHP CLightHTMLEditor::Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CLightHTMLEditor的用法示例。


在下文中一共展示了CLightHTMLEditor::Show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: GetPublicEditHTML

 public static function GetPublicEditHTML($arProperty, $value, $strHTMLControlName)
 {
     if (!CModule::IncludeModule("fileman")) {
         return GetMessage("IBLOCK_PROP_HTML_NOFILEMAN_ERROR");
     }
     if (!is_array($value["VALUE"])) {
         $value = CIBlockPropertyHTML::ConvertFromDB($arProperty, $value);
     }
     $settings = CIBlockPropertyHTML::PrepareSettings($arProperty);
     $id = preg_replace("/[^a-z0-9]/i", '', $strHTMLControlName['VALUE']);
     ob_start();
     echo '<input type="hidden" name="' . $strHTMLControlName["VALUE"] . '[TYPE]" value="html">';
     $LHE = new CLightHTMLEditor();
     $LHE->Show(array('id' => $id, 'width' => '100%', 'height' => $settings['height'] . 'px', 'inputName' => $strHTMLControlName["VALUE"] . '[TEXT]', 'content' => $value["VALUE"]['TEXT'], 'bUseFileDialogs' => false, 'bFloatingToolbar' => false, 'bArisingToolbar' => false, 'bRecreate' => true, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'RemoveFormat', 'CreateLink', 'DeleteLink', 'Image', 'Video', 'BackColor', 'ForeColor', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull', 'InsertOrderedList', 'InsertUnorderedList', 'Outdent', 'Indent', 'StyleList', 'HeaderList', 'FontList', 'FontSizeList')));
     $s = ob_get_contents();
     ob_end_clean();
     return $s;
 }
开发者ID:rasuldev,项目名称:torino,代码行数:18,代码来源:prop_html.php

示例2: DialogEditEvent

    private static function DialogEditEvent($Params)
    {
        global $APPLICATION;
        $id = $Params['id'];
        $bWideDate = strpos(FORMAT_DATETIME, 'MMMM') !== false;
        $arTabs = array(array('name' => GetMessage('EC_EDEV_EVENT'), 'title' => GetMessage('EC_EDEV_EVENT_TITLE'), 'id' => $id . "ed-tab-0", 'active' => true), array('name' => GetMessage('EC_T_DESC'), 'title' => GetMessage('EC_T_DESC_TITLE'), 'id' => $id . "ed-tab-1"), array('name' => GetMessage('EC_EDEV_GUESTS'), 'title' => GetMessage('EC_EDEV_GUESTS_TITLE'), 'id' => $id . "ed-tab-2", "show" => !!$Params['bSocNet']), array('name' => GetMessage('EC_EDEV_ADD_TAB'), 'title' => GetMessage('EC_EDEV_ADD_TAB_TITLE'), 'id' => $id . "ed-tab-3"));
        ?>
<div id="bxec_edit_ed_<?php 
        echo $id;
        ?>
" class="bxec-popup">
	<div style="width: 520px; height: 1px;"></div>
	<div class="bxec-d-tabs" id="<?php 
        echo $id;
        ?>
_edit_tabs">
		<?php 
        foreach ($arTabs as $tab) {
            ?>
			<div class="bxec-d-tab <?php 
            if ($tab['active']) {
                echo 'bxec-d-tab-act';
            }
            ?>
" title="<?php 
            echo $tab['title'];
            ?>
" id="<?php 
            echo $tab['id'];
            ?>
" <?php 
            if ($tab['show'] === false) {
                echo 'style="display:none;"';
            }
            ?>
>
				<b></b><div><span><?php 
            echo $tab['name'];
            ?>
</span></div><i></i>
			</div>
		<?php 
        }
        ?>
	</div>
	<div class="bxec-d-cont"  id="<?php 
        echo $id;
        ?>
_edit_ed_d_tabcont">
		<?php 
        /* ####### TAB 0 : MAIN ####### */
        ?>
		<div id="<?php 
        echo $id;
        ?>
ed-tab-0-cont" class="bxec-d-cont-div<?php 
        echo $Params['bAMPM'] ? ' bxec-d-cont-div-ampm' : '';
        echo $bWideDate ? ' bxec-d-cont-div-wide-date' : '';
        ?>
">
			<div class="bxc-meeting-edit-note"><?php 
        echo GetMessage('EC_EDIT_MEETING_NOTE');
        ?>
</div>

			<div class="bxec-popup-row bxec-popup-row-from-to">
				<div style="margin-top: 16px;">
				<span class="bxec-field-val-2 bxec-field-title-inner bxec-field-calendar">
					<label class="bxec-from-to-lbl bxec-field-lbl-imp" for="<?php 
        echo $id;
        ?>
edev-from"><?php 
        echo GetMessage('EC_EDEV_DATE_FROM');
        ?>
</label>
					<input id="<?php 
        echo $id;
        ?>
edev-from"  type="text"/></span>
				<span class="bxec-field-val-2 bxec-field-title-inner bxec-field-time"><?php 
        CClock::Show(array('inputId' => $id . 'edev_from_time', 'inputTitle' => GetMessage('EC_EDEV_TIME_FROM')));
        ?>
<i class="bxec-time-icon"></i></span>
				&mdash;
				<span class="bxec-field-val-2 bxec-field-title-inner bxec-field-calendar">
					<label class="bxec-from-to-lbl" for="<?php 
        echo $id;
        ?>
edev-from"><?php 
        echo GetMessage('EC_EDEV_DATE_TO');
        ?>
</label>
					<input id="<?php 
        echo $id;
        ?>
edev-to"  type="text"/></span>
				<span class="bxec-field-val-2 bxec-field-title-inner bxec-field-time"><?php 
        CClock::Show(array('inputId' => $id . 'edev_to_time', 'inputTitle' => GetMessage('EC_EDEV_TIME_TO')));
        ?>
<i class="bxec-time-icon"></i></span>
//.........这里部分代码省略.........
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:101,代码来源:calendar_sceleton.php

示例3: GetMessage

>
			</td>
		</tr>
		<tr id="tr_FILTER_HINT" class="adm-detail-valign-top" style="display: <?php 
        echo $arProperty['SECTION_PROPERTY'] != 'N' ? 'table-row' : 'none';
        ?>
">
			<td width="40%"><?php 
        echo GetMessage("BT_ADM_IEP_PROP_FILTER_HINT");
        ?>
</td>
			<td>
			<?php 
        CModule::IncludeModule("fileman");
        $LHE = new CLightHTMLEditor();
        $LHE->Show(array('inputName' => 'PROPERTY_FILTER_HINT', 'content' => $arProperty['FILTER_HINT'], 'height' => 200, 'width' => '100%', 'bResizable' => false, 'bUseFileDialogs' => false, 'bFloatingToolbar' => false, 'bArisingToolbar' => true, 'bAutoResize' => true, 'bSaveOnBlur' => true, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'CreateLink', 'DeleteLink', 'Source', 'BackColor', 'ForeColor')));
        ?>
			</td>
		</tr>
		<?php 
    } elseif (isset($arPropertyFields["SET"]["SMART_FILTER"])) {
        ?>
			<input type="hidden" id="PROPERTY_SMART_FILTER_Y" name="PROPERTY_SMART_FILTER" value="<?php 
        echo htmlspecialcharsbx($arPropertyFields["SET"]["FILTRABLE"]);
        ?>
">
		<?php 
    }
    ?>
	<?php 
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:iblock_edit_property.php

示例4: array

     related to http://jabber.bx/view.php?id=19527
     // TODO: needs good synchronization first
     $info = CTimeMan::GetRuntimeInfo(true);
     $arTasksIds = array();
     if (is_array($info) && isset($info['TASKS']))
     {
     	foreach ($info['TASKS'] as $arTask)
     		$arTasksIds[] = (int) $arTask['ID'];
     }
     */
     $APPLICATION->IncludeComponent("bitrix:tasks.task.selector", ".default", array("MULTIPLE" => "N", "NAME" => "TIMEMAN_TASKS", "VALUE" => '', "POPUP" => "N", "ON_SELECT" => "TIMEMAN_ADD_TASK_" . $_REQUEST['suffix'], "PATH_TO_TASKS_TASK" => str_replace('#USER_ID#', $USER->GetID(), COption::GetOptionString('intranet', 'path_task_user_entry', '/company/personal/user/#USER_ID#/tasks/task/view/#TASK_ID#/', $_REQUEST['site_id'])), "SITE_ID" => $_REQUEST['site_id'], "FILTER" => array('DOER' => $USER->GetID(), 'STATUS' => array(-2, -1, CTasks::STATE_NEW, CTasks::STATE_PENDING, CTasks::STATE_IN_PROGRESS, CTasks::STATE_DEFERRED)), 'HIDE_ADD_REMOVE_CONTROLS' => 'Y'), null, array("HIDE_ICONS" => "Y"));
 } elseif ($action == "editor") {
     $APPLICATION->ShowAjaxHead();
     CModule::IncludeModule("fileman");
     $LHE = new CLightHTMLEditor();
     $LHE->Show(array('id' => strlen($_REQUEST["obname"]) > 0 ? $_REQUEST["obname"] : "oReportLHE", 'content' => "", 'inputName' => "ITEM_DESCRIPTION", 'inputId' => "", 'width' => "100%", 'height' => "200px", 'bUseFileDialogs' => false, 'jsObjName' => strlen($_REQUEST["obname"]) > 0 ? $_REQUEST["obname"] : "oReportLHE", 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'ForeColor', 'FontList', 'FontSizeList', 'RemoveFormat', 'Image', 'Table', 'InsertOrderedList', 'InsertUnorderedList', 'Source'), 'bResizable' => false, 'bAutoResize' => false));
 } elseif ($action == "upload_attachment") {
     $report = null;
     $report_id = intval($_POST["report_id"]);
     if ($report_id > 0) {
         $user_id = intval($_REQUEST['user_id']);
         if ($user_id <= 0) {
             $user_id = $USER->GetID();
         }
         $bCanReadUser = $user_id == $USER->GetID();
         if (!$bCanReadUser) {
             $arAccessUsers = CTimeMan::GetAccess();
             $bCanReadAll = in_array('*', $arAccessUsers['READ']);
             $bCanReadUser = $bCanReadAll || in_array($user_id, $arAccessUsers["READ"]);
         }
         if ($bCanReadUser) {
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:timeman.php

示例5: AddEventHandler

    }
    AddEventHandler("fileman", "OnIncludeLightEditorScript", "CustomizeLightEditorForBlog");
    $arSmiles = array();
    if (!empty($arResult["Smiles"])) {
        foreach ($arResult["Smiles"] as $arSmile) {
            $arSmiles[] = array('name' => $arSmile["~LANG_NAME"], 'path' => "/bitrix/images/blog/smile/" . $arSmile["IMAGE"], 'code' => str_replace("\\\\", "\\", $arSmile["TYPE"]));
        }
    }
    ?>
	<div id="edit-post-text">
	<?php 
    $bbCode = true;
    // Detect necessity of first convertion content from BB-code to HTML in editor.
    $bConvertContentFromBBCodes = !$bbCode && $_REQUEST["load_editor"] == "Y" && !isset($_REQUEST['preview']) && !isset($_REQUEST['save']) && !isset($_REQUEST['apply']) && !isset($_REQUEST['draft']);
    $LHE = new CLightHTMLEditor();
    $LHE->Show(array('id' => 'LHEBlogId', 'height' => $arParams['EDITOR_DEFAULT_HEIGHT'], 'inputId' => 'POST_MESSAGE_HTML', 'inputName' => 'POST_MESSAGE', 'content' => $arResult["PostToShow"]["~DETAIL_TEXT"], 'bUseFileDialogs' => false, 'bUseMedialib' => false, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'ForeColor', 'FontList', 'FontSizeList', 'RemoveFormat', 'Quote', 'Code', 'InsertCut', 'CreateLink', 'DeleteLink', 'Image', 'BlogImage', $arResult["allowVideo"] == "Y" ? 'BlogInputVideo' : '', 'Table', 'Justify', 'InsertOrderedList', 'InsertUnorderedList', 'SmileList', 'Source'), 'jsObjName' => 'oBlogLHE', 'arSmiles' => $arSmiles, 'smileCountInToolbar' => $arParams['SMILES_COUNT'], 'bSaveOnBlur' => false, 'BBCode' => $bbCode, 'bConvertContentFromBBCodes' => $bConvertContentFromBBCodes, 'bQuoteFromSelection' => true, 'bResizable' => $arParams['EDITOR_RESIZABLE'], 'ctrlEnterHandler' => 'blogCtrlEnterHandler', 'bSetDefaultCodeView' => $arParams['EDITOR_CODE_DEFAULT'], 'bBBParseImageSize' => true));
    ?>
</div><?php 
}
if (COption::GetOptionString("blog", "use_autosave", "Y") == "Y") {
    ?>
	<script>
	var bShow = false;
	function blogCheckLHE()
	{
		if(window.oBlogLHE)
		{
			if(!bShow)
				bShow = true;
			BlogPostAutoSaveIcon();
		}
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:editor.php

示例6: array

		'smileCountInToolbar' => $arParams['SMILES_COUNT'],
		'bSaveOnBlur' => true,
		'BBCode' => true,
		'bConvertContentFromBBCodes' => false,
		'bQuoteFromSelection' => true, // Make quote from any text in the page
		'bSetDefaultCodeView' => false, // Set first view to CODE or to WYSIWYG
		'bBBParseImageSize' => true, // [IMG ID=XXX WEIGHT=5 HEIGHT=6],  [IMGWEIGHT=5 HEIGHT=6]/image.gif[/IMG]
		'bResizable' => true,
		'bAutoResize' => true,
		'autoResizeOffset' => 40,
		'controlButtonsHeight' => '34',
		'autoResizeSaveSize' => false
	), $arParams["LHE"]);
if ($arParams["LHE"]['ctrlEnterHandler'] === true || !empty($arParams["LHE"]['ctrlEnterHandler']))
	$res['ctrlEnterHandler'] = "__ctrlEnterHandler".$arParams["FORM_ID"];
$LHE->Show($res);
$res = array();
foreach ($tmp = array(
	"UploadImage" => "postimage", "UploadFile" => "postfile",
	"InputVideo" => "postvideo", "MentionUser" => "postuser") as $key => $val):
	if (in_array($key, $arParams["PARSER"]))
		$res[] = $val;
endforeach;
?></div>
<script type="text/javascript">
window['<?php 
echo $arParams["LHE"]["id"];
?>
Settings'] = <?php 
echo CUtil::PhpToJSObject(array('parsers' => $res, 'arFiles' => array_keys($arParams["FILES"]["VALUE_JS"]), 'showEditor' => $arParams["TEXT"]["SHOW"] == "Y", 'formID' => $arParams["FORM_ID"], 'objName' => $arParams["JS_OBJECT_NAME"], 'buttons' => $arParams["BUTTONS"]));
?>
开发者ID:nProfessor,项目名称:Mytb,代码行数:31,代码来源:lhe.php

示例7: array

?>
<span class="forum-required-field">*</span></div>

	<div class="forum-reply-fields">
		<div class="forum-reply-field forum-reply-field-text">
			<?php 
$arSmiles = array();
foreach ($arResult["SMILES"] as $arSmile) {
    $arSmiles[] = array('name' => $arSmile["NAME"], 'path' => $arParams["PATH_TO_SMILE"] . $arSmile["IMAGE"], 'code' => array_shift(explode(" ", str_replace("\\\\", "\\", $arSmile["TYPING"]))));
}
CModule::IncludeModule("fileman");
AddEventHandler("fileman", "OnIncludeLightEditorScript", "CustomizeLHEForForum");
$LHE = new CLightHTMLEditor();
$arEditorParams = array('id' => "POST_MESSAGE", 'content' => isset($arResult['POST_VALUES']["~POST_MESSAGE"]) ? $arResult['POST_VALUES']["~POST_MESSAGE"] : $arResult['POST_VALUES']["POST_MESSAGE"], 'inputName' => "POST_MESSAGE", 'inputId' => "", 'width' => "100%", 'height' => "200px", 'minHeight' => "200px", 'bUseFileDialogs' => false, 'bUseMedialib' => false, 'BBCode' => true, 'bBBParseImageSize' => true, 'jsObjName' => "oLHE", 'toolbarConfig' => array(), 'smileCountInToolbar' => 3, 'arSmiles' => $arSmiles, 'bQuoteFromSelection' => true, 'ctrlEnterHandler' => 'postformCtrlEnterHandler' . $arParams["form_index"], 'bSetDefaultCodeView' => $arParams['EDITOR_CODE_DEFAULT'] === 'Y', 'bResizable' => true, 'bAutoResize' => true);
$arEditorParams['toolbarConfig'] = forumTextParser::GetEditorToolbar(array('mode' => 'full'));
$LHE->Show($arEditorParams);
?>
		</div>

		<div class="forum-reply-field forum-reply-field-settings">
			<div class="forum-reply-field-setting">
				<input type="checkbox" name="USE_SMILES" id="USE_SMILES" <?php 
?>
value="Y" <?php 
echo $arResult["POST_VALUES"]["USE_SMILES"] == "Y" ? "checked=\"checked\"" : "";
?>
 <?php 
?>
tabindex="<?php 
echo $tabIndex++;
?>
开发者ID:dayAlone,项目名称:MyQube,代码行数:31,代码来源:template.php

示例8: GetMessage

}
CModule::IncludeModule("fileman");
$LHE = new CLightHTMLEditor();
?>
<div class="meeting-detail-title-wrap">
	<span class="meeting-ques-inp-label"><?php 
echo GetMessage('MI_EDIT_TITLE');
?>
</span>
	<input type="text" name="ITEM_TITLE" value="<?php 
echo htmlspecialcharsbx($arResult['ITEM']['TITLE']);
?>
" class="meeting-ques-edit-inp" />
</div>
<div id="meeting-detail-description" class="meeting-detail-description">
	<span class="meeting-ques-form-label"><?php 
echo GetMessage('MI_EDIT_DESCRIPTION');
?>
</span>
	<div class="meeting-detail-description-form">
<?php 
$LHE->Show(array('id' => "", 'content' => $arResult['ITEM']['DESCRIPTION'], 'inputName' => "ITEM_DESCRIPTION", 'inputId' => "", 'width' => "100%", 'height' => "200px", 'bUseFileDialogs' => false, 'jsObjName' => "oMeetingLHE", 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'ForeColor', 'FontList', 'FontSizeList', 'RemoveFormat', 'Quote', 'Code', 'Image', 'Table', 'InsertOrderedList', 'InsertUnorderedList', 'SmileList', 'Source'), 'bResizable' => true, 'bAutoResize' => true));
?>
	</div>
	<div id="meeting-detail-files" class="meeting-detail-files meeting-detail-files-edit">
<?php 
$APPLICATION->IncludeComponent('bitrix:main.file.input', '', array('INPUT_NAME' => 'ITEM_FILES', 'INPUT_NAME_UNSAVED' => 'ITEM_FILES_TMP', 'INPUT_VALUE' => array_keys($arResult['ITEM']['FILES']), 'CONTROL_ID' => 'MEETING_ITEM_FILES_' . $arParams['ITEM_ID'], 'MODULE_ID' => 'meeting'), null, array('HIDE_ICONS' => 'Y'));
?>
	</div>
</div>
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:30,代码来源:edit.php

示例9: array

        case 'EMAIL_FROM':
            $f['type'] = 'text';
            $f['params'] = array('size' => 50);
            break;
        case 'SCOPE':
        case 'ENTITY_TYPE_ID':
            $f['type'] = 'list';
            $f['items'] = isset($data['ALL_VALUES']) ? $data['ALL_VALUES'] : array();
            break;
        case 'BODY':
            $f['type'] = 'custom';
            $f['colspan'] = true;
            CModule::IncludeModule('fileman');
            ob_start();
            $editor = new CLightHTMLEditor();
            $editor->Show(array('id' => 'MailTemplateBodyEditor', 'height' => '192', 'BBCode' => true, 'bUseFileDialogs' => false, 'bFloatingToolbar' => false, 'bArisingToolbar' => false, 'bResizable' => false, 'jsObjName' => 'oLheMailTemplateBody', 'bInitByJS' => false, 'bSaveOnBlur' => false, 'content' => $f['value'], 'inputName' => $ID, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'ForeColor', 'FontList', 'FontSizeList', 'RemoveFormat', 'Quote', 'Code', 'CreateLink', 'DeleteLink', 'Image', 'Table', 'Justify', 'InsertOrderedList', 'InsertUnorderedList', 'Indent', 'Outdent', 'Source')));
            $f['value'] = ob_get_contents();
            ob_end_clean();
            break;
        default:
            $f['type'] = 'text';
    }
    $mainTabFields[] =& $f;
    if ($ID === 'ENTITY_TYPE_ID') {
        //Add field selector control
        $selectorContainerID = $arResult['FORM_ID'] . '_ENTITY_FIELD_SELECTOR';
        $selector = array('id' => 'ENTITY_FIELD_SELECTOR', 'name' => GetMessage('CRM_MAIL_TEMPLATE_ENTITY_FIELD_SELECTOR'), 'type' => 'custom', 'value' => '<span id="' . htmlspecialcharsbx($selectorContainerID) . '"></span>');
        $mainTabFields[] =& $selector;
        unset($selector);
        ?>
<script type="text/javascript">
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:template.php

示例10: htmlspecialcharsEx

				<div class="crm-offer-editor-title">
					<div class="crm-offer-editor-title-contents-wapper">
						<?php 
            if ($required) {
                ?>
<span class="required">*</span><?php 
            }
            ?>
						<span class="crm-offer-editor-title-contents"><?php 
            echo htmlspecialcharsEx($field['name']);
            ?>
</span>
					</div>
				</div>
				<div class="crm-offer-editor-wrap crm-offer-info-data-wrap"><?php 
            $lhe->Show($params);
            ?>
</div>
				<span class="crm-offer-edit-btn-wrap"><?php 
            if (!$required && !$persistent) {
                ?>
<span class="crm-offer-item-del"></span><?php 
            }
            ?>
<span class="crm-offer-item-edit"></span>
				</span>
			</td><!-- "crm-offer-info-right" --><?php 
        } elseif ($field['type'] === 'address') {
            $params = isset($field['componentParams']) ? $field['componentParams'] : array();
            $addressData = isset($params['DATA']) ? $params['DATA'] : array();
            $addressServiceUrl = isset($params['SERVICE_URL']) ? $params['SERVICE_URL'] : '';
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:template.php

示例11: RenderHtmlEditor

 public static function RenderHtmlEditor(&$arParams)
 {
     if (!is_array($arParams)) {
         return;
     }
     $fieldID = isset($arParams['FIELD_ID']) ? $arParams['FIELD_ID'] : '';
     $value = isset($arParams['VALUE']) ? $arParams['VALUE'] : '';
     $editorID = isset($arParams['EDITOR_ID']) ? $arParams['EDITOR_ID'] : '';
     if ($editorID === '') {
         $editorID = uniqid('LHE_');
     }
     $editorJsName = isset($arParams['EDITOR_JS_NAME']) ? $arParams['EDITOR_JS_NAME'] : '';
     if ($editorJsName === '') {
         $editorJsName = $editorID;
     }
     $toolbarConfig = isset($arParams['TOOLBAR_CONFIG']) ? $arParams['TOOLBAR_CONFIG'] : null;
     if (!is_array($toolbarConfig)) {
         $toolbarConfig = array('Bold', 'Italic', 'Underline', 'Strike', 'BackColor', 'ForeColor', 'CreateLink', 'DeleteLink', 'InsertOrderedList', 'InsertUnorderedList', 'Outdent', 'Indent');
     }
     if (!self::$IS_FILEMAN_INCLUDED) {
         CModule::IncludeModule('fileman');
         self::$IS_FILEMAN_INCLUDED = true;
     }
     ob_start();
     $editor = new CLightHTMLEditor();
     $editor->Show(array('id' => $editorID, 'height' => '150', 'bUseFileDialogs' => false, 'bFloatingToolbar' => false, 'bArisingToolbar' => false, 'bResizable' => false, 'jsObjName' => $editorJsName, 'bInitByJS' => false, 'bSaveOnBlur' => true, 'toolbarConfig' => $toolbarConfig));
     $lheHtml = ob_get_contents();
     ob_end_clean();
     $wrapperID = isset($arParams['WRAPPER_ID']) ? $arParams['WRAPPER_ID'] : '';
     if ($wrapperID === '') {
         $wrapperID = $editorID . '_WRAPPER';
     }
     echo str_replace(array('#TEXT#', '#VALUE#', '#NAME#', '#SETTINGS#', '#WRAPPER_ID#', '#HTML#'), array($value, htmlspecialcharsbx($value), $fieldID, htmlspecialcharsbx('{ "id":"' . CUtil::JSEscape($editorID) . '", "wrapperId":"' . CUtil::JSEscape($wrapperID) . '", "jsName":"' . CUtil::JSEscape($editorJsName) . '" }'), $wrapperID, $lheHtml), self::$TEMPLATES['LHE']);
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:34,代码来源:crm_component_helper.php

示例12: GetMessage

    function __ShowTextFieldTmp($name, $multiple, $key, $value, $isInSecurity)
    {
        if (!$isInSecurity) {
            echo '<textarea name="' . $name . ($multiple ? '[' . $key . ']' : '') . '" style="width:98%" rows="10">' . $value . '</textarea>';
        } else {
            CModule::IncludeModule("fileman");
            if ($name == "DETAIL_TEXT") {
                ?>
				<script>
				window.LHE_TC = {
					butTitle: '<?php 
                echo GetMessage("INTET_VE_INS_SUBTASK");
                ?>
',
					dialogTitle: '<?php 
                echo GetMessage("INTET_VE_INS_SUBTASK1");
                ?>
',
					subTaskLabel: '<?php 
                echo GetMessage("INTET_VE_INS_SUBTASK2");
                ?>
'
				};

				window.subTaskStyles = "\n" +
				"ul.bx-subtasklist {list-style-image: url(/bitrix/images/fileman/light_htmledit/check_off.gif);}" + 
				"ul.bx-subtasklist li{padding-left: 5px;}" +
				"ul.bx-subtasklist li.checked{ list-style-image: url(/bitrix/images/fileman/light_htmledit/check_on.gif);}" +
				"\n";
				</script>
				<?php 
                AddEventHandler("fileman", "OnBeforeLightEditorScriptsGet", "lhe_add_js");
                function lhe_add_js($LheId)
                {
                    if ($LheId == 'LHETaskId') {
                        return array("JS" => array('/bitrix/js/fileman/light_editor/task_checkbox.js'));
                    }
                }
                $ar = array('id' => 'LHETaskId', 'height' => '200px', 'inputName' => $name . ($multiple ? '[' . $key . ']' : ''), 'inputId' => $name . '_id', 'content' => $value, 'bUseFileDialogs' => false, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'RemoveFormat', 'CreateLink', 'DeleteLink', 'Image', 'Video', 'ForeColor', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull', 'InsertOrderedList', 'InsertUnorderedList', 'Outdent', 'Indent', 'StyleList', 'HeaderList', 'FontList', 'FontSizeList', 'TaskCheckbox'), 'jsObjName' => 'oLHE', 'bResizable' => true);
            } else {
                $ar = array('height' => '200px', 'inputName' => $name . ($multiple ? '[' . $key . ']' : ''), 'inputId' => $name . '_id', 'content' => $value, 'bUseFileDialogs' => false, 'toolbarConfig' => array('Bold', 'Italic', 'Underline', 'Strike', 'RemoveFormat', 'CreateLink', 'DeleteLink', 'Image', 'Video', 'ForeColor', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull', 'InsertOrderedList', 'InsertUnorderedList', 'Outdent', 'Indent', 'StyleList', 'HeaderList', 'FontList', 'FontSizeList'), 'bResizable' => true);
            }
            $LHE = new CLightHTMLEditor();
            $LHE->Show($ar);
        }
    }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:46,代码来源:template.php

示例13: blogCheckLength

    if (!empty($arResult["Smiles"])) {
        foreach ($arResult["Smiles"] as $arSmile) {
            $arSmiles[] = array('name' => $arSmile["~LANG_NAME"], 'path' => "/bitrix/images/blog/smile/" . $arSmile["IMAGE"], 'code' => str_replace("\\\\", "\\", $arSmile["TYPE"]));
        }
    }
    ?>
	<div id="edit-post-text">
	<?php 
    $bbCode = true;
    if ($arResult["allow_html"] == "Y" && ($arResult["PostToShow"]["DETAIL_TEXT_TYPE"] == "html" && $_REQUEST["load_editor"] != "N" || $_REQUEST["load_editor"] == "Y")) {
        $bbCode = false;
    }
    // Detect necessity of first convertion content from BB-code to HTML in editor.
    $bConvertContentFromBBCodes = !$bbCode && $_REQUEST["load_editor"] == "Y" && !isset($_REQUEST['preview']) && !isset($_REQUEST['save']) && !isset($_REQUEST['apply']) && !isset($_REQUEST['draft']);
    $LHE = new CLightHTMLEditor();
    $LHE->Show(array('id' => 'LHEBlogId', 'width' => '100%', 'height' => '120px', 'inputId' => 'POST_MESSAGE_HTML', 'inputName' => 'POST_MESSAGE', 'content' => $arResult["PostToShow"]["~DETAIL_TEXT"], 'bUseFileDialogs' => false, 'bUseMedialib' => false, 'toolbarConfig' => array('BlogImage', 'CreateLink', $arResult["allowVideo"] == "Y" ? 'BlogInputVideo' : ''), 'jsObjName' => 'oBlogLHE', 'arSmiles' => $arSmiles, 'smileCountInToolbar' => 1, 'bSaveOnBlur' => false, 'BBCode' => $bbCode, 'bConvertContentFromBBCodes' => $bConvertContentFromBBCodes, 'bQuoteFromSelection' => true, 'bResizable' => true, 'bAutoResize' => true, 'autoResizeOffset' => 40, 'autoResizeMaxHeight' => 300, 'controlButtonsHeight' => 0, 'autoResizeSaveSize' => false, 'ctrlEnterHandler' => 'blogCtrlEnterHandler', 'bSetDefaultCodeView' => false, 'bBBParseImageSize' => true));
    ?>
</div><?php 
}
?>
<script>
var bShow = false;
function blogCheckLength()
{
	if(window.oBlogLHE)
	{
		if(!bShow)
		{
			var el = BX.findChild(BX("bxlhe_frame_LHEBlogId"), {className: "lhe-stat-toolbar-cont"}, true);
			elTr = BX.findParent(BX.findParent(el));
			elTr.style.display = "none";
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:lhe.php

示例14: RenderInstantEditorField

 public static function RenderInstantEditorField($arParams)
 {
     $fieldID = isset($arParams['FIELD_ID']) ? $arParams['FIELD_ID'] : '';
     $type = isset($arParams['TYPE']) ? $arParams['TYPE'] : '';
     if ($type === 'TEXT') {
         $value = isset($arParams['VALUE']) ? $arParams['VALUE'] : '';
         $suffixHtml = isset($arParams['SUFFIX_HTML']) ? $arParams['SUFFIX_HTML'] : '';
         if ($suffixHtml === '') {
             $suffix = isset($arParams['SUFFIX']) ? $arParams['SUFFIX'] : '';
             if ($suffix !== '') {
                 $suffixHtml = htmlspecialcharsbx($suffix);
             }
         }
         $inputWidth = isset($arParams['INPUT_WIDTH']) ? intval($arParams['INPUT_WIDTH']) : 0;
         echo '<span class="crm-instant-editor-fld crm-instant-editor-fld-input">', '<span class="crm-instant-editor-fld-text">', htmlspecialcharsbx($value), '</span>';
         echo '<input class="crm-instant-editor-data-input" type="text" value="', htmlspecialcharsbx($value), '" style="display:none;', $inputWidth > 0 ? "width:{$inputWidth}px;" : '', '" />', '<input class="crm-instant-editor-data-name" type="hidden" value="', htmlspecialcharsbx($fieldID), '" />';
         if ($suffixHtml !== '') {
             echo '<span class="crm-instant-editor-fld-suffix">', $suffixHtml, '</span>';
         }
         echo '</span><span class="crm-instant-editor-fld-btn crm-instant-editor-fld-btn-input"></span>';
     } elseif ($type === 'LHE') {
         $editorID = isset($arParams['EDITOR_ID']) ? $arParams['EDITOR_ID'] : '';
         if ($editorID === '') {
             $editorID = uniqid('LHE_');
         }
         $editorJsName = isset($arParams['EDITOR_JS_NAME']) ? $arParams['EDITOR_JS_NAME'] : '';
         if ($editorJsName === '') {
             $editorJsName = $editorID;
         }
         $value = isset($arParams['VALUE']) ? $arParams['VALUE'] : '';
         /*if($value === '<br />')
         		{
         			$value = '';
         		}*/
         echo '<span class="crm-instant-editor-fld-text">';
         echo $value;
         echo '</span>';
         echo '<div class="crm-instant-editor-fld-btn crm-instant-editor-fld-btn-lhe"></div>';
         echo '<input class="crm-instant-editor-data-name" type="hidden" value="', htmlspecialcharsbx($fieldID), '" />';
         echo '<input class="crm-instant-editor-data-value" type="hidden" value="', htmlspecialcharsbx($value), '" />';
         $wrapperID = isset($arParams['WRAPPER_ID']) ? $arParams['WRAPPER_ID'] : '';
         if ($wrapperID === '') {
             $wrapperID = $editorID . '_WRAPPER';
         }
         $toolbarConfig = is_array($arParams['TOOLBAR_CONFIG']) ? $arParams['TOOLBAR_CONFIG'] : '';
         if ($toolbarConfig === '') {
             $toolbarConfig = array('Bold', 'Italic', 'Underline', 'Strike', 'BackColor', 'ForeColor', 'CreateLink', 'DeleteLink', 'InsertOrderedList', 'InsertUnorderedList', 'Outdent', 'Indent');
         }
         echo '<input class="crm-instant-editor-lhe-data" type="hidden" value="', htmlspecialcharsbx('{ "id":"' . CUtil::JSEscape($editorID) . '", "wrapperId":"' . CUtil::JSEscape($wrapperID) . '", "jsName":"' . CUtil::JSEscape($editorJsName) . '" }'), '" />';
         echo '<div id="', htmlspecialcharsbx($wrapperID), '" style="display:none;">';
         CModule::IncludeModule('fileman');
         $editor = new CLightHTMLEditor();
         $editor->Show(array('id' => $editorID, 'width' => '600', 'height' => '200', 'bUseFileDialogs' => false, 'bFloatingToolbar' => false, 'bArisingToolbar' => false, 'bResizable' => false, 'jsObjName' => $editorJsName, 'bInitByJS' => false, 'bSaveOnBlur' => true, 'bHandleOnPaste' => false, 'toolbarConfig' => $toolbarConfig));
         echo '</div>';
     }
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:56,代码来源:crm_view_helper.php

示例15: GetMessage


//.........这里部分代码省略.........
        ?>
_ed_tab_3">
		<div class="bxec-l"></div>
		<div class="bxec-c"><span><?php 
        echo GetMessage('EC_EDEV_ADD_TAB');
        ?>
</span></div>
		<div class="bxec-r"></div>
	</div>
</div>
<div class="bxec-d-cont"  id="<?php 
        echo $id;
        ?>
_edit_ed_d_tabcont">
	<?php 
        /* ####### TAB 0 : MAIN####### */
        ?>
	<div id="<?php 
        echo $id;
        ?>
_ed_tab_cont_0" class="bxec-d-cont-div">
		<table>
			<tr><td class="dialog-par-name"><b><?php 
        echo GetMessage('EC_EDEV_DATE_FROM');
        ?>
:</b></td><td class="bxec-ed-lp" style="width: 310px;">

			<input name="edit_event_from" />
			<?php 
        $APPLICATION->IncludeComponent("bitrix:main.calendar", "", array("FORM_NAME" => "bxec_edit_ed_form_" . $id, "INPUT_NAME" => "edit_event_from", "INPUT_VALUE" => "", "SHOW_TIME" => "N", "HIDE_TIMEBAR" => "Y"), false, array("HIDE_ICONS" => "Y"));
        ?>

			<?php 
        CClock::Show(array('inputId' => $id . '_edev_time_from', 'inputTitle' => GetMessage('EC_EDEV_TIME_FROM')));
        ?>
			</td></tr>
			<tr><td class="dialog-par-name"><?php 
        echo GetMessage('EC_EDEV_DATE_TO');
        ?>
:</td><td class="bxec-ed-lp">
			<input name="edit_event_to" />
			<?php 
        $APPLICATION->IncludeComponent("bitrix:main.calendar", "", array("FORM_NAME" => "bxec_edit_ed_form_" . $id, "INPUT_NAME" => "edit_event_to", "INPUT_VALUE" => "", "SHOW_TIME" => "N", "HIDE_TIMEBAR" => "Y"), false, array("HIDE_ICONS" => "Y"));
        ?>
			<?php 
        CClock::Show(array('inputId' => $id . '_edev_time_to', 'inputTitle' => GetMessage('EC_EDEV_TIME_TO')));
        ?>
			</td></tr>
			<tr><td class="dialog-par-name"><b><?php 
        echo GetMessage('EC_T_NAME');
        ?>
:</b></td><td class="bxec-ed-lp"><input type="text" size="37" id="<?php 
        echo $id;
        ?>
_edit_ed_name" style="width: 260px;"/></td></tr>
			<tr><td class="dialog-par-name"><label for="<?php 
        echo $id;
        ?>
_planner_location1"><?php 
        echo GetMessage('EC_LOCATION');
        ?>
:</label></td><td class="bxec-ed-lp">
			<div class="bxecpl-loc-cont">
				<input size="37" style="width: 246px;" id="<?php 
        echo $id;
        ?>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:67,代码来源:event_calendar.php


注:本文中的CLightHTMLEditor::Show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。