~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/_samples/cfm/sample01.cfm

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<cfsetting enablecfoutputonly="true" showdebugoutput="false">
 
2
<!---
 
3
 * FCKeditor - The text editor for internet
 
4
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 
5
 * 
 
6
 * Licensed under the terms of the GNU Lesser General Public License:
 
7
 *              http://www.opensource.org/licenses/lgpl-license.php
 
8
 * 
 
9
 * For further information visit:
 
10
 *              http://www.fckeditor.net/
 
11
 * 
 
12
 * "Support Open Source software. What about a donation today?"
 
13
 * 
 
14
 * File Name: sample01.cfm
 
15
 *      Sample page for ColdFusion.
 
16
 * 
 
17
 * File Authors:
 
18
 *              Hendrik Kramer (hk@lwd.de)
 
19
 *              Mark Woods (mark@thickpaddy.com)
 
20
 *              Wim Lemmens (didgiman@gmail.com)
 
21
--->
 
22
 
 
23
<cfoutput>
 
24
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
25
<html>
 
26
<head>
 
27
        <title>FCKeditor - Sample</title>
 
28
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
29
        <meta name="robots" content="noindex, nofollow">
 
30
        <link href="../sample.css" rel="stylesheet" type="text/css" />
 
31
</head>
 
32
 
 
33
<body>
 
34
 
 
35
<h1>FCKeditor - ColdFusion - Sample 1</h1>
 
36
        
 
37
This sample displays a normal HTML form with a FCKeditor with full features enabled; invoked by a ColdFusion Custom Tag / Module.<br>
 
38
ColdFusion is a registered trademark and product of <a href="http://www.macromedia.com/software/coldfusion/" target="_blank">Macromedia, Inc</a>.
 
39
<hr>
 
40
<form method="POST" action="#cgi.script_name#">
 
41
</cfoutput>
 
42
 
 
43
<cfmodule 
 
44
        template="../../fckeditor.cfm"
 
45
        basePath="#Left(cgi.script_name, FindNoCase('_samples', cgi.script_name)-1)#"
 
46
        instanceName="myEditor"
 
47
        value='This is some sample text. You are using <a href="http://fckeditor.net/" target="_blank">FCKeditor</a>.'
 
48
        width="100%"
 
49
        height="200"
 
50
>
 
51
<cfoutput>
 
52
<br />
 
53
<input type="submit" value="Submit">
 
54
<br />
 
55
</form>
 
56
</cfoutput>
 
57
 
 
58
<cfif isDefined( 'FORM.fieldnames' )>
 
59
        <cfoutput>
 
60
        <style>
 
61
        <!--
 
62
                td, th { font: 11px Verdana, Arial, Helv, Helvetica, sans-serif; }
 
63
        -->
 
64
        </style>
 
65
        <table border="1" cellspacing="0" cellpadding="2" bordercolor="darkblue" bordercolordark="darkblue" bordercolorlight="darkblue">
 
66
        <tr>
 
67
                <th colspan="2" bgcolor="darkblue"><font color="white"><strong>Dump of FORM Variables</strong></font></th>
 
68
        </tr>
 
69
        <tr>
 
70
                <td bgcolor="lightskyblue">FieldNames</td>
 
71
                <td>#FORM.fieldNames#</td>
 
72
        </tr>
 
73
        <cfloop list="#FORM.fieldnames#" index="key">
 
74
        <tr>
 
75
                <td valign="top" bgcolor="lightskyblue">#key#</td>
 
76
                <td>#HTMLEditFormat(evaluate("FORM.#key#"))#</td>
 
77
        </tr>
 
78
        </cfloop>
 
79
        </table>
 
80
        </cfoutput>
 
81
</cfif>
 
82
 
 
83
</body>
 
84
</html>
 
85
<cfsetting enablecfoutputonly="false">
 
 
b'\\ No newline at end of file'