~ubuntu-branches/ubuntu/trusty/fusionforge/trusty

« back to all changes in this revision

Viewing changes to plugins/fckeditor/www/_samples/html/sampleposteddata.html

  • Committer: Bazaar Package Importer
  • Author(s): Roland Mas
  • Date: 2011-04-15 14:55:34 UTC
  • mfrom: (4.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20110415145534-mvn1nochufjmw177
Tags: 5.0.3-1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
4
 * Copyright (C) 2003-2006 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: sampleposteddata.html
 
15
 *      This page lists the data posted by a form. It uses the URL (GET data), 
 
16
 *      so it's limited to 2KB of data.
 
17
 * 
 
18
 * File Authors:
 
19
 *              Frederico Caldeira Knabben (fredck@fckeditor.net)
 
20
-->
 
21
<html xmlns="http://www.w3.org/1999/xhtml">
 
22
<head>
 
23
        <title>FCKeditor - Samples - Posted Data</title>
 
24
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
25
        <meta name="robots" content="noindex, nofollow" />
 
26
        <link href="../sample.css" rel="stylesheet" type="text/css" />
 
27
</head>
 
28
<body>
 
29
        <h1>
 
30
                FCKeditor - Samples - Posted Data
 
31
        </h1>
 
32
        <div>
 
33
                This page lists all data posted by the form. It uses the "QueryString" to search
 
34
                for data submitted using the "GET" method, so it is limited to 2KB.
 
35
        </div>
 
36
        <hr />
 
37
        <table width="100%" border="1" cellpadding="3" style="border-color: #999999; border-collapse: collapse;">
 
38
                <tr style="font-weight: bold; color: #dddddd; background-color: #999999">
 
39
                        <td style="white-space: nowrap;">
 
40
                                Field</td>
 
41
                        <td>
 
42
                                Value</td>
 
43
                </tr>
 
44
                <script type="text/javascript">
 
45
<!--
 
46
 
 
47
function HTMLEncode( text )
 
48
{
 
49
        text = text.replace(/&/g, "&amp;") ;
 
50
        text = text.replace(/"/g, "&quot;") ;
 
51
        text = text.replace(/</g, "&lt;") ;
 
52
        text = text.replace(/>/g, "&gt;") ;
 
53
        text = text.replace(/'/g, "&#39;") ;
 
54
 
 
55
        return text ;
 
56
}
 
57
 
 
58
var aParams = document.location.search.substr(1).split('&') ;
 
59
 
 
60
for ( i = 0 ; i < aParams.length ; i++ )
 
61
{
 
62
        var aParam = aParams[i].split('=') ;
 
63
        var sParamName  = aParam[0] ;
 
64
        var sParamValue = aParam[1] ;
 
65
 
 
66
        document.write( '<tr>' ) ;
 
67
        document.write( '<td valign="top" style="white-space: nowrap;">' + sParamName + '</td>' ) ;
 
68
        document.write( '<td style="width: 100%;"><pre>' + HTMLEncode( unescape( sParamValue.replace( /\+/g, ' ' ) ) ) + '</pre></td>' ) ;
 
69
        document.write( '</tr>' ) ;
 
70
}
 
71
 
 
72
//-->
 
73
                </script>
 
74
        </table>
 
75
</body>
 
76
</html>