~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/FCK/_samples/cfm/sample02_mx.cfm

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<cfsetting enablecfoutputonly="true">
 
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
 * Sample page for ColdFusion MX.
 
23
--->
 
24
 
 
25
<!--- ::
 
26
          * You must set the url path to the base directory for your media files (images, flash, files)
 
27
          * The best position for this variable is in your Application.cfm file
 
28
          *
 
29
          * Possible variable scopes are:
 
30
          * <cfset APPLICATION.userFilesPath = "/userfiles/">
 
31
          * OR:
 
32
          * <cfset SERVER.userFilesPath = "/userfiles/">
 
33
          * OR:
 
34
          * <cfset request.FCKeditor.userFilesPath = "/userfiles/">
 
35
          * OR:
 
36
          * <cfset application.FCKeditor.userFilesPath = "/userfiles/">
 
37
          * OR:
 
38
          * <cfset server.FCKeditor.userFilesPath = "/userfiles/">
 
39
          *
 
40
          * Note #1: Do _not_ set the physical directory on your server, only a path relative to your current webroot
 
41
          * Note #2: Directories will be automatically created
 
42
          :: --->
 
43
 
 
44
<cfoutput>
 
45
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
46
<html>
 
47
<head>
 
48
        <title>FCKeditor - Sample</title>
 
49
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
50
        <meta name="robots" content="noindex, nofollow">
 
51
        <link href="../sample.css" rel="stylesheet" type="text/css" />
 
52
</head>
 
53
<body>
 
54
<h1>FCKeditor - ColdFusion Component (CFC) - Sample 2</h1>
 
55
 
 
56
This sample displays a normal HTML form with a FCKeditor with full features enabled; invoked by a ColdFusion Component.
 
57
<hr>
 
58
 
 
59
<form method="POST" action="#cgi.script_name#">
 
60
</cfoutput>
 
61
 
 
62
<cfif listFirst( server.coldFusion.productVersion ) LT 6>
 
63
        <cfoutput><br><em style="color: red;">This sample works only with a ColdFusion MX server and higher, because it uses some advantages of this version.</em></cfoutput>
 
64
        <cfabort>
 
65
</cfif>
 
66
 
 
67
<cfscript>
 
68
        // Calculate basepath for FCKeditor. It's in the folder right above _samples
 
69
        basePath = Left(cgi.script_name, FindNoCase('_samples', cgi.script_name)-1);
 
70
 
 
71
        fckEditor = createObject("component", "#basePath#fckeditor");
 
72
        fckEditor.instanceName  = "myEditor";
 
73
        fckEditor.value                 = 'This is some sample text. You are using <a href="http://fckeditor.net/" target="_blank">FCKeditor</a>.';
 
74
        fckEditor.basePath              = basePath;
 
75
        fckEditor.width                 = "100%";
 
76
        fckEditor.height                = 300;
 
77
        fckEditor.create(); // create the editor.
 
78
</cfscript>
 
79
 
 
80
<cfoutput>
 
81
<br />
 
82
<input type="submit" value="Submit">
 
83
<hr />
 
84
</cfoutput>
 
85
 
 
86
<cfdump
 
87
        var="#FORM#"
 
88
        label="Dump of FORM Variables"
 
89
>
 
90
 
 
91
<cfoutput></form></body></html></cfoutput>
 
92
 
 
93
<cfsetting enablecfoutputonly="false">
 
 
b'\\ No newline at end of file'