editor.php
上传用户:gzy2002
上传日期:2010-02-11
资源大小:1785k
文件大小:3k
源码类别:

电子政务应用

开发平台:

Java

  1. <?php
  2. // +-------------------------------------------------------------+
  3. // | DeskPRO v [2.0.1 Production]
  4. // | Copyright (C) 2001 - 2004 Headstart Solutions Limited
  5. // | Supplied by WTN-WDYL
  6. // | Nullified by WTN-WDYL
  7. // | Distribution via WebForum, ForumRU and associated file dumps
  8. // +-------------------------------------------------------------+
  9. // | DESKPRO IS NOT FREE SOFTWARE
  10. // +-------------------------------------------------------------+
  11. // | License ID : Full Enterprise License =) ...
  12. // | License Owner : WTN-WDYL Team
  13. // +-------------------------------------------------------------+
  14. // | $RCSfile: editor.php,v $
  15. // | $Date: 2004/02/10 01:34:28 $
  16. // | $Revision: 1.10 $
  17. // +-------------------------------------------------------------+
  18. // | File Details:
  19. // | - Invoke the WYSIWYG editor.
  20. // +-------------------------------------------------------------+
  21. error_reporting(E_ALL ^ E_NOTICE);
  22. include "./../global.php";
  23. ?>
  24. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  25. <html XMLNS:ACE>
  26. <head>
  27. <?php // problem with the <? otherwise starting of php.
  28. echo " <?import namespace="ACE" implementation="./../../includes/javascript/wysiwyg/ace.htc" />";
  29. ?>
  30. <script language="JavaScript">
  31. function Init() {
  32. //specify the dimension
  33. idContent.editorWidth = "603";
  34. idContent.editorHeight = "355";
  35. idContent.useSave = true;
  36. idContent.useBtnInsertText = true;
  37. idContent.useBtnStyle = true;
  38. idContent.useBtnParagraph = true;
  39. idContent.useBtnFontName = true;
  40. idContent.useBtnFontSize = true;
  41. idContent.useBtnCut = true;
  42. idContent.useBtnCopy = true;
  43. idContent.useBtnPaste = true;
  44. idContent.useBtnUndo = true;
  45. idContent.useBtnRedo = true;
  46. idContent.useBtnWord = true;
  47. idContent.putBtnBreak(); //line break
  48. idContent.useBtnBold = true;
  49. idContent.useBtnItalic = true;
  50. idContent.useBtnUnderline = true;
  51. idContent.useBtnStrikethrough = true;
  52. idContent.useBtnSuperscript = true;
  53. idContent.useBtnSubscript = true;
  54. idContent.useBtnJustifyLeft = true;
  55. idContent.useBtnJustifyCenter = true;
  56. idContent.useBtnJustifyRight = true;
  57. idContent.useBtnJustifyFull = true;
  58. idContent.useBtnInsertOrderedList = true;
  59. idContent.useBtnInsertUnorderedList = true;
  60. idContent.useBtnIndent = true;
  61. idContent.useBtnOutdent = true;
  62. idContent.useBtnHorizontalLine = true;
  63. idContent.useBtnTable = true;
  64. idContent.useBtnExternalLink = true;
  65. idContent.useBtnInternalLink = false;
  66. idContent.useBtnUnlink = true;
  67. idContent.useBtnInternalImage  = true;
  68. idContent.useBtnForeground  = true;
  69. idContent.useBtnBackground  = true;
  70. idContent.useBtnAbsolute  = true;
  71. idContent.useBtnRemoveFormat  = true;
  72. idContent.useBtnInsertSymbol  = true;
  73. idContent.useBtnDocumentBackground  = true;
  74. //Apply buttons
  75. idContent.applyButtons()
  76. //fill editor with content
  77. <?
  78. echo "idContent.content=window.opener.document.$_REQUEST[form].$_REQUEST[element].value;";
  79. ?>
  80. }
  81. </script>
  82. </head>
  83. <body onload="Init()" leftmargin="0" rightmargin="0" topmargin="0">
  84. <table align="center"><tr><td>
  85. <?php
  86. echo "<ACE:AdvContentEditor id="idContent" 
  87. onSave="window.opener.document.$_REQUEST[form].$_REQUEST[element].value=this.content; self.close();" 
  88. onImgLookupOpen="" />";
  89. ?>
  90. </td></tr></table>
  91. </body>
  92. </html>