1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
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 * This page lists the data posted by a form. It uses the URL (GET data),
23 * so it's limited to 2KB of data.
24-->
25<html xmlns="http://www.w3.org/1999/xhtml">
26<head>
27	<title>FCKeditor - Samples - Posted Data</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<body>
33	<h1>
34		FCKeditor - Samples - Posted Data
35	</h1>
36	<div>
37		This page lists all data posted by the form. It uses the "QueryString" to search
38		for data submitted using the "GET" method, so it is limited to 2KB.
39	</div>
40	<hr />
41	<table width="100%" border="1" cellpadding="3" style="border-color: #999999; border-collapse: collapse;">
42		<tr style="font-weight: bold; color: #dddddd; background-color: #999999">
43			<td style="white-space: nowrap;">
44				Field</td>
45			<td>
46				Value</td>
47		</tr>
48		<script type="text/javascript">
49<!--
50
51function HTMLEncode( text )
52{
53	text = text.replace(/&/g, "&amp;") ;
54	text = text.replace(/"/g, "&quot;") ;
55	text = text.replace(/</g, "&lt;") ;
56	text = text.replace(/>/g, "&gt;") ;
57	text = text.replace(/'/g, "&#39;") ;
58
59	return text ;
60}
61
62var aParams = document.location.search.substr(1).split('&') ;
63
64for ( i = 0 ; i < aParams.length ; i++ )
65{
66	var aParam = aParams[i].split('=') ;
67	var sParamName  = aParam[0] ;
68	var sParamValue = aParam[1] ;
69
70	document.write( '<tr>' ) ;
71	document.write( '<td valign="top" style="white-space: nowrap;">' + sParamName + '</td>' ) ;
72	document.write( '<td style="width: 100%;"><pre>' + HTMLEncode( decodeURIComponent( sParamValue.replace( /\+/g, ' ' ) ) ) + '</pre></td>' ) ;
73	document.write( '</tr>' ) ;
74}
75
76//-->
77		</script>
78	</table>
79</body>
80</html>
81