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


PHP FCKeditor::CreateFCKeditor方法代码示例

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


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

示例1: FCKeditor

          <tr>
            <th class="main" valign="top"><?php 
    echo TEXT_NEWSLETTER_CONTENT_HTML;
    ?>
</th>
            <td class="main">
        <?php 
    if (is_null($_SESSION['html_editor_preference_status'])) {
        echo TEXT_HTML_EDITOR_NOT_DEFINED;
    }
    ?>
        <?php 
    if ($_SESSION['html_editor_preference_status'] == "FCKEDITOR") {
        $oFCKeditor = new FCKeditor();
        $oFCKeditor->Value = $nInfo->content_html;
        $oFCKeditor->CreateFCKeditor('content_html', '97%', '350');
        //instanceName, width, height (px or %)
    } else {
        // using HTMLAREA or just raw "source"
        echo zen_draw_textarea_field('content_html', 'soft', '100%', '30', $nInfo->content_html, 'id="content_html"');
    }
    ?>
          </td>
          </tr>
          <tr>
            <th class="main" valign="top"><?php 
    echo TEXT_NEWSLETTER_CONTENT;
    ?>
</th>
            <td class="main"><?php 
    echo zen_draw_textarea_field('content', 'soft', '100%', '20', $nInfo->content);
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:newsletters.php

示例2: FCKeditor

</td>
						<td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
				<table>
				<tr>
							 		<td class="main" width="100%">
				<?php 
    if (is_null($_SESSION['html_editor_preference_status'])) {
        echo TEXT_HTML_EDITOR_NOT_DEFINED;
    }
    ?>
				<?php 
    if ($_SESSION['html_editor_preference_status'] == "FCKEDITOR") {
        //					if ($_SESSION['html_editor_preference_status']=="FCKEDITOR") require(DIR_FS_ADMIN_INCLUDES.'fckeditor.php');
        $oFCKeditor = new FCKeditor();
        $oFCKeditor->Value = isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : zen_get_products_description($pInfo->products_id, $languages[$i]['id']);
        $oFCKeditor->CreateFCKeditor('products_description[' . $languages[$i]['id'] . ']', '99%', '230');
        //instanceName, width, height (px or %)
    } else {
        // using HTMLAREA or just raw "source"
        echo zen_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '20', isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : zen_get_products_description($pInfo->products_id, $languages[$i]['id']));
        //,'id="'.'products_description' . $languages[$i]['id'] . '"');
    }
    ?>
					</td>
					<td class="main" width="25" valign="top"><?php 
    echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']);
    ?>
&nbsp;</td>
							</tr>
				</table>
开发者ID:bitweaver,项目名称:commerce,代码行数:30,代码来源:collect_info.php

示例3: FCKeditor

          <tr><?php 
            echo zen_draw_form('language', FILENAME_DEFINE_PAGES_EDITOR, 'lngdir=' . $_SESSION['language'] . '&filename=' . $_GET['filename'] . '&action=save');
            ?>
            <td><table border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td class="main">
				<?php 
            if (is_null($_SESSION['html_editor_preference_status'])) {
                echo TEXT_HTML_EDITOR_NOT_DEFINED;
            }
            ?>
				<?php 
            if ($_SESSION['html_editor_preference_status'] == "FCKEDITOR") {
                $oFCKeditor = new FCKeditor();
                $oFCKeditor->Value = $file_contents;
                $oFCKeditor->CreateFCKeditor('file_contents', '700', '400');
                //instanceName, width, height (px or %)
            } else {
                // using HTMLAREA or just raw "source"
                echo zen_draw_textarea_field('file_contents', 'soft', '100%', '25', $file_contents, ($file_writeable ? '' : 'readonly') . ' id="file_contents"');
            }
            ?>
				</td>
              </tr>
              <tr>
                <td><?php 
            echo zen_draw_separator('pixel_trans.gif', '1', '10');
            ?>
</td>
              </tr>
              <tr>
开发者ID:sgkohata,项目名称:zencart-sugu,代码行数:31,代码来源:define_pages_editor.php

示例4: FCKeditor

                <td class="main" width="750">
				<?php 
    if (is_null($_SESSION['html_editor_preference_status'])) {
        echo TEXT_HTML_EDITOR_NOT_DEFINED;
    }
    ?>
				<?php 
    if (EMAIL_USE_HTML != 'true') {
        echo TEXT_WARNING_HTML_DISABLED;
    }
    ?>
				<?php 
    if ($_SESSION['html_editor_preference_status'] == "FCKEDITOR") {
        $oFCKeditor = new FCKeditor();
        $oFCKeditor->Value = stripslashes($_POST['message_html']);
        $oFCKeditor->CreateFCKeditor('message_html', '97%', '350');
        //instanceName, width, height (px or %)
    } else {
        // using HTMLAREA or just raw "source"
        if (EMAIL_USE_HTML == 'true') {
            echo zen_draw_textarea_field('message_html', 'soft', '100%', '25', stripslashes($_POST['message_html']), 'id="message_html"');
        }
    }
    ?>
				</td>
              </tr>
              
              <tr>
                <th valign="top" class="main"><?php 
    echo TEXT_MESSAGE;
    ?>
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:mail.php

示例5: if

 Message. </td></tr>

<tr><td colspan=2>

<? if (!$usefck) { ?>

	<textarea name=message cols=45 rows=20><?php 
echo $_POST["message"];
?>
</textarea>

<? } else {
	$oFCKeditor = new FCKeditor ;
	$oFCKeditor->ToolbarSet = 'Accessibility' ;
	$oFCKeditor->Value = $_POST["message"];
	$oFCKeditor->CreateFCKeditor( 'message', '600px', '400px' ) ;
}

?>

</td></tr>
<tr><td colspan=2>Message Footer. <br/>Use <b>[UNSUBSCRIBE]</b> to insert the personal unsubscribe URL for each user. <br/>Use <b>[PREFERENCES]</b> to insert the personal URL for a user to update their details.</td></tr>
<tr><td colspan=2><textarea name=footer cols=45 rows=5><?php 
echo $footer;
?>
</textarea></td></tr>

</table>
<?

if (ALLOW_ATTACHMENTS) {
开发者ID:radicaldesigns,项目名称:amp,代码行数:31,代码来源:send_core.php

示例6: FCKeditor

            <td colspan="2"><?php 
    echo zen_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td valign="top" class="main"><?php 
    echo TEXT_PAGES_HTML_TEXT;
    ?>
</td>
            <td class="main">
				<?php 
    if ($_SESSION['html_editor_preference_status'] == "FCKEDITOR") {
        $oFCKeditor = new FCKeditor();
        $oFCKeditor->Value = $ezInfo->pages_html_text;
        $oFCKeditor->CreateFCKeditor('pages_html_text', '80%', '200');
        //instanceName, width, height (px or %)
    } else {
        // using HTMLAREA or just raw "source"
        echo zen_draw_textarea_field('pages_html_text', 'soft', '100%', '20', $ezInfo->pages_html_text);
    }
    ?>
            </td>
          </tr>

          <tr>
            <td colspan="2"><?php 
    echo zen_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:ezpages.php

示例7: FCKeditor

$oFCKeditor->CreateFCKeditor('EditorDefault', '100%', 150);
?>
			<BR>
			FCKeditor - Accessibility Toolbar Set<BR>
<?php 
$oFCKeditor = new FCKeditor();
$oFCKeditor->ToolbarSet = 'Accessibility';
$oFCKeditor->Value = 'This is another test. <BR><B>The &quot;Second&quot; row.</B>';
$oFCKeditor->CanUpload = false;
// Overrides fck_config.js default configuration
$oFCKeditor->CanBrowse = false;
// Overrides fck_config.js default configuration
$oFCKeditor->CreateFCKeditor('EditorAccessibility', '80%', 120);
?>
			<BR>
			<BR>
			FCKeditor - Basic Toolbar Set<BR>
<?php 
$oFCKeditor = new FCKeditor();
$oFCKeditor->ToolbarSet = 'Basic';
$oFCKeditor->Value = '<P align="center">Another test.</P>';
$oFCKeditor->CreateFCKeditor('EditorBasic', 300, 80);
?>
			<BR>
			<BR>
			<INPUT type="submit" value="Submit Data">
			<BR>
		</form>
	</BODY>
</HTML>
开发者ID:radicaldesigns,项目名称:amp,代码行数:30,代码来源:test.php


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