Пример #1
0
          <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);
Пример #2
0
</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>
Пример #3
0
          <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>
Пример #4
0
                <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;
    ?>
Пример #5
0
 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) {
Пример #6
0
            <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>
Пример #7
0
$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>