Re: Cute Editor deployment/integration: newbie questions

  •  05-12-2008, 4:06 AM

    Re: Cute Editor deployment/integration: newbie questions

    Erk,
     
    Please try the following code:
     
    <?php include_once("CuteEditor_Files/include_CuteEditor.php") ; ?>
     
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
      <table align="center">
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Cont_omsch:</td>
          <td><input type="text" name="cont_omsch" value="<?php echo htmlentities($row_Content['cont_omsch'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right" valign="top">Cont_text:</td>
          <td>
                <textarea name="cont_text" cols="50" rows="5"><?php echo htmlentities($row_Content['cont_text'], ENT_COMPAT, 'utf-8'); ?></textarea>

                <?php
                   $editor=new CuteEditor();
                   $editor->ID="cont_text";  // same ID as your textarea
                   $editor->Text=htmlentities($row_Content['cont_text'], ENT_COMPAT, 'utf-8'); // Set value
                   $editor->FilesPath="CuteEditor_Files";
                   $editor->Draw();
                   $editor=null; 
                ?>
          </td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">&nbsp;</td>
          <td><input type="submit" value="Record bijwerken" /></td>
        </tr>
      </table>
      <table border="0" align="center">
        <tr>
          <td><?php if ($pageNum_Content > 0) { // Show if not first page ?>
                <a href="<?php printf("%s?pageNum_Content=%d%s", $currentPage, 0, $queryString_Content); ?>">Eerst</a>
                <?php } // Show if not first page ?>
          </td>
          <td><?php if ($pageNum_Content > 0) { // Show if not first page ?>
                <a href="<?php printf("%s?pageNum_Content=%d%s", $currentPage, max(0, $pageNum_Content - 1), $queryString_Content); ?>">Vorige</a>
                <?php } // Show if not first page ?>
          </td>
          <td><?php if ($pageNum_Content < $totalPages_Content) { // Show if not last page ?>
                <a href="<?php printf("%s?pageNum_Content=%d%s", $currentPage, min($totalPages_Content, $pageNum_Content + 1), $queryString_Content); ?>">Volgende</a>
                <?php } // Show if not last page ?>
          </td>
          <td><div align="center">
            <?php if ($pageNum_Content < $totalPages_Content) { // Show if not last page ?>
              <a href="<?php printf("%s?pageNum_Content=%d%s", $currentPage, $totalPages_Content, $queryString_Content); ?>">Laatste</a>
              <?php } // Show if not last page ?>
          </div></td>
        </tr>
      </table>
      <input type="hidden" name="MM_update" value="form1" />
      <input type="hidden" name="cont_id" value="<?php echo $row_Content['cont_id']; ?>" />
      </p>
    </form>

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread