Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/aspx
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16237/phpslash-dev/public_html/scripts/fckeditor/_samples/aspx
Added Files:
sample01.aspx sampleposteddata.aspx
Log Message:
added fckeditor to comment submittal.
--- NEW FILE: sample01.aspx ---
<%@ Page ValidateRequest="false" Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2004 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* File Name: sample01.aspx
* Sample page.
*
* Version: 2.0 Beta 1
* Modified: 2004-05-31 23:28:37
*
* File Authors:
* Frederico Caldeira Knabben (fr...@fc...)
-->
<script runat="server" language="C#">
// This sample doesnt use a code behind file to avoid the user to have to compile
// the page to run it.
protected override void OnLoad(EventArgs e)
{
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// FCKeditor1.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
string sPath = Request.Url.AbsolutePath ;
int iIndex = sPath.LastIndexOf( "_samples") ;
FCKeditor1.BasePath = sPath.Remove( iIndex, sPath.Length - iIndex ) ;
}
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<link href="../sample.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../../fckeditor.js"></script>
<script type="text/javascript">
function FCKeditor_OnComplete( editorInstance )
{
window.status = editorInstance.Description ;
}
</script>
</HEAD>
<body>
<h1>FCKeditor - ASP.Net - Sample 1</h1>
This sample displays a normal HTML form with an FCKeditor with full features
enabled.
<hr>
<form action="sampleposteddata.aspx" method="post" target="_blank">
<FCKeditorV2:FCKeditor id="FCKeditor1" runat="server" value='This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.'></FCKeditorV2:FCKeditor>
<br>
<input type="submit" value="Submit">
</form>
</body>
</HTML>
--- NEW FILE: sampleposteddata.aspx ---
<%@ Page ValidateRequest="false" Language="C#" AutoEventWireup="false" %>
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2004 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* File Name: sampleposteddata.aspx
* This page lists the data posted by a form.
*
* Version: 2.0 Beta 1
* Modified: 2004-05-31 23:07:46
*
* File Authors:
* Frederico Caldeira Knabben (fr...@fc...)
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>FCKeditor - Samples - Posted Data</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<link href="../sample.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>FCKeditor - Samples - Posted Data</h1>
This page lists all data posted by the form.
<hr>
<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
<td noWrap>Field Name </td>
<td>Value</td>
</tr>
<% foreach ( string sForm in Request.Form ) { %>
<tr>
<td valign="top" nowrap><b><%=sForm%></b></td>
<td width="100%"><%=Server.HtmlEncode( Request.Form[sForm] )%></td>
</tr>
<% } %>
</table>
</body>
</html>
|