[ Index ]
 

Code source de FCKeditor 2.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/_samples/asp/ -> sample01.asp (source)

   1  <%@  codepage="65001" language="VBScript" %>
   2  <% Option Explicit %>
   3  <!--
   4   * FCKeditor - The text editor for Internet - http://www.fckeditor.net
   5   * Copyright (C) 2003-2007 Frederico Caldeira Knabben
   6   * 
   7   * == BEGIN LICENSE ==
   8   * 
   9   * Licensed under the terms of any of the following licenses at your
  10   * choice:
  11   * 
  12   *  - GNU General Public License Version 2 or later (the "GPL")
  13   *    http://www.gnu.org/licenses/gpl.html
  14   * 
  15   *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
  16   *    http://www.gnu.org/licenses/lgpl.html
  17   * 
  18   *  - Mozilla Public License Version 1.1 or later (the "MPL")
  19   *    http://www.mozilla.org/MPL/MPL-1.1.html
  20   * 
  21   * == END LICENSE ==
  22   * 
  23   * File Name: sample01.asp
  24   *     Sample page.
  25   * 
  26   * File Authors:
  27   *         Frederico Caldeira Knabben (www.fckeditor.net)
  28  -->
  29  <% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
  30  <!-- #INCLUDE file="../../fckeditor.asp" -->
  31  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  32  <html xmlns="http://www.w3.org/1999/xhtml">
  33  <head>
  34      <title>FCKeditor - Sample</title>
  35      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  36      <meta name="robots" content="noindex, nofollow" />
  37      <link href="../sample.css" rel="stylesheet" type="text/css" />
  38  </head>
  39  <body>
  40      <h1>
  41          FCKeditor - ASP - Sample 1
  42      </h1>
  43      <div>
  44          This sample displays a normal HTML form with an FCKeditor with full features enabled.
  45      </div>
  46      <hr />
  47      <form action="sampleposteddata.asp" method="post" target="_blank">
  48          <%
  49  ' Automatically calculates the editor base path based on the _samples directory.
  50  ' This is usefull only for these samples. A real application should use something like this:
  51  ' oFCKeditor.BasePath = '/fckeditor/' ;    // '/fckeditor/' is the default value.
  52  Dim sBasePath
  53  sBasePath = Request.ServerVariables("PATH_INFO")
  54  sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
  55  
  56  Dim oFCKeditor
  57  Set oFCKeditor = New FCKeditor
  58  oFCKeditor.BasePath    = sBasePath
  59  oFCKeditor.Value    = "This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
  60  oFCKeditor.Create "FCKeditor1"
  61          %>
  62          <br />
  63          <input type="submit" value="Submit" />
  64      </form>
  65  </body>
  66  </html>


Généré le : Sun Feb 25 15:28:05 2007 par Balluche grâce à PHPXref 0.7