Ticket #1593: 1593_4.patch

File 1593_4.patch, 10.9 KB (added by Alfonso Martínez de Lizarrondo, 16 years ago)

Revised patch

  • _samples/afp/sampleposteddata.afp

     
    2727                <title>FCKeditor - AFP - Samples - Posted Data</title>
    2828                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    2929                <meta name="robots" content="noindex, nofollow">
    30                 <link href="../sample.css" rel="stylesheet" type="text/css" />
     30                <link href="../sample.css" rel="stylesheet" type="text/css">
    3131        </head>
    3232        <body>
    3333                <h1>FCKeditor - Samples - Posted Data</h1>
    3434                This page lists all data posted by the form.
    3535                <hr>
    36                 <table width="100%" border="1" cellspacing="0" bordercolor="#999999">
    37                         <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
    38                                 <td nowrap>Field Name&nbsp;&nbsp;</td>
    39                                 <td>Value</td>
    40                         </tr>
     36                <table width="100%" border="1" cellspacing="0" id="outputSample">
     37                        <thead>
     38                                <tr>
     39                                        <th>Field Name</th>
     40                                        <th>Value</th>
     41                                </tr>
     42                        </thead>
    4143<%
    4244                lcForm=REQUEST.Form()
    4345                lcForm=STRTRAN(lcForm,"&",CHR(13)+CHR(10))
     
    5153                                lcWert=STRTRAN(lcWert,"<","&lt;")
    5254                                lcWert=STRTRAN(lcWert,">","&gt;")       && ... if wanted remove/translate HTML Chars ...
    5355
    54                                 ? [<tr><td>]+lcVariable+[ =</td><td>]+lcWert+[</td></tr>]
     56                                ? [<tr><th>]+lcVariable+[ =</th><td><pre>]+lcWert+[</pre></td></tr>]
    5557                        ENDIF
    5658                NEXT
    5759%>
  • _samples/asp/sampleposteddata.asp

     
    2828                <title>FCKeditor - Samples - Posted Data</title>
    2929                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    3030                <meta name="robots" content="noindex, nofollow">
    31                 <link href="../sample.css" rel="stylesheet" type="text/css" />
     31                <link href="../sample.css" rel="stylesheet" type="text/css" >
    3232        </head>
    3333        <body>
    3434                <h1>FCKeditor - Samples - Posted Data</h1>
    3535                This page lists all data posted by the form.
    3636                <hr>
    37                 <table width="100%" border="1" cellspacing="0" bordercolor="#999999">
    38                         <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
    39                                 <td noWrap>Field Name&nbsp;&nbsp;</td>
    40                                 <td>Value</td>
    41                         </tr>
     37                <table width="100%" border="1" cellspacing="0" id="outputSample">
     38                        <thead>
     39                                <tr>
     40                                        <th>Field Name</th>
     41                                        <th>Value</th>
     42                                </tr>
     43                        </thead>
    4244                        <%
    4345                        Dim sForm
    4446                        For Each sForm in Request.Form
    4547                        %>
    4648                        <tr>
    47                                 <td valign="top" nowrap><b><%=sForm%></b></td>
    48                                 <td width="100%" style="white-space:pre"><%=Server.HTMLEncode( Request.Form(sForm) )%></td>
     49                                <th><%=sForm%></th>
     50                                <td><pre><%=Server.HTMLEncode( Request.Form(sForm) )%></pre></td>
    4951                        </tr>
    5052                        <% Next %>
    5153                </table>
  • _samples/cfm/sampleposteddata.cfm

     
    3838        <cfif isDefined( 'FORM.fieldnames' )>
    3939                <cfoutput>
    4040                <hr />
    41                 <style>
    42                 <!--
    43                         td, th { font: 11px Verdana, Arial, Helv, Helvetica, sans-serif; }
    44                 -->
    45                 </style>
    46                 <table border="1" cellspacing="0" cellpadding="2" bordercolor="darkblue" bordercolordark="darkblue" bordercolorlight="darkblue">
     41                <table width="100%" border="1" cellspacing="0" id="outputSample">
     42                        <thead>
     43                                <tr>
     44                                        <th>Field Name</th>
     45                                        <th>Value</th>
     46                                </tr>
     47                        </thead>
    4748                <tr>
    48                         <th colspan="2" bgcolor="darkblue"><font color="white"><strong>Dump of FORM Variables</strong></font></th>
    49                 </tr>
    50                 <tr>
    51                         <td bgcolor="lightskyblue">FieldNames</td>
     49                        <th>FieldNames</th>
    5250                        <td>#FORM.fieldNames#</td>
    5351                </tr>
    5452                <cfloop list="#FORM.fieldnames#" index="key">
    5553                <tr>
    56                         <td valign="top" bgcolor="lightskyblue">#key#</td>
    57                         <td style="white-space:pre">#HTMLEditFormat( evaluate( "FORM.#key#" ) )#</td>
     54                        <th>#key#</th>
     55                        <td><pre>#HTMLEditFormat( evaluate( "FORM.#key#" ) )#</pre></td>
    5856                </tr>
    5957                </cfloop>
    6058                </table>
  • _samples/lasso/sampleposteddata.lasso

     
    2828                <title>FCKeditor - Samples - Posted Data</title>
    2929                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    3030                <meta name="robots" content="noindex, nofollow">
    31                 <link href="../sample.css" rel="stylesheet" type="text/css" />
     31                <link href="../sample.css" rel="stylesheet" type="text/css">
    3232        </head>
    3333        <body>
    3434                <h1>FCKeditor - Samples - Posted Data</h1>
    3535                This page lists all data posted by the form.
    3636                <hr>
    37                 <table width="100%" border="1" cellspacing="0" bordercolor="#999999">
    38                         <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
    39                                 <td nowrap>Field Name&nbsp;&nbsp;</td>
    40                                 <td>Value</td>
    41                         </tr>
     37                <table width="100%" border="1" cellspacing="0" id="outputSample">
     38                        <thead>
     39                                <tr>
     40                                        <th>Field Name</th>
     41                                        <th>Value</th>
     42                                </tr>
     43                        </thead>
    4244[iterate(client_postparams, local('this'))]
    4345                        <tr>
    44                                 <td valign="top" nowrap><b>[#this->first]</b></td>
    45                                 <td width="100%" style="white-space:pre">[#this->second]</td>
     46                                <th>[#this->first]</th>
     47                                <td><pre>[#this->second]</pre></td>
    4648                        </tr>
    4749[/iterate]
    4850                </table>
  • _samples/perl/sampleposteddata.cgi

     
    7070        print "Content-type: text/html\n\n";
    7171        print <<"_HTML_TAG_";
    7272<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    73 
    7473<html>
    7574        <head>
    7675                <title>FCKeditor - Samples - Posted Data</title>
    7776                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    7877                <meta name="robots" content="noindex, nofollow">
    79                 <link href="../sample.css" rel="stylesheet" type="text/css" />
     78                <link href="../sample.css" rel="stylesheet" type="text/css" >
    8079        </head>
    8180        <body>
    8281                <h1>FCKeditor - Samples - Posted Data</h1>
    8382                This page lists all data posted by the form.
    8483                <hr>
    85                 <table width="100%" border="1" cellspacing="0" bordercolor="#999999">
    86                         <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
    87                                 <td nowrap>Field Name&nbsp;&nbsp;</td>
    88                                 <td>Value</td>
    89                         </tr>
     84                <table width="100%" border="1" cellspacing="0" id="outputSample">
     85                        <thead>
     86                                <tr>
     87                                        <th>Field Name</th>
     88                                        <th>Value</th>
     89                                </tr>
     90                        </thead>
    9091_HTML_TAG_
    9192
    9293        foreach $key (keys %FORM) {
    9394                $postedValue = &specialchar_cnv($FORM{$key});
    9495                print <<"_HTML_TAG_";
    9596                        <tr>
    96                                 <td valign="top" nowrap><b>$key</b></td>
    97                                 <td width="100%" style="white-space:pre">$postedValue</td>
     97                                <th>$key</th>
     98                                <td><pre>$postedValue</pre></td>
    9899                        </tr>
    99100_HTML_TAG_
    100101        }
  • _samples/php/sampleposteddata.php

     
    2828                <title>FCKeditor - Samples - Posted Data</title>
    2929                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    3030                <meta name="robots" content="noindex, nofollow">
    31                 <link href="../sample.css" rel="stylesheet" type="text/css" />
     31                <link href="../sample.css" rel="stylesheet" type="text/css" >
    3232        </head>
    3333        <body>
    3434                <h1>FCKeditor - Samples - Posted Data</h1>
    3535                This page lists all data posted by the form.
    3636                <hr>
    37                 <table width="100%" border="1" cellspacing="0" bordercolor="#999999">
    38                         <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
    39                                 <td nowrap>Field Name&nbsp;&nbsp;</td>
    40                                 <td>Value</td>
    41                         </tr>
     37                <table width="100%" border="1" cellspacing="0" id="outputSample">
     38                        <thead>
     39                                <tr>
     40                                        <th>Field Name</th>
     41                                        <th>Value</th>
     42                                </tr>
     43                        </thead>
    4244<?php
    4345
    4446if ( isset( $_POST ) )
     
    5557
    5658?>
    5759                        <tr>
    58                                 <td valign="top" nowrap><b><?=$sForm?></b></td>
    59                                 <td width="100%" style="white-space:pre"><?=$postedValue?></td>
     60                                <th><?php echo $sForm?></th>
     61                                <td><pre><?php echo $postedValue?></pre></td>
    6062                        </tr>
    6163<?php
    6264}
  • _samples/py/sampleposteddata.py

     
    5353                <h1>FCKeditor - Samples - Posted Data</h1>
    5454                This page lists all data posted by the form.
    5555                <hr>
    56                 <table width="100%" border="1" cellspacing="0" bordercolor="#999999">
    57                         <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
    58                                 <td nowrap>Field Name&nbsp;&nbsp;</td>
    59                                 <td>Value</td>
    60                         </tr>
     56                <table width="100%" border="1" cellspacing="0" id="outputSample">
     57                        <thead>
     58                                <tr>
     59                                        <th>Field Name</th>
     60                                        <th>Value</th>
     61                                </tr>
     62                        </thead>
    6163"""
    6264for key in form.keys():
    6365        try:
    6466                value = form[key].value
    6567                print """
    6668                                <tr>
    67                                         <td valign="top" nowrap><b>%s</b></td>
    68                                         <td width="100%%" style="white-space:pre">%s</td>
     69                                        <th>%s</th>
     70                                        <td><pre>%s</pre></td>
    6971                                </tr>
    7072                        """ % (key, value)
    7173        except Exception, e:
  • _samples/sample.css

     
    2121 * Styles used in the samples pages.
    2222 */
    2323
    24 body, td, input, select, textarea
     24body, td, th, input, select, textarea
    2525{
    2626        font-size: 12px;
    2727        font-family: Arial, Verdana, Sans-Serif;
     
    4444{
    4545        margin:0px;
    4646        padding:0px;
    47         white-space: pre-wrap; /* css-3 */
    48         white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    49         word-wrap: break-word; /* Internet Explorer 5.5+ */
     47
     48        white-space: pre; /* CSS2 */
     49        white-space: -moz-pre-wrap; /* Mozilla*/
     50        white-space: -o-pre-wrap; /* Opera 7 */
     51        white-space: pre-wrap; /* CSS 2.1 */
     52        white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
     53        word-wrap: break-word; /* IE */
    5054}
     55
     56thead th {
     57        color: #dddddd;
     58        background-color: #999999;
     59        padding: 4px;
     60        white-space: nowrap;
     61}
     62 No newline at end of file
  • _whatsnew.html

     
    106106                        are applied in the image preview dialog.</li>
    107107                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2056">#2056</a>] Fixed several validation
    108108                        errors in the dialogs.</li>
     109                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1593">#1593</a>] Samplepostdata will now
     110                        properly wrap the text.</li>
    109111        </ul>
    110112        <h3>
    111113                Version 2.6</h3>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy