~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/_samples/html/sampleposteddata.html

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--
 
2
 * FCKeditor - The text editor for internet
 
3
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 
4
 * 
 
5
 * Licensed under the terms of the GNU Lesser General Public License:
 
6
 *              http://www.opensource.org/licenses/lgpl-license.php
 
7
 * 
 
8
 * For further information visit:
 
9
 *              http://www.fckeditor.net/
 
10
 * 
 
11
 * "Support Open Source software. What about a donation today?"
 
12
 * 
 
13
 * File Name: sampleposteddata.html
 
14
 *      This page lists the data posted by a form. It uses the URL (GET data), 
 
15
 *      so it's limited to 2KB of data.
 
16
 * 
 
17
 * File Authors:
 
18
 *              Frederico Caldeira Knabben (fredck@fckeditor.net)
 
19
-->
 
20
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
21
<html>
 
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>FCKeditor - Samples - Posted Data</h1>
 
30
                This page lists all data posted by the form. It uses the "QueryString" to search for data
 
31
                submitted using the "GET" method, so it is limited to 2KB.
 
32
                <hr>
 
33
                <table width="100%" border="1" cellspacing="0" bordercolor="#999999">
 
34
                        <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
 
35
                                <td>Field</td>
 
36
                                <td>Value</td>
 
37
                        </tr>
 
38
                        <script type="text/javascript">
 
39
<!--
 
40
 
 
41
function HTMLEncode( text )
 
42
{
 
43
        text = text.replace(/&/g, "&amp;") ;
 
44
        text = text.replace(/"/g, "&quot;") ;
 
45
        text = text.replace(/</g, "&lt;") ;
 
46
        text = text.replace(/>/g, "&gt;") ;
 
47
        text = text.replace(/'/g, "&#39;") ;
 
48
 
 
49
        return text ;
 
50
}
 
51
 
 
52
var aParams = document.location.search.substr(1).split('&') ;
 
53
 
 
54
for ( i = 0 ; i < aParams.length ; i++ )
 
55
{
 
56
        var aParam = aParams[i].split('=') ;
 
57
        var sParamName  = aParam[0] ;
 
58
        var sParamValue = aParam[1] ;
 
59
 
 
60
        document.write( '<tr>' ) ;
 
61
        document.write( '<td valign="top" nowrap><b>' + sParamName + '</b></td>' ) ;
 
62
        document.write( '<td width="100%">' + HTMLEncode( unescape( sParamValue.replace( /\+/g, ' ' ) ) ) + '</td>' ) ;
 
63
        document.write( '</tr>' ) ;
 
64
}
 
65
 
 
66
//-->
 
67
                        </script>
 
68
                </table>
 
69
        </body>
 
70
</html>