[ Index ] |
|
Code source de FCKeditor 2.4 |
1 <cfsetting enablecfoutputonly="true" showdebugoutput="false"> 2 <!--- 3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net 4 * Copyright (C) 2003-2007 Frederico Caldeira Knabben 5 * 6 * == BEGIN LICENSE == 7 * 8 * Licensed under the terms of any of the following licenses at your 9 * choice: 10 * 11 * - GNU General Public License Version 2 or later (the "GPL") 12 * http://www.gnu.org/licenses/gpl.html 13 * 14 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") 15 * http://www.gnu.org/licenses/lgpl.html 16 * 17 * - Mozilla Public License Version 1.1 or later (the "MPL") 18 * http://www.mozilla.org/MPL/MPL-1.1.html 19 * 20 * == END LICENSE == 21 * 22 * File Name: sample01.cfm 23 * Sample page for ColdFusion. 24 * 25 * File Authors: 26 * Hendrik Kramer (hk@lwd.de) 27 * Mark Woods (mark@thickpaddy.com) 28 * Wim Lemmens (didgiman@gmail.com) 29 ---> 30 31 <cfoutput> 32 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 33 <html> 34 <head> 35 <title>FCKeditor - Sample</title> 36 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 37 <meta name="robots" content="noindex, nofollow"> 38 <link href="../sample.css" rel="stylesheet" type="text/css" /> 39 </head> 40 41 <body> 42 43 <h1>FCKeditor - ColdFusion - Sample 1</h1> 44 45 This sample displays a normal HTML form with a FCKeditor with full features enabled; invoked by a ColdFusion Custom Tag / Module. 46 <hr> 47 <form method="POST" action="#cgi.script_name#"> 48 </cfoutput> 49 50 <cfmodule 51 template="../../fckeditor.cfm" 52 basePath="#Left(cgi.script_name, FindNoCase('_samples', cgi.script_name)-1)#" 53 instanceName="myEditor" 54 value='This is some sample text. You are using <a href="http://fckeditor.net/" target="_blank">FCKeditor</a>.' 55 width="100%" 56 height="200" 57 > 58 <cfoutput> 59 <br /> 60 <input type="submit" value="Submit"> 61 <br /> 62 </form> 63 </cfoutput> 64 65 <cfif isDefined( 'FORM.fieldnames' )> 66 <cfoutput> 67 <style> 68 <!-- 69 td, th { font: 11px Verdana, Arial, Helv, Helvetica, sans-serif; } 70 --> 71 </style> 72 <table border="1" cellspacing="0" cellpadding="2" bordercolor="darkblue" bordercolordark="darkblue" bordercolorlight="darkblue"> 73 <tr> 74 <th colspan="2" bgcolor="darkblue"><font color="white"><strong>Dump of FORM Variables</strong></font></th> 75 </tr> 76 <tr> 77 <td bgcolor="lightskyblue">FieldNames</td> 78 <td>#FORM.fieldNames#</td> 79 </tr> 80 <cfloop list="#FORM.fieldnames#" index="key"> 81 <tr> 82 <td valign="top" bgcolor="lightskyblue">#key#</td> 83 <td>#HTMLEditFormat(evaluate("FORM.#key#"))#</td> 84 </tr> 85 </cfloop> 86 </table> 87 </cfoutput> 88 </cfif> 89 90 </body> 91 </html> 92 <cfsetting enablecfoutputonly="false">
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 15:28:05 2007 | par Balluche grâce à PHPXref 0.7 |